Package tigase.mongodb
Class MongoDataSource
- java.lang.Object
-
- tigase.mongodb.MongoDataSource
-
- All Implemented Interfaces:
tigase.db.DataSource,tigase.db.Repository,tigase.kernel.beans.UnregisterAware
public class MongoDataSource extends java.lang.Object implements tigase.db.DataSource, tigase.kernel.beans.UnregisterAwareCreated by andrzej on 04.10.2016.
-
-
Constructor Summary
Constructors Constructor Description MongoDataSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanautomaticSchemaManagement()voidbeforeUnregister()com.mongodb.client.MongoDatabasegetDatabase()java.lang.StringgetResourceUri()java.util.Optional<tigase.util.Version>getSchemaVersion(java.lang.String component)voidinitialize(java.lang.String resource_uri)voidinitRepository(java.lang.String resource_uri, java.util.Map<java.lang.String,java.lang.String> params)Deprecated.
-
-
-
Method Detail
-
automaticSchemaManagement
public boolean automaticSchemaManagement()
- Specified by:
automaticSchemaManagementin interfacetigase.db.DataSource
-
beforeUnregister
public void beforeUnregister()
- Specified by:
beforeUnregisterin interfacetigase.kernel.beans.UnregisterAware
-
getDatabase
public com.mongodb.client.MongoDatabase getDatabase()
-
getResourceUri
public java.lang.String getResourceUri()
- Specified by:
getResourceUriin interfacetigase.db.DataSource
-
getSchemaVersion
public java.util.Optional<tigase.util.Version> getSchemaVersion(java.lang.String component)
- Specified by:
getSchemaVersionin interfacetigase.db.DataSource
-
initRepository
@Deprecated public void initRepository(java.lang.String resource_uri, java.util.Map<java.lang.String,java.lang.String> params) throws tigase.db.DBInitExceptionDeprecated.- Specified by:
initRepositoryin interfacetigase.db.Repository- Throws:
tigase.db.DBInitException
-
initialize
public void initialize(java.lang.String resource_uri) throws tigase.db.DBInitException- Specified by:
initializein interfacetigase.db.DataSource- Throws:
tigase.db.DBInitException
-
-