static class TempTableSchema.Column
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.Integer |
extent
Extent of an array field (null for a scalar field)
|
private java.lang.reflect.Method |
getter
Method to get field data from buffer
|
private BaseDataType |
initialValue
The initial value as an instance of the appropriate type of the INIT option for this column.
|
private java.lang.String |
legacyName
Legacy name of field.
|
private TableMapper.LegacyFieldInfo |
lfi
Field info object to which we delegate all getters.
|
private int |
order
Order in which column is serialized
|
private java.lang.String |
precomputedName
Name of element or attribute in serialized form (may differ from legacy field name)
|
private java.lang.String |
serializeName
The field's SERIALIZE-NAME option value.
|
private java.lang.reflect.Method |
setter
Method to set field data into buffer
|
private java.lang.Class<? extends BaseDataType> |
type
Data wrapper type of field
|
private java.lang.String |
xmlNodeName
The field's XML-NODE-NAME option value.
|
Constructor and Description |
---|
Column(int order,
java.util.Map<java.lang.String,java.lang.reflect.Method> getterMap,
java.util.Map<java.lang.String,java.lang.reflect.Method> setterMap,
TableMapper.LegacyFieldInfo lfi,
java.lang.Class<? extends DataModelObject> dmoInterface)
Constructor.
|
Column(java.lang.String legacyName,
java.lang.String name,
BaseDataType initialValue)
Constructor used for BEFORE TEMP-TABLE columns.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getColumnLabel()
Get the
COLUMN-LABEL attribute of this column. |
int |
getDecimals()
Obtain the precision for decimal fields.
|
java.lang.Integer |
getExtent()
Get extent of column, if any.
|
java.lang.String |
getFieldName()
Get the column's legacy field name.
|
java.lang.String |
getFormat()
Obtain the format for this column if one was set.
|
java.lang.reflect.Method |
getGetter()
Get the DMO getter method for this column's value.
|
java.lang.String |
getHelp()
Obtain the help message for this column if one was set.
|
java.lang.String |
getInitial()
Obtain the initial value for this column (field).
|
java.lang.String |
getLabel()
Get the
LABEL attribute of this column. |
SerializeOptions.XmlNodeType |
getNodeType()
Get the XML node type (element or attribute) for this column.
|
int |
getOrder()
Get the order in which this column is serialized.
|
java.lang.String |
getSerializeName()
Get the column's legacy SERIALIZE-NAME, used for JSON (de)serialization.
|
java.lang.reflect.Method |
getSetter()
Get the DMO setter method for this column's value.
|
java.lang.Class<? extends BaseDataType> |
getType()
Get the data type of the field.
|
java.lang.String |
getXmlNodeName()
Get the column's XML-NODE-NAME name, used for XML (de)serialization.
|
boolean |
isCaseSensitive()
Checks whether this is a case-sensitive character field.
|
boolean |
isChanged(BaseDataType datum)
Test whether a value is different than the initial value for this column.
|
boolean |
isHidden()
Test whether this is a BEFORE TEMP-TABLE hidden field.
|
boolean |
isNillable()
Indicate whether column can be null.
|
private final java.lang.String legacyName
private final java.lang.Integer extent
private final int order
private final java.lang.String precomputedName
private final java.lang.String xmlNodeName
private final java.lang.String serializeName
private final java.lang.reflect.Method getter
private final java.lang.reflect.Method setter
private final java.lang.Class<? extends BaseDataType> type
private final BaseDataType initialValue
private final TableMapper.LegacyFieldInfo lfi
Column(int order, java.util.Map<java.lang.String,java.lang.reflect.Method> getterMap, java.util.Map<java.lang.String,java.lang.reflect.Method> setterMap, TableMapper.LegacyFieldInfo lfi, java.lang.Class<? extends DataModelObject> dmoInterface)
order
- Order of column in serialization output.getterMap
- Map of java property names to getter methods.setterMap
- Map of java property names to setter methods.lfi
- Field info object.dmoInterface
- The DMO interface used to extract EXTENT accessors.public Column(java.lang.String legacyName, java.lang.String name, BaseDataType initialValue)
legacyName
- The fields's name (legacy name).name
- Name of element or attribute in serialized form (may differ from legacy field name).initialValue
- The initial value as an instance of the appropriate type of the INIT option for this column.public java.lang.String getFieldName()
public java.lang.String getXmlNodeName()
public java.lang.String getSerializeName()
public boolean isNillable()
true
if nillable, else false
.public java.lang.Integer getExtent()
null
for a scalar column.public int getOrder()
public SerializeOptions.XmlNodeType getNodeType()
public java.lang.reflect.Method getGetter()
public java.lang.reflect.Method getSetter()
public java.lang.Class<? extends BaseDataType> getType()
public java.lang.String getInitial()
public java.lang.String getFormat()
public java.lang.String getHelp()
public boolean isHidden()
__
).true
if this is a BEFORE temp-table hidden field.public boolean isCaseSensitive()
true
only if this is a case-sensitive character field.public int getDecimals()
public java.lang.String getColumnLabel()
COLUMN-LABEL
attribute of this column.COLUMN-LABEL
attribute of this column.public java.lang.String getLabel()
LABEL
attribute of this column.LABEL
attribute of this column.public boolean isChanged(BaseDataType datum)
datum
- The value to be tested.true
if the value is different.