Package step.core.collections.mongodb
Class MongoDBCollectionFactory
- java.lang.Object
-
- step.core.collections.mongodb.MongoDBCollectionFactory
-
- All Implemented Interfaces:
Closeable,AutoCloseable,step.core.collections.CollectionFactory
public class MongoDBCollectionFactory extends Object implements step.core.collections.CollectionFactory
-
-
Constructor Summary
Constructors Constructor Description MongoDBCollectionFactory(Properties properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()<T> step.core.collections.Collection<T>getCollection(String name, Class<T> entityClass)MongoClientSessiongetMongoClientSession()
-
-
-
Constructor Detail
-
MongoDBCollectionFactory
public MongoDBCollectionFactory(Properties properties)
-
-
Method Detail
-
getMongoClientSession
public MongoClientSession getMongoClientSession()
-
getCollection
public <T> step.core.collections.Collection<T> getCollection(String name, Class<T> entityClass)
- Specified by:
getCollectionin interfacestep.core.collections.CollectionFactory
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-