oracle.toplink.objectrelational
Class NestedTableMapping
java.lang.Object
|
+--oracle.toplink.mappings.DatabaseMapping
|
+--oracle.toplink.mappings.ForeignReferenceMapping
|
+--oracle.toplink.mappings.CollectionMapping
|
+--oracle.toplink.objectrelational.NestedTableMapping
- All Implemented Interfaces:
- java.lang.Cloneable, ContainerMapping, java.io.Serializable
- public class NestedTableMapping
- extends CollectionMapping
Purpose:
Nested tables are similar to VARRAYs
except internally they store their information in a separate table
from their parent structure's table. The advantage of nested tables is that they support querying and
joining much better than varrays that are inlined into the parent table. A nested table is typically
used to represent a one-to-many or many-to-many relationship of references to another independent
structure. TopLink supports storing a nested table of values into a single field.
NOTE: Only Oracle8i supports nested tables type.
- Since:
- TOPLink/Java 2.5
- See Also:
- Serialized Form
Type | Method |
java.lang.String |
getFieldName()
PUBLIC:
Return the name of the field this mapping represents. |
java.lang.String |
getStructureName()
PUBLIC:
Return the structure name of the nestedTable. |
void |
setFieldName(java.lang.String FieldName)
PUBLIC:
Set the field name in the mapping. |
void |
setStructureName(java.lang.String structureName)
PUBLIC:
Set the name of the structure. |
Methods inherited from class oracle.toplink.mappings.ForeignReferenceMapping |
dontUseBatchReading, dontUseIndirection, getReferenceClass,
getRelationshipPartnerAttributeName, privateOwnedRelationship,
setCustomSelectionQuery, setIndirectionPolicy,
setReferenceClass, setRelationshipPartnerAttributeName,
setSelectionCriteria, setSelectionSQLString,
setUsesBatchReading, setUsesIndirection, shouldUseBatchReading,
useBasicIndirection, useBatchReading, useContainerIndirection,
useIndirection, usesIndirection |
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 |
NestedTableMapping
public NestedTableMapping()
- PUBLIC:
Default constructor.
getFieldName
public java.lang.String getFieldName()
- PUBLIC:
Return the name of the field this mapping represents.
getStructureName
public java.lang.String getStructureName()
- PUBLIC:
Return the structure name of the nestedTable.
This is the name of the user defined data type as defined on the database.
setFieldName
public void setFieldName(java.lang.String FieldName)
- PUBLIC:
Set the field name in the mapping.
setStructureName
public void setStructureName(java.lang.String structureName)
- PUBLIC:
Set the name of the structure.
This is the name of the user defined nested table data type as defined on the database.