ch.sahits.codegen.sql.model
Interface IConvertableField

All Superinterfaces:
IField

public interface IConvertableField
extends IField

Defining the interface of a field whose value may be changed by an IFieldValueConverter

Since:
1.1.0
Author:
Andi Hotz

Method Summary
 java.lang.String convert()
          Convert the field value.
 void registerConverter(IFieldValueConverter converterInstance)
          Register the Converter method with the field
 
Methods inherited from interface ch.sahits.codegen.sql.model.IField
getFieldName, getFieldValue, setFieldName, setFieldValue
 

Method Detail

registerConverter

void registerConverter(IFieldValueConverter converterInstance)
Register the Converter method with the field

Parameters:
converterInstance -

convert

java.lang.String convert()
Convert the field value. The converted value is not stored in this object. If no converter is registered, the original value is returened

Returns:
converted value