Purpose: Allows a field to always be mapped to a constant value. This allows default values to be provided for un-mapped fields.
FieldTransformer
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object | buildFieldValue(Object
- an instance of the domain class which contains the attribute object, String - the name of the field being transformed. Used if the user wants to use this transformer for multiple fields. fieldName, Session - the current session session)Overrides org. Implements org. |
| public Object | |
| public void |
| value | back to summary |
|---|---|
| protected Object value | |
| ConstantTransformer | back to summary |
|---|---|
| public ConstantTransformer() | |
| ConstantTransformer | back to summary |
|---|---|
| public ConstantTransformer(Object value) PUBLIC: Return a constant transformer for the constant value. | |
| getValue | back to summary |
|---|---|
| public Object getValue() PUBLIC: Return the value of the constant. | |
| setValue | back to summary |
|---|---|
| public void setValue(Object value) PUBLIC: Set the value of the constant. | |