@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 |
Constructor and description |
---|
MongoCodecSession
(MongoDatastore datastore, MappingContext mappingContext, org.springframework.context.ApplicationEventPublisher publisher) |
MongoCodecSession
(MongoDatastore datastore, MappingContext mappingContext, org.springframework.context.ApplicationEventPublisher publisher, boolean stateless) |
Type Params | Return Type | Name and description |
---|---|---|
|
protected Transaction |
beginTransactionInternal() |
|
private org.bson.Document |
buildNativeDocumentQueryFromCriteria(QueryableCriteria criteria, PersistentEntity entity) |
|
protected MongoCodecEntityPersister |
createPersister(java.lang.Class cls, MappingContext mappingContext) |
|
java.lang.Object |
decode(java.lang.Class type, java.lang.Object nativeObject) |
|
long |
deleteAll(QueryableCriteria criteria) |
|
void |
flush(com.mongodb.WriteConcern writeConcern) |
|
MongoDatastore |
getDatastore() |
|
DocumentMappingContext |
getDocumentMappingContext() |
|
com.mongodb.client.MongoClient |
getNativeInterface() |
|
protected java.util.List<com.mongodb.client.model.WriteModel<?>> |
getWriteModelsForEntity(PersistentEntity persistentEntity, java.util.Map<PersistentEntity, java.util.List<com.mongodb.client.model.WriteModel<?>>> writeModels) |
|
long |
updateAll(QueryableCriteria criteria, java.util.Map<java.lang.String, java.lang.Object> properties) |