|
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.AbstractTransformationMapping
public abstract class AbstractTransformationMapping
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 | |
---|---|
AbstractTransformationMapping()
Default constructor. |
Method Summary | |
---|---|
void |
addFieldTransformation(DatabaseField field,
java.lang.String methodName)
Add the 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 |
addFieldTransformation(java.lang.String fieldName,
java.lang.String methodName)
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 |
addFieldTransformer(DatabaseField field,
FieldTransformer transformer)
Add the field and the transformer that returns the value to be placed in the field when the object is written to the database. |
void |
addFieldTransformer(java.lang.String fieldName,
FieldTransformer transformer)
Add the name of field and the transformer that returns the value to be placed in the field when the object is written to the database. |
void |
dontUseIndirection()
Indirection means that a ValueHolder will be put in-between the attribute and the real object. |
java.lang.String |
getAttributeMethodName()
Return the attribute transformation method name. |
boolean |
isMutable()
Return true if the attribute for this mapping is not a simple atomic value that cannot be modified, only replaced. |
void |
setAttributeMethodName(java.lang.String aMethodName)
Deprecated. replaced by setAttributeTransformation(String) |
void |
setAttributeTransformation(java.lang.String methodName)
To set the attribute method name. |
void |
setAttributeTransformer(AttributeTransformer transformer)
Set the AttributeTransformer, this transformer will be used to extract the value for the object's attribute from the database row. |
void |
setIndirectionPolicy(oracle.toplink.internal.indirection.IndirectionPolicy indirectionPolicy)
ADVANCED: Set the indirection policy. |
void |
setIsMutable(boolean mutable)
Set if the value of the attribute is atomic or a complex mutable object and can be modified without replacing the entire object. |
void |
useBasicIndirection()
Indirection means that a ValueHolder will be put in-between the attribute and the real object. |
void |
useContainerIndirection(java.lang.Class containerClass)
Indirection means that a IndirectContainer (wrapping a ValueHolder) will be put in-between the attribute and the real object. |
void |
useIndirection()
Indirection means that a ValueHolder will be put in-between the attribute and the real object. |
boolean |
usesIndirection()
Indirection meansthat a ValueHolder will be put in-between the attribute and the real object. |
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, simpleAddToCollectionChangeRecord, simpleRemoveFromCollectionChangeRecord |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AbstractTransformationMapping()
Method Detail |
---|
public void addFieldTransformation(DatabaseField field, java.lang.String methodName)
oracle.toplink.sessions.Session
.
public void addFieldTransformation(java.lang.String fieldName, java.lang.String methodName)
oracle.toplink.sessions.Session
.
public void addFieldTransformer(java.lang.String fieldName, FieldTransformer transformer)
public void addFieldTransformer(DatabaseField field, FieldTransformer transformer)
public void dontUseIndirection()
public java.lang.String getAttributeMethodName()
public boolean isMutable()
public void setAttributeTransformer(AttributeTransformer transformer)
public void setAttributeMethodName(java.lang.String aMethodName)
public void setAttributeTransformation(java.lang.String methodName)
public void setIsMutable(boolean mutable)
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: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |