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:
parent
a6d339f81b
commit
b73f53cd50
|
@ -77,6 +77,12 @@ public class FallbackPersistenceBackend extends PersistenceBackend {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void closeConnection() throws Exception {
|
||||
// Nothing TO DO
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue