Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle TopLink
11g Release 1 (11.1.1)

B32476-02


oracle.toplink.mappings.transformers
Class ConstantTransformer

java.lang.Object
  extended by oracle.toplink.mappings.transformers.FieldTransformerAdapter
      extended by 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

Constructor Summary
ConstantTransformer()
           
ConstantTransformer(java.lang.Object value)
          Return a constant transformer for the constant value.

 

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 oracle.toplink.mappings.transformers.FieldTransformerAdapter
initialize

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

ConstantTransformer

public ConstantTransformer()

ConstantTransformer

public ConstantTransformer(java.lang.Object value)
Return a constant transformer for the constant value.

Method Detail

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

Copyright © 1998, 2009, Oracle. All Rights Reserved.