Skip navigation links
oracle.toplink.mappings.transformers
Class ConstantTransformer
java.lang.Object
oracle.toplink.mappings.transformers.FieldTransformerAdapter
oracle.toplink.mappings.transformers.ConstantTransformer
- All Implemented Interfaces:
- java.io.Serializable, FieldTransformer
-
public class ConstantTransformer
- extends FieldTransformerAdapter
Purpose: Allows a field to always be mapped to a constant value. This allows default values to be provided for un-mapped fields.
- Since:
- 10.1.3
- See Also:
oracle.toplink.mappings.FieldTransformer
, Serialized Form
Method Summary |
java.lang.Object |
getValue()
Return the value of the constant. |
void |
setValue(java.lang.Object value)
Set the value of the constant. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConstantTransformer
public ConstantTransformer()
ConstantTransformer
public ConstantTransformer(java.lang.Object value)
- Return a constant transformer for the constant value.
getValue
public java.lang.Object getValue()
- Return the value of the constant.
setValue
public void setValue(java.lang.Object value)
- Set the value of the constant.
Skip navigation links