@groovy.transform.CompileStatic class PersistentEntityCodec extends BsonPersistentEntityCodec
A MongoDB codec for persisting PersistentEntity instances
Modifiers | Name | Description |
---|---|---|
class |
PersistentEntityCodec.1 |
|
class |
PersistentEntityCodec.2 |
|
class |
PersistentEntityCodec.3 |
|
class |
PersistentEntityCodec.4 |
|
class |
PersistentEntityCodec.5 |
|
static class |
PersistentEntityCodec.OneToManyDecoder |
|
static class |
PersistentEntityCodec.OneToManyEncoder |
|
static class |
PersistentEntityCodec.ToOneDecoder |
A {@PropertyEncoder} capable of encoding {@ToOne} association types |
static class |
PersistentEntityCodec.ToOneEncoder |
A {@PropertyEncoder} capable of encoding {@ToOne} association types |
Modifiers | Name | Description |
---|---|---|
static java.lang.String |
DB_REF_ID_FIELD |
|
static java.lang.String |
MONGO_SET_OPERATOR |
|
static java.lang.String |
MONGO_UNSET_OPERATOR |
|
static java.lang.String |
SCHEMALESS_ATTRIBUTES |
Fields inherited from class | Fields |
---|---|
class BsonPersistentEntityCodec |
DEFAULT_DECODER_CONTEXT, DEFAULT_ENCODER_CONTEXT |
Properties inherited from class | Properties |
---|---|
class BsonPersistentEntityCodec |
codecRegistry, entity, mappingContext, stateful |
Constructor and description |
---|
PersistentEntityCodec(CodecRegistry codecRegistry, PersistentEntity entity, boolean stateful) |
Type Params | Return Type | Name and description |
---|---|---|
|
protected void |
decodeAssociations(Session mongoSession, EntityAccess access) |
|
protected void |
encodeEmbeddedCollectionUpdate(EntityAccess parentAccess, BsonDocument sets, Document unsets, Association association, java.lang.Object v) |
|
protected void |
encodeEmbeddedUpdate(BsonDocument sets, Document unsets, Association association, java.lang.Object v) |
|
Document |
encodeUpdate(java.lang.Object value, EntityAccess access, EncoderContext encoderContext, boolean embedded) This method will encode an update for the given object based |
|
protected java.lang.String |
getDiscriminatorAttributeName() |
|
protected boolean |
isIdentifierProperty(java.lang.String name) |
|
protected void |
readingComplete(EntityAccess access) |
|
protected java.lang.Object |
retrieveCachedInstance(EntityAccess access) |
Methods inherited from class | Name |
---|---|
class BsonPersistentEntityCodec |
beforeFinishDocument, createEntityAccess, createEntityAccess, decode, encode, encode, encodeUpdate, getDiscriminatorAttributeName, getEncoderClass, getPropertyDecoder, getPropertyEncoder, isDiscriminatorProperty, isIdentifierProperty, readSchemaless, readingComplete, registerDecoder, registerEncoder, retrieveCachedInstance, writeAttributes, writingComplete |
This method will encode an update for the given object based
value
- A Bson that is the update object