A MongoDB codec for persisting PersistentEntity instances
| Modifiers | Name | Description |
|---|---|---|
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 |
| Constructor and description |
|---|
PersistentEntityCodec
(org.bson.codecs.configuration.CodecRegistry codecRegistry, PersistentEntity entity, boolean stateful = true) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
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 = createEntityAccess(value, org.bson.codecs.EncoderContext encoderContext = DEFAULT_ENCODER_CONTEXT, boolean embedded = false)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 |
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
This method will encode an update for the given object based
value - A org.bson.conversions.Bson that is the update object