com.triactive.jdo.store
Class PostgreSQLColumnInfo

java.lang.Object
  extended bycom.triactive.jdo.store.ColumnInfo
      extended bycom.triactive.jdo.store.PostgreSQLColumnInfo

class PostgreSQLColumnInfo
extends ColumnInfo

Represents the metadata of a specific table column in PostgreSQL.

Author:
Mike Martin

Field Summary
 int charOctetLength
          Indicates the maximum number of bytes in the column (for char types only).
 java.lang.String columnDef
          The default value for the column; may be null.
 java.lang.String columnName
          The column name.
 int columnSize
          Indicates the column size.
 short dataType
          Indicates the JDBC (SQL) data type from Types.
 int decimalDigits
          Indicates the number of fractional digits.
 java.lang.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.
 int nullable
          Indicates whether the column can be NULL.
 int numPrecRadix
          Indicates the radix, which is typically either 10 or 2.
 int ordinalPosition
          Indicates the index of the column in its table; the first column is 1, the second column is 2, and so on.
 java.lang.String remarks
          An explanatory comment on the column; may be null.
 java.lang.String tableCat
          The table catalog, which may be null.
 java.lang.String tableName
          The table name.
 java.lang.String tableSchem
          The table schema, which may be null.
 java.lang.String typeName
          The local type name used by the data source.
 
Constructor Summary
PostgreSQLColumnInfo(java.sql.ResultSet rs)
          Constructs a column information object from the current row of the given result set.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Indicates whether some object is "equal to" this one.
 int hashCode()
          Returns a hash code value for this object.
 java.lang.String toString()
          Returns the string representation of this object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

tableCat

public java.lang.String tableCat
The table catalog, which may be null.


tableSchem

public java.lang.String tableSchem
The table schema, which may be null.


tableName

public java.lang.String tableName
The table name.


columnName

public java.lang.String columnName
The column name.


dataType

public short dataType
Indicates the JDBC (SQL) data type from Types.


typeName

public java.lang.String typeName
The local type name used by the data source.


columnSize

public int columnSize
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
Indicates the number of fractional digits.


numPrecRadix

public int numPrecRadix
Indicates the radix, which is typically either 10 or 2.


nullable

public int nullable
Indicates whether the column can be NULL.

See Also:
DatabaseMetaData.columnNoNulls, DatabaseMetaData.columnNullable, DatabaseMetaData.columnNullableUnknown

remarks

public java.lang.String remarks
An explanatory comment on the column; may be null.


columnDef

public java.lang.String columnDef
The default value for the column; may be null.


charOctetLength

public int charOctetLength
Indicates the maximum number of bytes in the column (for char types only).


ordinalPosition

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.


isNullable

public java.lang.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.

Constructor Detail

PostgreSQLColumnInfo

public PostgreSQLColumnInfo(java.sql.ResultSet rs)
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().
Method Detail

equals

public final boolean equals(java.lang.Object obj)
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
Returns:
true if this object is equal to the obj argument; false otherwise.

hashCode

public final int hashCode()
Returns a hash code value for this object.

Returns:
a hash code value for this object.

toString

public java.lang.String toString()
Returns the string representation of this object.

Returns:
string representation of this object.


Copyright ? 2001 TriActive, Inc. All Rights Reserved.