|
Oracle Fusion Middleware Java API Reference for Oracle TopLink 11g Release 1 (11.1.1) B32476-02 |
||||||||
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.ForeignReferenceMapping
oracle.toplink.mappings.ObjectReferenceMapping
oracle.toplink.mappings.VariableOneToOneMapping
public class VariableOneToOneMapping
Purpose: Variable one to one mappings are used to represent a pointer references between a java object and an implementer of an interface. This mapping is usually represented by a single pointer (stored in an instance variable) between the source and target objects. In the relational database tables, these mappings are normally implemented using a foreign key and a typr code.
Field Summary |
---|
Fields inherited from class oracle.toplink.mappings.ForeignReferenceMapping |
---|
INNER_JOIN, NONE, OUTER_JOIN |
Constructor Summary | |
---|---|
VariableOneToOneMapping() Default constructor. |
Method Summary | |
---|---|
void |
addClassIndicator(java.lang.Class implementer, java.lang.Object typeIndicator) Add a type indicator conversion to this mapping. |
void |
addForeignQueryKeyName(java.lang.String sourceForeignKeyFieldName, java.lang.String targetQueryKeyName) A foreign key from the source table and abstract query key from the interface descriptor are added to the mapping. |
void |
addTargetForeignQueryKeyName(java.lang.String targetForeignQueryKeyName, java.lang.String sourcePrimaryKeyFieldName) Define the target foreign key relationship in the Variable 1-1 mapping. |
java.util.Vector |
getForeignKeyFieldNames() Return the foreign key field names associated with the mapping. |
java.util.Vector |
getSourceToTargetQueryKeyFieldAssociations() Return a collection of the field to query key associations. |
DatabaseField |
getTypeField() |
java.lang.String |
getTypeFieldName() This method returns the name of the typeField of the mapping. |
void |
setClassIndicatorAssociations(java.util.Vector classIndicatorAssociations) Set the class indicator associations. |
void |
setForeignKeyFieldNames(java.util.Vector fieldNames) Return the foreign key field names associated with the mapping. |
void |
setForeignQueryKeyName(java.lang.String sourceForeignKeyFieldName, java.lang.String targetQueryKeyName) A foreign key from the source table and abstract query key from the interface descriptor are added to the mapping. |
void |
setSourceToTargetQueryKeyFieldAssociations(java.util.Vector sourceToTargetQueryKeyFieldAssociations) Set a collection of the source to target query key/field associations. |
void |
setTypeFieldName(java.lang.String typeFieldName) This method sets the name of the typeField of the mapping. |
Methods inherited from class oracle.toplink.mappings.ObjectReferenceMapping |
---|
useProxyIndirection, useProxyIndirection, useProxyIndirection |
Methods inherited from class oracle.toplink.mappings.DatabaseMapping |
---|
getAttributeAccessor, getAttributeClassification, getAttributeName, getGetMethodName, getProperty, getSetMethodName, isLazy, isOptional, isUsingMethodAccess, readOnly, readWrite, setAttributeAccessor, setAttributeName, setGetMethodName, setIsLazy, setIsOptional, setIsReadOnly, setProperty, setSetMethodName, setWeight, simpleAddToCollectionChangeRecord, simpleRemoveFromCollectionChangeRecord |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public VariableOneToOneMapping()
Method Detail |
---|
public void addClassIndicator(java.lang.Class implementer, java.lang.Object typeIndicator)
public void addForeignQueryKeyName(java.lang.String sourceForeignKeyFieldName, java.lang.String targetQueryKeyName)
public void addTargetForeignQueryKeyName(java.lang.String targetForeignQueryKeyName, java.lang.String sourcePrimaryKeyFieldName)
public java.util.Vector getForeignKeyFieldNames()
public java.util.Vector getSourceToTargetQueryKeyFieldAssociations()
public DatabaseField getTypeField()
public java.lang.String getTypeFieldName()
public void setClassIndicatorAssociations(java.util.Vector classIndicatorAssociations)
public void setForeignKeyFieldNames(java.util.Vector fieldNames)
public void setForeignQueryKeyName(java.lang.String sourceForeignKeyFieldName, java.lang.String targetQueryKeyName)
public void setSourceToTargetQueryKeyFieldAssociations(java.util.Vector sourceToTargetQueryKeyFieldAssociations)
public void setTypeFieldName(java.lang.String typeFieldName)
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |