add closeConnection

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-publishing/document-store-lib--mongodb@142294 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Alessandro Pieve 2017-02-06 17:01:02 +00:00
parent f550012980
commit 1160a4ad0f
1 changed files with 6 additions and 0 deletions

View File

@ -91,6 +91,10 @@ public class PersistenceMongoDB extends PersistenceBackend {
@Override
public void openConnection() throws Exception {}
@Override
protected void closeConnection() throws Exception {}
@Override
public void close() throws Exception {
mongoClient.close();
@ -266,6 +270,8 @@ public class PersistenceMongoDB extends PersistenceBackend {
Record record = RecordUtility.getRecord(map);
return record;
}