|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--oracle.toplink.mappings.DatabaseMapping
|
+--oracle.toplink.mappings.TransformationMapping
Purpose: A transformation mapping is used for a specialized translation between how a value is represented in Java and its representation on the databae. Transformation mappings should only be used when other mappings are inadequate.
| Constructor Summary |
TransformationMapping()
PUBLIC: Default constructor. |
| Method Summary |
| Type | Method |
|---|---|
void |
addFieldTransformation(java.lang.String fieldName,
java.lang.String methodName)
PUBLIC: Add the name of field and the name of the method that returns the value to be placed in said field when the object is written to the database. |
void |
dontUseIndirection()
PUBLIC: Indirection means that a ValueHolder will be put in-between the attribute and the real object. |
java.lang.String |
getAttributeMethodName()
PUBLIC: Return the attribute transformation method name. |
java.util.Vector |
getFieldNameToMethodNameAssociations()
PUBLIC: Return a collection of the field name to method name associations. |
void |
setAttributeMethodName(java.lang.String aMethodName)
PUBLIC: To set the method name. |
void |
setAttributeTransformation(java.lang.String methodName)
PUBLIC: To set the attribute method name. |
void |
setFieldNameToMethodNameAssociations(java.util.Vector fieldAssociations)
PUBLIC: Set the field to method name associations. |
void |
setIndirectionPolicy(oracle.toplink.internal.indirection.IndirectionPolicy indirectionPolicy)
ADVANCED: Set the indirection policy. |
void |
useBasicIndirection()
PUBLIC: Indirection means that a ValueHolder will be put in-between the attribute and the real object. |
void |
useContainerIndirection(java.lang.Class containerClass)
PUBLIC: Indirection means that a IndirectContainer (wrapping a ValueHolder) will be put in-between the attribute and the real object. |
void |
useIndirection()
PUBLIC: Indirection means that a ValueHolder will be put in-between the attribute and the real object. |
boolean |
usesIndirection()
PUBLIC: Indirection means that a ValueHolder will be put in-between the attribute and the real object. |
| 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 |
| Constructor Detail |
public TransformationMapping()
| Method Detail |
public void addFieldTransformation(java.lang.String fieldName,
java.lang.String methodName)
oracle.toplink.publicinterface.Session.public void dontUseIndirection()
public java.lang.String getAttributeMethodName()
public java.util.Vector getFieldNameToMethodNameAssociations()
public void setAttributeMethodName(java.lang.String aMethodName)
public void setAttributeTransformation(java.lang.String methodName)
public void setFieldNameToMethodNameAssociations(java.util.Vector fieldAssociations)
public void setIndirectionPolicy(oracle.toplink.internal.indirection.IndirectionPolicy indirectionPolicy)
public void useBasicIndirection()
public void useContainerIndirection(java.lang.Class containerClass)
public void useIndirection()
useBasicIndirection()public boolean usesIndirection()
oracle.toplink.mappings.IndirectionPolicy
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||