/** * PUBLIC: * Add the field and the transformer * that returns the value to be placed in the field * when the object is written to the database. */ public void addFieldTransformer(DatabaseField field, FieldTransformer transformer) { TransformerBasedFieldTransformation transformation = new TransformerBasedFieldTransformation(transformer); transformation.setField(field); getFieldTransformations().addElement(transformation); }
/** * PUBLIC: * Add the field and the transformer * that returns the value to be placed in the field * when the object is written to the database. */ public void addFieldTransformer(DatabaseField field, FieldTransformer transformer) { TransformerBasedFieldTransformation transformation = new TransformerBasedFieldTransformation(transformer); transformation.setField(field); getFieldTransformations().add(transformation); }
/** * PUBLIC: * Add the field and the transformer * that returns the value to be placed in the field * when the object is written to the database. */ public void addFieldTransformer(DatabaseField field, FieldTransformer transformer) { TransformerBasedFieldTransformation transformation = new TransformerBasedFieldTransformation(transformer); transformation.setField(field); getFieldTransformations().add(transformation); }
/** * INTERNAL: * Add the name of a field and the name of a class which implements * the FieldTransformer interface. When the object is written, the transform * method will be called on the FieldTransformer to acquire the value to put * in the field. */ public void addFieldTransformerClassName(DatabaseField field, String className) { TransformerBasedFieldTransformation transformation = new TransformerBasedFieldTransformation(); transformation.setField(field); transformation.setTransformerClassName(className); getFieldTransformations().add(transformation); }
/** * INTERNAL: * Add the name of a field and the name of a class which implements * the FieldTransformer interface. When the object is written, the transform * method will be called on the FieldTransformer to acquire the value to put * in the field. */ public void addFieldTransformerClassName(DatabaseField field, String className) { TransformerBasedFieldTransformation transformation = new TransformerBasedFieldTransformation(); transformation.setField(field); transformation.setTransformerClassName(className); getFieldTransformations().add(transformation); }
/** * INTERNAL: * Add the name of a field and the name of a class which implements * the FieldTransformer interface. When the object is written, the transform * method will be called on the FieldTransformer to acquire the value to put * in the field. */ public void addFieldTransformerClassName(DatabaseField field, String className) { TransformerBasedFieldTransformation transformation = new TransformerBasedFieldTransformation(); transformation.setField(field); transformation.setTransformerClassName(className); getFieldTransformations().addElement(transformation); }