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 andFieldAttributeenumeration.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 andFieldAttributeenumeration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)SQLDataTypegetDataType()Returns an instance ofSQLDataTypeused to identify generic SQL data types.FieldAttributegetFieldAttribute()Returns the specifiedFieldAttributefor this SQL field.intgetIndex()Returns the specified field order.java.lang.StringgetLabel()Returns the specified field label.java.lang.StringgetName()Returns the specified field name.inthashCode()voidsetDataType(SQLDataType sqlDataType)Sets the field data type value, orSQLDataTypeobject value.voidsetLabel(java.lang.String label)Sets a label to this field.
-
-
-
Constructor Detail
-
SQLField
public SQLField(java.lang.String name) throws DataExchangeExceptionUsed 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 DataExchangeExceptionUsed to create a SQL field with the specified name andFieldAttributeenumeration. If theFieldAttributeenumeration 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 DataExchangeExceptionUsed 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 DataExchangeExceptionUsed to create a SQL field with the specified name, label, data type andFieldAttributeenumeration. If theFieldAttributeenumeration 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, orSQLDataTypeobject value.
-
getDataType
public SQLDataType getDataType()
Returns an instance ofSQLDataTypeused to identify generic SQL data types.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
getIndex
public int getIndex()
Description copied from interface:FieldReturns the specified field order.
-
getFieldAttribute
public final FieldAttribute getFieldAttribute()
Returns the specifiedFieldAttributefor this SQL field.- Since:
- 2.4.0
-
-