@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 |
---|---|---|
private static java.lang.String |
BLANK_STRING |
|
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 |
DECODERS, DEFAULT_DECODER_CONTEXT, DEFAULT_ENCODER_CONTEXT, ENCODERS, codecRegistry, entity, mappingContext, stateful |
Constructor and description |
---|
PersistentEntityCodec
(org.bson.codecs.configuration.CodecRegistry codecRegistry, PersistentEntity entity, boolean stateful) |
Type Params | Return Type | Name and description |
---|---|---|
|
static void |
|
|
protected void |
decodeAssociations(Session mongoSession, EntityAccess access) |
|
protected void |
encodeEmbeddedCollectionUpdate(EntityAccess parentAccess, org.bson.BsonDocument sets, org.bson.Document unsets, Association association, java.lang.Object v) |
|
protected void |
encodeEmbeddedUpdate(org.bson.BsonDocument sets, org.bson.Document unsets, Association association, java.lang.Object v) |
|
org.bson.Document |
encodeUpdate(java.lang.Object value, EntityAccess access, org.bson.codecs.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 |
|
This method will encode an update for the given object based
value
- A org.bson.conversions.Bson that is the update object