public abstract class RedisAssociation extends Object
The owning document must be written back to Redis to make changes to the rows of an association persistent in the data store.
| Constructor and Description |
|---|
RedisAssociation() |
| Modifier and Type | Method and Description |
|---|---|
static RedisAssociation |
fromAssociationDocument(Association associationDocument)
Creates a
RedisAssociation from the given Association. |
static RedisAssociation |
fromEmbeddedAssociation(Entity entity,
AssociationKeyMetadata associationKeyMetadata)
Creates a
RedisAssociation from the given Entity and association name. |
static RedisAssociation |
fromEmbeddedAssociation(Map<String,String> entity,
AssociationKeyMetadata associationKeyMetadata)
Creates a
RedisAssociation from the given Map and association name. |
abstract StructuredValue |
getOwningDocument()
Returns the Redis value which owns this association, either an
Association or an
Entity. |
abstract Object |
getRows()
Get all the rows of this association.
|
abstract void |
setRows(Object rows)
Sets the rows of this association.
|
public static RedisAssociation fromEmbeddedAssociation(Entity entity, AssociationKeyMetadata associationKeyMetadata)
RedisAssociation from the given Entity and association name.entity - the owner of the associationassociationKeyMetadata - association key meta-dataRedisAssociation representing the associationpublic static RedisAssociation fromEmbeddedAssociation(Map<String,String> entity, AssociationKeyMetadata associationKeyMetadata)
RedisAssociation from the given Map and association name.entity - the owner of the associationassociationKeyMetadata - association key meta-dataRedisAssociation representing the associationpublic static RedisAssociation fromAssociationDocument(Association associationDocument)
RedisAssociation from the given Association.associationDocument - the document representing the associationRedisAssociation of the given Associationpublic abstract Object getRows()
public abstract void setRows(Object rows)
rows - the rows of the associationpublic abstract StructuredValue getOwningDocument()
Association or an
Entity.StructuredValue representing the owner of the associationCopyright © 2010–2016 Hibernate. All rights reserved.