public static class TableMapper.LegacyFieldInfo extends java.lang.Object implements java.lang.Comparable<TableMapper.LegacyFieldInfo>
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
columnLabel
COLUMN-LABEL attribute of this field.
|
private java.lang.Class<? extends BaseDataType> |
dataType
Field data type.
|
private int |
extent
EXTENT attribute of the field (from the legacy schema).
|
private java.lang.Integer |
fieldId
The id of this field in the sequence of the fields of the buffer.
|
private java.lang.String |
format
FORMAT attribute of this field.
|
private java.lang.String |
initial
INITIAL attribute of this field.
|
private BaseDataType |
initialValue
The initial value for this field.
|
private java.lang.String |
javaName
The associated DMO property name.
|
private java.lang.String |
label
LABEL attribute of this field.
|
private java.lang.String |
legacyName
The legacy name of this field.
|
private boolean |
literalQuestion
LITERAL-QUESTION attribute of this field.
|
boolean |
mandatory
MANDATORY attribute of this field.
|
private int |
order
ORDER attribute of the field (from the legacy schema).
|
java.lang.String |
original
Original property name (not exposed in DMO) for denormalized field with extent.
|
private int |
position
POSITION attribute of the field (from the legacy schema).
|
private SerializeOptions |
serializeOptions
Options needed when serializing temp-table data to/from external media
|
private java.lang.String |
validateExpression
VALIDATE-EXPRESSION attribute of this field.
|
private java.lang.String |
validateMessage
VALIDATE-MESSAGE attribute of this field.
|
Constructor and Description |
---|
LegacyFieldInfo(java.lang.String columnLabel,
java.lang.Integer fieldId,
java.lang.String format,
java.lang.String initial,
java.lang.String javaName,
java.lang.String label,
java.lang.String legacyName,
boolean mandatory,
int extent,
int order,
int position,
java.lang.String original,
java.lang.String validateMessage,
java.lang.String validateExpression,
java.lang.Class<? extends BaseDataType> dataType,
BaseDataType initialValue,
boolean serializeHidden,
java.lang.String serializeName,
java.lang.String xmlDataType,
java.lang.String xmlNodeName,
java.lang.String xmlNodeType)
Create a new field information container, holding the legacy and converted names and
field attributes.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(TableMapper.LegacyFieldInfo o)
Compare this field info object to another, based on its natural order.
|
java.lang.String |
getColumnLabel()
Get the column label.
|
java.lang.Class<? extends BaseDataType> |
getDataType()
Get the field's data-type as a Java class instance.
|
int |
getExtent()
Get the EXTENT attribute.
|
java.lang.Integer |
getFieldId()
Get the field's ID, which also represents its natural order.
|
java.lang.String |
getFormat()
Get the format string.
|
java.lang.String |
getInitial()
Get the schema's string representation of the field's initial value.
|
BaseDataType |
getInitialValue()
Get the field's initial value as actual data.
|
java.lang.String |
getJavaName()
Get the field's corresponding DMO property name.
|
java.lang.String |
getLabel()
Get the label.
|
java.lang.String |
getLegacyName()
Get the legacy name.
|
int |
getOrder()
Get the ORDER attribute.
|
java.lang.String |
getOriginal()
Get the field's original name (will differ from legacy name, if extent field was
denormalized).
|
int |
getPosition()
Get the POSITION attribute, if it is set, otherwise return the value of the ORDER
attribute.
|
SerializeOptions |
getSerializeOptions()
Get all serialize options defined for the field (only meaningful for temp-table fields).
|
java.lang.String |
getValidateExpression()
Get the validate expression, if any.
|
java.lang.String |
getValidateMessage()
Get the validate message, if any.
|
boolean |
isLiteralQuestion()
Get the literal-question value.
|
boolean |
isMandatory()
Indicate whether this field is mandatory (i.e., non-null).
|
private java.lang.String columnLabel
private final java.lang.Integer fieldId
bufferField(int)
attribute of the BufferImpl
for
emulating the BUFFER-FIELD(integer)
buffer handle attribute.private java.lang.String format
private final java.lang.String initial
private final java.lang.String javaName
private java.lang.String label
private final java.lang.String legacyName
private int extent
private int order
private int position
private boolean literalQuestion
public final boolean mandatory
public final java.lang.String original
private java.lang.String validateMessage
private java.lang.String validateExpression
private final java.lang.Class<? extends BaseDataType> dataType
private final BaseDataType initialValue
private final SerializeOptions serializeOptions
public LegacyFieldInfo(java.lang.String columnLabel, java.lang.Integer fieldId, java.lang.String format, java.lang.String initial, java.lang.String javaName, java.lang.String label, java.lang.String legacyName, boolean mandatory, int extent, int order, int position, java.lang.String original, java.lang.String validateMessage, java.lang.String validateExpression, java.lang.Class<? extends BaseDataType> dataType, BaseDataType initialValue, boolean serializeHidden, java.lang.String serializeName, java.lang.String xmlDataType, java.lang.String xmlNodeName, java.lang.String xmlNodeType)
columnLabel
- COLUMN-LABEL attribute.fieldId
- The id of field in the sequence of the fields of the buffer.format
- FORMAT attribute.initial
- INITIAL attribute.javaName
- The field's associated DMO property name.label
- LABEL attribute.legacyName
- The field's legacy name.mandatory
- MANDATORY attribute.extent
- EXTENT attribute from the schema (this is the original extent value without any
regard for normalization/denormalization).order
- ORDER attribute.position
- POSITION attribute.original
- Original property name (actually not exposed in DMO) for denormalized field
with extent.validateMessage
- VALIDATE-MESSAGE attribute.validateExpression
- VALIDATE-EXPRESSION attribute.dataType
- The field data type.initialValue
- The value of the field when the record is first created.serializeHidden
- true
to omit this field from serialized output, else false
.serializeName
- Name of field in serialized output.xmlDataType
- XML schema data type of field.xmlNodeName
- Name of element or attribute representing field in XML output.xmlNodeType
- Node type of field in XML output (valid values are "ELEMENT" and "ATTRIBUTE").public java.lang.String getColumnLabel()
public java.lang.String getFormat()
public java.lang.String getLabel()
public boolean isLiteralQuestion()
public java.lang.String getValidateMessage()
public java.lang.String getValidateExpression()
public java.lang.Integer getFieldId()
public java.lang.String getInitial()
public java.lang.String getJavaName()
public java.lang.String getLegacyName()
public boolean isMandatory()
true
if mandatory; else false
.public int getExtent()
public int getOrder()
public int getPosition()
public java.lang.String getOriginal()
public java.lang.Class<? extends BaseDataType> getDataType()
public BaseDataType getInitialValue()
public SerializeOptions getSerializeOptions()
public int compareTo(TableMapper.LegacyFieldInfo o)
compareTo
in interface java.lang.Comparable<TableMapper.LegacyFieldInfo>