Package step.core.accessors
Class AbstractAccessor
- java.lang.Object
-
- step.core.accessors.AbstractAccessor
-
- Direct Known Subclasses:
AbstractCRUDAccessor
public class AbstractAccessor extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected MongoClientSession
mongoClientSession
-
Constructor Summary
Constructors Constructor Description AbstractAccessor()
AbstractAccessor(MongoClientSession mongoClientSession)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
createOrUpdateCompoundIndex(com.mongodb.client.MongoCollection<org.bson.Document> collection, String... attribute)
static void
createOrUpdateIndex(com.mongodb.client.MongoCollection<org.bson.Document> collection, String attribute)
protected void
createOrUpdateTTLIndex(com.mongodb.client.MongoCollection<org.bson.Document> collection, String attribute, Long ttl)
protected org.jongo.MongoCollection
getJongoCollection(String collectionName)
protected com.mongodb.client.MongoCollection<org.bson.Document>
getMongoCollection(String collectionName)
-
-
-
Field Detail
-
mongoClientSession
protected MongoClientSession mongoClientSession
-
-
Constructor Detail
-
AbstractAccessor
public AbstractAccessor()
-
AbstractAccessor
public AbstractAccessor(MongoClientSession mongoClientSession)
-
-
Method Detail
-
getJongoCollection
protected org.jongo.MongoCollection getJongoCollection(String collectionName)
-
getMongoCollection
protected com.mongodb.client.MongoCollection<org.bson.Document> getMongoCollection(String collectionName)
-
createOrUpdateIndex
public static void createOrUpdateIndex(com.mongodb.client.MongoCollection<org.bson.Document> collection, String attribute)
-
createOrUpdateCompoundIndex
public static void createOrUpdateCompoundIndex(com.mongodb.client.MongoCollection<org.bson.Document> collection, String... attribute)
-
-