| java.lang.Object com.triactive.jdo.store.ColumnInfo
All known Subclasses: com.triactive.jdo.store.PostgreSQLColumnInfo, com.triactive.jdo.store.MSSQLServerColumnInfo, com.triactive.jdo.store.DB2ColumnInfo,
Field Summary | |
public int | charOctetLength Indicates the maximum number of bytes in the column (for char types
only). | public String | columnDef The default value for the column; may be null. | public String | columnName The column name. | public int | columnSize Indicates the column size. | public short | dataType Indicates the JDBC (SQL) data type from
java.sql.Types . | public int | decimalDigits Indicates the number of fractional digits. | public String | isNullable Either "NO" indicating that the column definitely does not allow
null values, "YES" indicating that the column might allow
null values, or an empty string ("") indicating that nullability
is unknown. | public int | nullable Indicates whether the column can be NULL. | public int | numPrecRadix Indicates the radix, which is typically either 10 or 2. | public int | ordinalPosition Indicates the index of the column in its table; the first column is 1,
the second column is 2, and so on. | public String | remarks An explanatory comment on the column; may be null. | public String | tableCat The table catalog, which may be null. | public String | tableName The table name. | public String | tableSchem The table schema, which may be null. | public String | typeName The local type name used by the data source. |
Constructor Summary | |
public | ColumnInfo(ResultSet rs) Constructs a column information object from the current row of the given
result set. | public | ColumnInfo(String tableCat, String tableSchem, String tableName, String columnName, short dataType, String typeName, int columnSize, int decimalDigits, int numPrecRadix, int nullable, String remarks, String columnDef, int charOctetLength, int ordinalPosition, String isNullable) Constructs a column information object from its individual attributes. |
Method Summary | |
final public boolean | equals(Object obj) Indicates whether some object is "equal to" this one. | final public int | hashCode() Returns a hash code value for this object. | public String | toString() Returns the string representation of this object. |
charOctetLength | public int charOctetLength(Code) | | Indicates the maximum number of bytes in the column (for char types
only).
|
columnDef | public String columnDef(Code) | | The default value for the column; may be null.
|
columnSize | public int columnSize(Code) | | Indicates the column size. For char or date types, this is the maximum
number of characters; for numeric or decimal types, this is the precision.
|
decimalDigits | public int decimalDigits(Code) | | Indicates the number of fractional digits.
|
isNullable | public String isNullable(Code) | | Either "NO" indicating that the column definitely does not allow
null values, "YES" indicating that the column might allow
null values, or an empty string ("") indicating that nullability
is unknown.
|
numPrecRadix | public int numPrecRadix(Code) | | Indicates the radix, which is typically either 10 or 2.
|
ordinalPosition | public int ordinalPosition(Code) | | Indicates the index of the column in its table; the first column is 1,
the second column is 2, and so on.
|
remarks | public String remarks(Code) | | An explanatory comment on the column; may be null.
|
tableCat | public String tableCat(Code) | | The table catalog, which may be null.
|
tableSchem | public String tableSchem(Code) | | The table schema, which may be null.
|
typeName | public String typeName(Code) | | The local type name used by the data source.
|
ColumnInfo | public ColumnInfo(ResultSet rs) throws JDOFatalDataStoreException(Code) | | Constructs a column information object from the current row of the given
result set. The
ResultSet object passed must have been obtained
from a call to DatabaseMetaData.getColumns().
This method only retrieves the values from the current row; the caller
is required to advance to the next row with
ResultSet.next .
Parameters: rs - The result set returned from DatabaseMetaData.getColumns(). exception: JDOFatalDataStoreException - if a column of column information could not be retrieved from theresult set. |
ColumnInfo | public ColumnInfo(String tableCat, String tableSchem, String tableName, String columnName, short dataType, String typeName, int columnSize, int decimalDigits, int numPrecRadix, int nullable, String remarks, String columnDef, int charOctetLength, int ordinalPosition, String isNullable)(Code) | | Constructs a column information object from its individual attributes.
This can be useful to subclasses and/or custom DatabaseAdapters that
need to modify and/or correct the metadata returned by the JDBC driver.
|
equals | final public boolean equals(Object obj)(Code) | | Indicates whether some object is "equal to" this one. Two ColumnInfo
objects are considered equal if their catalog, schema, table, and
column names are all equal.
Parameters: obj - the reference object with which to compare true if this object is equal to the obj argument;false otherwise. |
hashCode | final public int hashCode()(Code) | | Returns a hash code value for this object.
a hash code value for this object. |
toString | public String toString()(Code) | | Returns the string representation of this object.
string representation of this object. |
|
|