public class P2JField
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private boolean |
caseSensitive
Flag for case-sensitive character fields.
|
private java.lang.String |
codePage
Code page for the CLOB field.
|
private java.lang.String |
columnLabel
Column label.
|
private long |
extent
Extent size.
|
private java.lang.String |
format
Field format.
|
private int |
hash
Precomputed hash code.
|
private java.lang.String |
help
HELP attribute of this field.
|
private BaseDataType |
initial
Initial field value.
|
private java.lang.String |
label
Field label.
|
private boolean |
mandatory
true for mandatory (not null) fields. |
private java.lang.String |
name
Field name.
|
private int |
scale
The
scale , for decimal fields. |
private boolean |
serializeHidden
Flag indicating the field should not be included in serialized output.
|
private java.lang.String |
serializeName
Name of field in serialized output.
|
private ParmType |
type
Field type.
|
private java.lang.String |
xmlDataType
XML schema data type of field.
|
private java.lang.String |
xmlNodeName
Name of element or attribute representing field in XML output.
|
private java.lang.String |
xmlNodeType
Node type of field in XML output.
|
Constructor and Description |
---|
P2JField(java.lang.String name,
ParmType type,
long extent,
java.lang.String format,
BaseDataType initial,
java.lang.String label,
java.lang.String columnLabel,
boolean caseSensitive,
java.lang.String codePage,
java.lang.String help,
boolean serializeHidden,
java.lang.String serializeName,
java.lang.String xmlDataType,
java.lang.String xmlNodeName,
java.lang.String xmlNodeType,
boolean mandatory,
int scale)
Convenience constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Test equivalence of this object and the given object in a way that is consistent with the
implementation of
hashCode() . |
java.lang.String |
getCodePage()
Get code page for the CLOB field.
|
java.lang.String |
getColumnLabel()
Get column label.
|
long |
getExtent()
Get extent size.
|
java.lang.String |
getFormat()
Get field format.
|
java.lang.String |
getHelp()
Get the field's
help option. |
BaseDataType |
getInitial()
Get initial value.
|
java.lang.String |
getLabel()
Get field label.
|
java.lang.String |
getName()
Get field name.
|
int |
getScale()
Obtains the
scale . |
java.lang.String |
getSerializeName()
Get the field's
serializeName option. |
ParmType |
getType()
Get field type.
|
java.lang.String |
getXmlDataType()
Get the field's
xmlDataType option. |
java.lang.String |
getXmlNodeName()
Get the field's
xmlNodeName option. |
java.lang.String |
getXmlNodeType()
Get the field's
xmlNodeType option. |
int |
hashCode()
Produce a hash code from the internal data of this object, which is consistent with the
implementation of
equals(Object) . |
boolean |
isCaseSensitive()
Check if this is a case sensitive field.
|
boolean |
isMandatory()
Checks if this is a mandatory (not null) field.
|
boolean |
isSerializeHidden()
Get the field's
serializeHidden option. |
java.lang.String |
toString()
Obtain a short (incomplete) description of the object held.
|
private final java.lang.String name
private final ParmType type
private final long extent
private final java.lang.String format
private final BaseDataType initial
private final java.lang.String label
private final java.lang.String columnLabel
private final boolean caseSensitive
private final java.lang.String codePage
private final java.lang.String help
private final boolean serializeHidden
private final java.lang.String serializeName
private final java.lang.String xmlDataType
private final java.lang.String xmlNodeName
private final java.lang.String xmlNodeType
private final boolean mandatory
true
for mandatory (not null) fields.private final int scale
scale
, for decimal fields.private final int hash
public P2JField(java.lang.String name, ParmType type, long extent, java.lang.String format, BaseDataType initial, java.lang.String label, java.lang.String columnLabel, boolean caseSensitive, java.lang.String codePage, java.lang.String help, boolean serializeHidden, java.lang.String serializeName, java.lang.String xmlDataType, java.lang.String xmlNodeName, java.lang.String xmlNodeType, boolean mandatory, int scale)
name
- Field name.type
- Field type.extent
- Extent size.format
- Field format.initial
- Initial value.label
- Field label.columnLabel
- Column label.caseSensitive
- true
for case sensitive character fields.codePage
- Code page for the CLOB field.help
- Field's help option.serializeHidden
- Field's serialize-hidden option.serializeName
- Field's serialize-name option.xmlDataType
- Field's xml-data-type option.xmlNodeName
- Field's xml-node-name option.xmlNodeType
- Field's xml-node-type option.mandatory
- true
for mandatory (not-null) fields.scale
- The scale
, for decimal fields.public java.lang.String getName()
public ParmType getType()
public long getExtent()
public java.lang.String getFormat()
public BaseDataType getInitial()
public java.lang.String getLabel()
public java.lang.String getColumnLabel()
public boolean isCaseSensitive()
true
if this is a case-sensitive character field.public java.lang.String getCodePage()
public boolean isMandatory()
true
if this is a mandatory (not null) field.public java.lang.String getHelp()
help
option.public boolean isSerializeHidden()
serializeHidden
option.public java.lang.String getSerializeName()
serializeName
option.public java.lang.String getXmlDataType()
xmlDataType
option.public java.lang.String getXmlNodeName()
xmlNodeName
option.public java.lang.String getXmlNodeType()
xmlNodeType
option.public int getScale()
scale
. Only valid for decimal fields.scale
, for decimal fields.public int hashCode()
equals(Object)
.hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
hashCode()
.equals
in class java.lang.Object
true
if this object is equivalent with o
, else false
.public java.lang.String toString()
toString
in class java.lang.Object