@groovy.transform.CompileStatic class MongoCodecSession extends AbstractMongoSession
A MongoDB session for codec mapping style
Modifiers | Name | Description |
---|---|---|
protected java.util.Map<java.lang.Class, MongoCodecEntityPersister> |
mongoCodecEntityPersisterMap |
Fields inherited from class | Fields |
---|---|
class AbstractMongoSession |
MONGO_SET_OPERATOR, MONGO_UNSET_OPERATOR, declaredWriteConcerns, defaultDatabase, errorOccured, mongoCollections, mongoDatabases, mongoDatastore, writeConcern |
Constructor and description |
---|
MongoCodecSession(MongoDatastore datastore, org.grails.datastore.mapping.model.MappingContext mappingContext, org.springframework.context.ApplicationEventPublisher publisher) |
MongoCodecSession(MongoDatastore datastore, org.grails.datastore.mapping.model.MappingContext mappingContext, org.springframework.context.ApplicationEventPublisher publisher, boolean stateless) |
Type Params | Return Type | Name and description |
---|---|---|
|
protected org.grails.datastore.mapping.transactions.Transaction |
beginTransactionInternal() |
|
protected MongoCodecEntityPersister |
createPersister(java.lang.Class cls, org.grails.datastore.mapping.model.MappingContext mappingContext) |
|
java.lang.Object |
decode(java.lang.Class type, java.lang.Object nativeObject) |
|
long |
deleteAll(org.grails.datastore.mapping.query.api.QueryableCriteria criteria) |
|
void |
flush(com.mongodb.WriteConcern writeConcern) |
|
MongoDatastore |
getDatastore() |
|
org.grails.datastore.mapping.document.config.DocumentMappingContext |
getDocumentMappingContext() |
|
com.mongodb.client.MongoClient |
getNativeInterface() |
|
protected java.util.List<com.mongodb.client.model.WriteModel<?>> |
getWriteModelsForEntity(org.grails.datastore.mapping.model.PersistentEntity persistentEntity, java.util.Map<org.grails.datastore.mapping.model.PersistentEntity, java.util.List<com.mongodb.client.model.WriteModel<?>>> writeModels) |
|
long |
updateAll(org.grails.datastore.mapping.query.api.QueryableCriteria criteria, java.util.Map<java.lang.String, java.lang.Object> properties) |
Methods inherited from class | Name |
---|---|
class AbstractMongoSession |
addPostFlushOperations, decode, flush, flush, getCollection, getCollectionName, getDatabase, getDatastore, getDeclaredWriteConcern, getDefaultDatabase, getDocumentMappingContext, getMappingContext, getNativeInterface, getWriteConcern, hasTransaction, setWriteConcern, useCollection, useDatabase |