|
Oracle Fusion Middleware Java API Reference for Oracle TopLink (Deprecated) 11g Release 1 (11.1.1) B32476-04 |
||||||||
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.mappings.foundation.AbstractCompositeDirectCollectionMapping
public abstract class AbstractCompositeDirectCollectionMapping
AbstractCompositeDirectCollectionMapping
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 XML record
for the containing object.
Constructor Summary | |
---|---|
AbstractCompositeDirectCollectionMapping()
Default constructor. |
Method Summary | |
---|---|
java.lang.Class |
getAttributeElementClass()
Return the class each element in the object's collection should be converted to, before the collection is inserted into the object. |
java.lang.Class |
getFieldElementClass()
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()
Return the name of the field that holds the nested collection. |
Converter |
getValueConverter()
Return the converter on the mapping. |
boolean |
hasValueConverter()
Indicates if there is a converter on the mapping. |
void |
setAttributeElementClass(java.lang.Class attributeElementClass)
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 |
setField(DatabaseField field)
Set the field that holds the nested collection. |
void |
setFieldElementClass(java.lang.Class fieldElementClass)
Set the class each element in the database row's collection should be converted to, before the collection is inserted into the database. |
void |
setUsesSingleNode(boolean usesSingleNode)
Sets whether the mapping uses a single node. |
void |
setValueConverter(Converter valueConverter)
Set the converter on the mapping. |
void |
simpleAddToCollectionChangeRecord(java.lang.Object referenceKey,
java.lang.Object changeSetToAdd,
oracle.toplink.internal.sessions.ObjectChangeSet changeSet,
oracle.toplink.internal.sessions.AbstractSession 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.internal.sessions.AbstractSession 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)
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)
Mapping does not support Map containers. |
boolean |
usesSingleNode()
Checks whether the mapping uses a single node. |
Methods inherited from class oracle.toplink.mappings.DatabaseMapping |
---|
getAttributeAccessor, getAttributeClassification, getAttributeName, getGetMethodName, getProperty, getReferenceDescriptor, getSetMethodName, isLazy, isOptional, isUsingMethodAccess, readOnly, readWrite, setAttributeAccessor, setAttributeName, setGetMethodName, setIsLazy, setIsOptional, setIsReadOnly, setProperty, setSetMethodName, setWeight |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AbstractCompositeDirectCollectionMapping()
Method Detail |
---|
public Converter getValueConverter()
public boolean hasValueConverter()
public void setValueConverter(Converter valueConverter)
public java.lang.Class getAttributeElementClass()
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 setField(DatabaseField field)
public void setFieldElementClass(java.lang.Class fieldElementClass)
public void simpleAddToCollectionChangeRecord(java.lang.Object referenceKey, java.lang.Object changeSetToAdd, oracle.toplink.internal.sessions.ObjectChangeSet changeSet, oracle.toplink.internal.sessions.AbstractSession session)
simpleAddToCollectionChangeRecord
in class DatabaseMapping
public void simpleRemoveFromCollectionChangeRecord(java.lang.Object referenceKey, java.lang.Object changeSetToRemove, oracle.toplink.internal.sessions.ObjectChangeSet changeSet, oracle.toplink.internal.sessions.AbstractSession 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
public void setUsesSingleNode(boolean usesSingleNode)
True
- if the items in the collection are in a single node or false if each of the items in the collection is in its own nodepublic boolean usesSingleNode()
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |