public class GridFSObjectstoreDaoImpl extends Object implements eu.dnetlib.data.objectstore.modular.connector.ObjectStoreDao
| Modifier and Type | Field and Description |
|---|---|
static String |
INTERPRETATION
The Constant INTERPRETATION.
|
| Constructor and Description |
|---|
GridFSObjectstoreDaoImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
createObjectStore(String obsId,
String interpretation,
String basePath) |
boolean |
deleteObjectStore(String obsId) |
boolean |
dropContent(String obsId) |
com.mongodb.DB |
getDb()
Gets the db.
|
eu.dnetlib.data.objectstore.modular.connector.ObjectStore |
getObjectStore(String obsId) |
String |
getObjectStoreRESTURI()
Gets the object store resturi.
|
boolean |
isUpsert()
Checks if is upsert.
|
List<String> |
listObjectStores() |
void |
setDb(com.mongodb.DB db)
Sets the db.
|
void |
setObjectStoreRESTURI(String objectStoreRESTURI)
Sets the object store resturi.
|
void |
setUpsert(boolean upsert)
Sets the upsert.
|
boolean |
updateObjectStore(String obsId,
String interpretation) |
public static final String INTERPRETATION
public eu.dnetlib.data.objectstore.modular.connector.ObjectStore getObjectStore(String obsId)
getObjectStore in interface eu.dnetlib.data.objectstore.modular.connector.ObjectStoreDaoObjectStoreDao.getObjectStore(java.lang.String)public List<String> listObjectStores()
listObjectStores in interface eu.dnetlib.data.objectstore.modular.connector.ObjectStoreDaoObjectStoreDao.listObjectStores()public boolean createObjectStore(String obsId, String interpretation, String basePath) throws eu.dnetlib.data.objectstore.rmi.ObjectStoreServiceException
createObjectStore in interface eu.dnetlib.data.objectstore.modular.connector.ObjectStoreDaoeu.dnetlib.data.objectstore.rmi.ObjectStoreServiceExceptionObjectStoreDao.createObjectStore(java.lang.String, java.lang.String,
java.lang.String)public boolean updateObjectStore(String obsId, String interpretation)
updateObjectStore in interface eu.dnetlib.data.objectstore.modular.connector.ObjectStoreDaoObjectStoreDao.updateObjectStore(java.lang.String, java.lang.String)public boolean deleteObjectStore(String obsId)
deleteObjectStore in interface eu.dnetlib.data.objectstore.modular.connector.ObjectStoreDaoObjectStoreDao.deleteObjectStore(java.lang.String)public boolean dropContent(String obsId) throws eu.dnetlib.data.objectstore.rmi.ObjectStoreServiceException
dropContent in interface eu.dnetlib.data.objectstore.modular.connector.ObjectStoreDaoeu.dnetlib.data.objectstore.rmi.ObjectStoreServiceExceptionpublic com.mongodb.DB getDb()
public void setDb(com.mongodb.DB db)
db - the new dbpublic boolean isUpsert()
public void setUpsert(boolean upsert)
upsert - the new upsertpublic String getObjectStoreRESTURI()
public void setObjectStoreRESTURI(String objectStoreRESTURI)
objectStoreRESTURI - the new object store resturiCopyright © 2020. All rights reserved.