public abstract class AttributeInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
SQLTYPE_CHAR
The
CHAR data type. |
static int |
SQLTYPE_NUM
The
NUMERIC data type. |
static int |
SQLTYPE_TIME
The
TIME data type. |
java.lang.String |
tableName
The name of this table.
|
Constructor and Description |
---|
AttributeInfo()
The default constructor.
|
AttributeInfo(java.lang.String propertyName,
int sqltype,
java.lang.String columnName)
Reserved for IBM internal use.
|
AttributeInfo(java.lang.String propertyName,
int sqltype,
java.lang.String columnName,
java.lang.Class type)
Reserved for IBM internal use.
|
AttributeInfo(java.lang.String propertyName,
int sqltype,
java.lang.String columnName,
java.lang.Class type,
int scale)
Reserved for IBM internal use.
|
AttributeInfo(java.lang.String propertyName,
int sqltype,
java.lang.String columnName,
java.lang.String queryString)
Reserved for IBM internal use.
|
AttributeInfo(java.lang.String propertyName,
int sqltype,
java.lang.String columnName,
java.lang.String queryString,
java.lang.Class type)
Reserved for IBM internal use.
|
AttributeInfo(java.lang.String propertyName,
int sqltype,
java.lang.String columnName,
java.lang.String queryString,
java.lang.Class type,
int scale)
Reserved for IBM internal use.
|
AttributeInfo(TableInfo info)
The constructor with the table information supplied.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getColumnName()
Gets the name of this column.
|
java.lang.String |
getPropertyName()
Reserved for IBM internal use.
|
java.lang.String |
getQueryString()
Reserved for IBM internal use.
|
AttributeInfo |
getReferTo()
Reserved for IBM internal use.
|
int |
getScale()
Reserved for IBM internal use.
|
int |
getSQLType()
Gets the data type to be used in generating SQL queries for this column.
|
TableInfo |
getTableInfo()
Gets this table's information.
|
java.lang.String |
getTableName()
Gets this table's name.
|
java.lang.Class |
getType()
Reserved for IBM internal use.
|
boolean |
isEnabled()
Checks whether this column is enabled.
|
void |
setEnabled(boolean flag)
Sets whether this column is enabled for this table.
|
void |
setQueryString(java.lang.String val)
Reserved for IBM internal use.
|
void |
setReferTo(AttributeInfo f)
Reserved for IBM internal use.
|
void |
setScale(int scale)
Reserved for IBM internal use.
|
void |
setTableInfo(TableInfo a)
Sets this table's information.
|
void |
setTableName(java.lang.String newTableName)
Sets this table's name.
|
java.lang.String |
toString()
Converts this object to a string.
|
public static final int SQLTYPE_NUM
NUMERIC
data type.public static final int SQLTYPE_CHAR
CHAR
data type.public static final int SQLTYPE_TIME
TIME
data type.public java.lang.String tableName
public AttributeInfo()
public AttributeInfo(TableInfo info)
info
- the table informationpublic AttributeInfo(java.lang.String propertyName, int sqltype, java.lang.String columnName)
propertyName
- the property that the column is mapped tosqltype
- the data typecolumnName
- the column namepublic AttributeInfo(java.lang.String propertyName, int sqltype, java.lang.String columnName, java.lang.Class type)
propertyName
- the property that the column is mapped tosqltype
- the data typecolumnName
- the column nametype
- the typepublic AttributeInfo(java.lang.String propertyName, int sqltype, java.lang.String columnName, java.lang.Class type, int scale)
propertyName
- the property that the column is mapped tosqltype
- the data typecolumnName
- the column nametype
- the typescale
- the scalepublic AttributeInfo(java.lang.String propertyName, int sqltype, java.lang.String columnName, java.lang.String queryString)
propertyName
- the property that the column is mapped tosqltype
- the data typecolumnName
- the column namequeryString
- the query stringpublic AttributeInfo(java.lang.String propertyName, int sqltype, java.lang.String columnName, java.lang.String queryString, java.lang.Class type)
propertyName
- the property that the column is mapped tosqltype
- the data typecolumnName
- the column namequeryString
- the query stringtype
- the Java type mappingpublic AttributeInfo(java.lang.String propertyName, int sqltype, java.lang.String columnName, java.lang.String queryString, java.lang.Class type, int scale)
propertyName
- the property that the column is mapped tosqltype
- the data typecolumnName
- the name of the columntype
- the Java type mappingscale
- the column scale for NUMERIC
and DECIMAL
data typespublic final java.lang.String getColumnName()
public final java.lang.String getPropertyName()
public final java.lang.String getQueryString()
public AttributeInfo getReferTo()
AttributeInfo
objectpublic final int getScale()
public final int getSQLType()
public TableInfo getTableInfo()
public java.lang.String getTableName()
public final java.lang.Class getType()
public final boolean isEnabled()
true
if the column is enabled; false
otherwiseenabled
public final void setEnabled(boolean flag)
true
- if the column is enabled; false
otherwiseenabled
public final void setQueryString(java.lang.String val)
val
- the query stringpublic void setReferTo(AttributeInfo f)
f
- the AttributeInfo
objectpublic final void setScale(int scale)
scale
- scale for this attributepublic void setTableInfo(TableInfo a)
a
- the table informationpublic void setTableName(java.lang.String newTableName)
newTableName
- the table namepublic java.lang.String toString()
toString
in class java.lang.Object