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.UnregisterAware
Created 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 boolean
automaticSchemaManagement()
void
beforeUnregister()
com.mongodb.client.MongoDatabase
getDatabase()
java.lang.String
getResourceUri()
java.util.Optional<tigase.util.Version>
getSchemaVersion(java.lang.String component)
void
initialize(java.lang.String resource_uri)
void
initRepository(java.lang.String resource_uri, java.util.Map<java.lang.String,java.lang.String> params)
Deprecated.
-
-
-
Method Detail
-
automaticSchemaManagement
public boolean automaticSchemaManagement()
- Specified by:
automaticSchemaManagement
in interfacetigase.db.DataSource
-
beforeUnregister
public void beforeUnregister()
- Specified by:
beforeUnregister
in interfacetigase.kernel.beans.UnregisterAware
-
getDatabase
public com.mongodb.client.MongoDatabase getDatabase()
-
getResourceUri
public java.lang.String getResourceUri()
- Specified by:
getResourceUri
in interfacetigase.db.DataSource
-
getSchemaVersion
public java.util.Optional<tigase.util.Version> getSchemaVersion(java.lang.String component)
- Specified by:
getSchemaVersion
in 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.DBInitException
Deprecated.- Specified by:
initRepository
in interfacetigase.db.Repository
- Throws:
tigase.db.DBInitException
-
initialize
public void initialize(java.lang.String resource_uri) throws tigase.db.DBInitException
- Specified by:
initialize
in interfacetigase.db.DataSource
- Throws:
tigase.db.DBInitException
-
-