| 
Oracle Fusion Middleware Java API Reference for Oracle TopLink 11g Release 1 (11.1.1) E28847-01  | 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||
@Target(value={METHOD,FIELD})
@Retention(value=RUNTIME)
public @interface WriteTransformer
Annotation for org.eclipse.persistence.mappings.TransformationMapping. WriteTransformer defines transformation of the attribute value to a single database column value (column is specified in the WriteTransformer). A single WriteTransformer may be specified directly on the method or attribute. Multiple WriteTransformers should be wrapped into WriteTransformers annotation. No WriteTransformers specified for read-only mapping. Unless the TransformationMapping is write-only, it should have a ReadTransformer, it defines transformation of database column(s) value(s) into attribute value.
ReadTransformer, Transformation, Transformation can be specified within an Entity, MappedSuperclass and Embeddable class.| Optional Element Summary | |
|---|---|
 javax.persistence.Column | 
columnSpecify here the column into which the value should be written.  | 
 java.lang.String | 
methodThe mapped class must have a method with this name which returns a value to be written into the database column.  | 
 java.lang.Class | 
transformerClassUser-defined class that must implement the org.eclipse.persistence.mappings.transformers.FieldTransformer interface.  | 
public abstract java.lang.Class transformerClass
public abstract java.lang.String method
public abstract javax.persistence.Column column
  | 
 | 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||