public interface Wrapper
extends java.io.Serializable
Purpose: This class will act as a wrapper for any Entity stored within Coherence. This interface will provide a means to store relationship information without forcing related objects to be referenced within Coherence. All Entities stored within Coherence will be wrapped by an implementation of this interface. Users who access Coherence via custom Value Extractors will need to anticipate unwrapping the actual entity. This does not apply to the default Coherence Reflection Extractor as the wrapper implementation will include mapped property methods. If users have not mapped all of the properties that they wish to access then they must implement a custom Value Extractor that unwraps the entity.
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> |
getFetchedAttributeNames()
This method provides access to the list of attributes that are loaded in this
wrapper's delegate when a non default fetch group was used to load the delegate.
|
java.lang.Object[] |
getForeignKeyValuesFor(java.lang.String propertyName)
This method provides access to the foreign key values for the related
entities.
|
java.lang.Object[] |
getPrimaryKeyValuesFor(java.lang.String propertyName)
This method provides access to the primary key values for the related
entities.
|
void |
setFetchedAttributeNames(java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> fetchedAttributes)
This method can be used to set a list of attributes that have been set on the wrapper's
delegate.
|
void |
setForeignKeyValuesFor(java.lang.String propertyName,
java.lang.Object[] fks)
This method provides access to the foreign key values for queries of the
related entities.
|
void |
setPrimaryKeyValuesFor(java.lang.String propertyName,
java.lang.Object[] pks)
This method provides access to the primary key values for the related
entities.
|
java.lang.Object |
unwrap()
This method provides an access point for the wrapped entity.
|
void |
wrap(java.lang.Object entity)
This method is used to store the Entity within the wrapper.
|
java.lang.Object unwrap()
void wrap(java.lang.Object entity)
java.lang.Object[] getForeignKeyValuesFor(java.lang.String propertyName)
java.lang.Object[] getPrimaryKeyValuesFor(java.lang.String propertyName)
void setForeignKeyValuesFor(java.lang.String propertyName, java.lang.Object[] fks)
void setPrimaryKeyValuesFor(java.lang.String propertyName, java.lang.Object[] pks)
java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> getFetchedAttributeNames()
void setFetchedAttributeNames(java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> fetchedAttributes)