| Constructor and Description |
|---|
SQLField(String name)
Used to create a SQL field with specified name.
|
SQLField(String name,
FieldAttribute fieldAttribute)
Used to create a SQL field with the specified name and
FieldAttribute enumeration. |
SQLField(String name,
String label,
SQLDataType sqlDataType)
Used to create a SQL field with the specified name, label, data type.
|
SQLField(String name,
String label,
SQLDataType sqlDataType,
FieldAttribute fieldAttribute)
Used to create a SQL field with the specified name, label, data type and
FieldAttribute enumeration. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
SQLDataType |
getDataType()
Returns an instance of
SQLDataType used to identify generic SQL data types. |
FieldAttribute |
getFieldAttribute()
Returns the specified
FieldAttribute for this SQL field. |
int |
getIndex()
Returns the specified field order.
|
String |
getLabel()
Returns the specified field label.
|
String |
getName()
Returns the specified field name.
|
int |
hashCode() |
void |
setDataType(SQLDataType sqlDataType)
Sets the field data type value, or
SQLDataType object value. |
void |
setLabel(String label)
Sets a label to this field.
|
public SQLField(String name) throws DataExchangeException
DataExchangeExceptionpublic SQLField(String name, FieldAttribute fieldAttribute) throws DataExchangeException
FieldAttribute enumeration. If the FieldAttribute enumeration is not a NO_SOURCE_FIELD, the field name must not null or empty. Otherwise, an exception will be thrown.DataExchangeExceptionpublic SQLField(String name, String label, SQLDataType sqlDataType) throws DataExchangeException
DataExchangeExceptionpublic SQLField(String name, String label, SQLDataType sqlDataType, FieldAttribute fieldAttribute) throws DataExchangeException
FieldAttribute enumeration. If the FieldAttribute enumeration is not a NO_SOURCE_FIELD, the field name must not null or empty. Otherwise, an exception will be thrown.DataExchangeExceptionpublic String getName()
public void setLabel(String label)
public String getLabel()
public void setDataType(SQLDataType sqlDataType)
SQLDataType object value.public SQLDataType getDataType()
SQLDataType used to identify generic SQL data types.public int getIndex()
Fieldpublic final FieldAttribute getFieldAttribute()
FieldAttribute for this SQL field.