add closeConnection

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-publishing/document-store-lib@142288 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Alessandro Pieve 2017-02-06 16:53:40 +00:00
parent a6d339f81b
commit b73f53cd50
2 changed files with 14 additions and 2 deletions

View File

@ -77,6 +77,12 @@ public class FallbackPersistenceBackend extends PersistenceBackend {
}
}
}
@Override
protected void closeConnection() throws Exception {
// Nothing TO DO
}

View File

@ -96,7 +96,13 @@ public abstract class PersistenceBackend {
protected abstract void openConnection() throws Exception ;
/**
* This method is used to close db connection
* This method is used to open db connection
* @throws Exception
*/
protected abstract void closeConnection() throws Exception ;
/**
* This method is used to close
* @throws Exception
*/
public abstract void close() throws Exception;
@ -179,7 +185,7 @@ public abstract class PersistenceBackend {
}
}
}
this.close();
this.closeConnection();
}
/**