public abstract class AbstractFormatConverter<T> extends java.lang.Object implements FormatConverter<T>
| Modifier and Type | Field and Description |
|---|---|
static java.util.LinkedHashSet<java.lang.String> |
FIELDS_TO_SKIP |
static java.lang.String |
VF_IS_NULL |
| Constructor and Description |
|---|
AbstractFormatConverter(java.lang.Class valueClass) |
AbstractFormatConverter(java.lang.Class valueClass,
TableFormat format) |
| Modifier and Type | Method and Description |
|---|---|
static void |
addFiledToNullableFormat(TableFormat format,
FieldFormat field) |
T |
clone(T value,
boolean useConversion) |
java.lang.Object |
convertToTable(T value) |
FieldFormat |
createFieldFormat(java.lang.String name) |
static TableFormat |
deriveNullable(TableFormat format)
Adds null-value trigger to format.
|
TableFormat |
getFormat() |
java.lang.Class<T> |
getValueClass() |
T |
instantiate(DataRecord source) |
static void |
removeFiledFromNullableFormat(TableFormat format,
java.lang.String fieldName) |
void |
setValueClass(java.lang.Class<T> valueClass) |
protected static java.lang.Object |
simpleToTable(java.lang.Object value,
TableFormat format) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconvertToBean, convertToTablepublic static final java.lang.String VF_IS_NULL
public static final java.util.LinkedHashSet<java.lang.String> FIELDS_TO_SKIP
public AbstractFormatConverter(java.lang.Class valueClass,
TableFormat format)
public AbstractFormatConverter(java.lang.Class valueClass)
public static TableFormat deriveNullable(TableFormat format)
format - Formatpublic static void addFiledToNullableFormat(TableFormat format, FieldFormat field)
public static void removeFiledFromNullableFormat(TableFormat format, java.lang.String fieldName)
public java.lang.Class<T> getValueClass()
getValueClass in interface FormatConverter<T>public void setValueClass(java.lang.Class<T> valueClass)
public TableFormat getFormat()
getFormat in interface FormatConverter<T>public FieldFormat createFieldFormat(java.lang.String name)
createFieldFormat in interface FormatConverter<T>public T instantiate(DataRecord source) throws java.lang.InstantiationException
instantiate in interface FormatConverter<T>java.lang.InstantiationExceptionpublic T clone(T value, boolean useConversion)
clone in interface FormatConverter<T>public java.lang.Object convertToTable(T value)
convertToTable in interface FormatConverter<T>protected static java.lang.Object simpleToTable(java.lang.Object value,
TableFormat format)