|
Oracle Application Server TopLink API Reference 10g (9.0.4) B10491-01 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.toplink.mappings.DatabaseMapping | +--oracle.toplink.sdk.SDKDirectCollectionMapping
SDKDirectCollectionMapping
consolidates the behavior of mappings that map collections of "native" data objects (e.g. String
s). These are objects that do not have their own descriptor and repeat within the database row for the containing object. (Sorta like a DirectCollectionMapping
without the additional table.)
SDKDescriptor
, SDKFieldValue
, SDKCollectionMappingHelper
, SDKCollectionChangeRecord
, SDKOrderedCollectionChangeRecord
, Serialized FormConstructor Summary | |
SDKDirectCollectionMapping() Default constructor. |
Method Summary | |
java.lang.Class |
getAttributeElementClass() PUBLIC: Return the class each element in the object's collection should be converted to, before the collection is inserted into the object. |
java.lang.String |
getElementDataTypeName() PUBLIC: Return the "data type" associated with each element in the nested collection. |
java.lang.Class |
getFieldElementClass() PUBLIC: Return the class each element in the database row's collection should be converted to, before the collection is inserted into the database. |
java.lang.String |
getFieldName() PUBLIC: Return the name of the field that holds the nested collection. |
void |
setAttributeElementClass(java.lang.Class attributeElementClass) PUBLIC: Set the class each element in the object's collection should be converted to, before the collection is inserted into the object. |
void |
setContainerPolicy(oracle.toplink.internal.queryframework.ContainerPolicy containerPolicy) ADVANCED: Set the mapping's containerPolicy. |
void |
setElementDataTypeName(java.lang.String elementDataTypeName) PUBLIC: Set the "data type" associated with each element in the nested collection. |
void |
setFieldElementClass(java.lang.Class fieldElementClass) PUBLIC: Set the class each element in the database row's collection should be converted to, before the collection is inserted into the database. |
void |
setFieldName(java.lang.String fieldName) PUBLIC: Set the name of the field that holds the nested collection. |
void |
simpleAddToCollectionChangeRecord(java.lang.Object referenceKey, java.lang.Object changeSetToAdd, oracle.toplink.internal.sessions.ObjectChangeSet changeSet, oracle.toplink.publicinterface.Session session) ADVANCED: This method is used to have an object add to a collection once the changeSet is applied The referenceKey parameter should only be used for direct Maps. |
void |
simpleRemoveFromCollectionChangeRecord(java.lang.Object referenceKey, java.lang.Object changeSetToRemove, oracle.toplink.internal.sessions.ObjectChangeSet changeSet, oracle.toplink.publicinterface.Session session) ADVANCED: This method is used to have an object removed from a collection once the changeSet is applied The referenceKey parameter should only be used for direct Maps. |
void |
useCollectionClass(java.lang.Class concreteClass) PUBLIC: Configure the mapping to use an instance of the specified container class to hold the nested objects. |
void |
useMapClass(java.lang.Class concreteClass, java.lang.String methodName) PUBLIC: SDKDirectCollectionMapping does not support Map containers. |
Methods inherited from class oracle.toplink.mappings.DatabaseMapping |
getAttributeClassification, getAttributeName, getGetMethodName, getSetMethodName, readOnly, readWrite, setAttributeName, setGetMethodName, setIsReadOnly, setSetMethodName, setWeight |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface oracle.toplink.sdk.SDKCollectionMapping |
getAttributeName, setRealAttributeValueInObject |
Constructor Detail |
public SDKDirectCollectionMapping()
Method Detail |
public java.lang.Class getAttributeElementClass()
public java.lang.String getElementDataTypeName()
public java.lang.Class getFieldElementClass()
public java.lang.String getFieldName()
public void setAttributeElementClass(java.lang.Class attributeElementClass)
public void setContainerPolicy(oracle.toplink.internal.queryframework.ContainerPolicy containerPolicy)
setContainerPolicy
in interface ContainerMapping
public void setElementDataTypeName(java.lang.String elementDataTypeName)
public void setFieldElementClass(java.lang.Class fieldElementClass)
public void setFieldName(java.lang.String fieldName)
public void simpleAddToCollectionChangeRecord(java.lang.Object referenceKey, java.lang.Object changeSetToAdd, oracle.toplink.internal.sessions.ObjectChangeSet changeSet, oracle.toplink.publicinterface.Session session)
simpleAddToCollectionChangeRecord
in class DatabaseMapping
public void simpleRemoveFromCollectionChangeRecord(java.lang.Object referenceKey, java.lang.Object changeSetToRemove, oracle.toplink.internal.sessions.ObjectChangeSet changeSet, oracle.toplink.publicinterface.Session session)
simpleRemoveFromCollectionChangeRecord
in class DatabaseMapping
public void useCollectionClass(java.lang.Class concreteClass)
jdk1.2.x: The container class must implement (directly or indirectly) the Collection interface.
jdk1.1.x: The container class must be a subclass of Vector.
useCollectionClass
in interface ContainerMapping
public void useMapClass(java.lang.Class concreteClass, java.lang.String methodName)
useMapClass
in interface ContainerMapping
|
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |