Class SQLField
- java.lang.Object
-
- com.orchestranetworks.addon.dex.mapping.SQLField
-
-
Constructor Summary
Constructors Constructor Description SQLField(java.lang.String name)
Used to create a SQL field with specified name.SQLField(java.lang.String name, FieldAttribute fieldAttribute)
Used to create a SQL field with the specified name andFieldAttribute
enumeration.SQLField(java.lang.String name, java.lang.String label, SQLDataType sqlDataType)
Used to create a SQL field with the specified name, label, data type.SQLField(java.lang.String name, java.lang.String label, SQLDataType sqlDataType, FieldAttribute fieldAttribute)
Used to create a SQL field with the specified name, label, data type andFieldAttribute
enumeration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
SQLDataType
getDataType()
Returns an instance ofSQLDataType
used to identify generic SQL data types.FieldAttribute
getFieldAttribute()
Returns the specifiedFieldAttribute
for this SQL field.int
getIndex()
Returns the specified field order.java.lang.String
getLabel()
Returns the specified field label.java.lang.String
getName()
Returns the specified field name.int
hashCode()
void
setDataType(SQLDataType sqlDataType)
Sets the field data type value, orSQLDataType
object value.void
setLabel(java.lang.String label)
Sets a label to this field.
-
-
-
Constructor Detail
-
SQLField
public SQLField(java.lang.String name) throws DataExchangeException
Used to create a SQL field with specified name. If field name is null or empty, an exception will be thrown.- Throws:
DataExchangeException
-
SQLField
public SQLField(java.lang.String name, FieldAttribute fieldAttribute) throws DataExchangeException
Used to create a SQL field with the specified name andFieldAttribute
enumeration. If theFieldAttribute
enumeration is not aNO_SOURCE_FIELD
, the field name must not null or empty. Otherwise, an exception will be thrown.- Throws:
DataExchangeException
- Since:
- 2.4.0
-
SQLField
public SQLField(java.lang.String name, java.lang.String label, SQLDataType sqlDataType) throws DataExchangeException
Used to create a SQL field with the specified name, label, data type. If the field name is null or empty, an exception will be thrown.- Throws:
DataExchangeException
-
SQLField
public SQLField(java.lang.String name, java.lang.String label, SQLDataType sqlDataType, FieldAttribute fieldAttribute) throws DataExchangeException
Used to create a SQL field with the specified name, label, data type andFieldAttribute
enumeration. If theFieldAttribute
enumeration is not aNO_SOURCE_FIELD
, the field name must not null or empty. Otherwise, an exception will be thrown.- Throws:
DataExchangeException
- Since:
- 2.4.0
-
-
Method Detail
-
getName
public java.lang.String getName()
Returns the specified field name.
-
setLabel
public void setLabel(java.lang.String label)
Sets a label to this field.
-
getLabel
public java.lang.String getLabel()
Returns the specified field label.
-
setDataType
public void setDataType(SQLDataType sqlDataType)
Sets the field data type value, orSQLDataType
object value.
-
getDataType
public SQLDataType getDataType()
Returns an instance ofSQLDataType
used to identify generic SQL data types.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
getIndex
public int getIndex()
Description copied from interface:Field
Returns the specified field order.
-
getFieldAttribute
public final FieldAttribute getFieldAttribute()
Returns the specifiedFieldAttribute
for this SQL field.- Since:
- 2.4.0
-
-