|
Oracle Fusion Middleware Java API Reference for Oracle TopLink 11g Release 1 (11.1.1) E28847-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Wrapper
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.
Method Summary | |
---|---|
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 |
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. |
Method Detail |
---|
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)
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |