|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jpox.store.rdbms.columninfo.TableInfo
Represents the metadata of a specific table. This class is
basically a data structure that makes accessing the JDBC column metadata
easier. Each of the items returned by
DatabaseMetaData.getTables(String,String,String,String[])
is represented by a public field in this class.
Subclasses of TableInfo can be created on a per-DBMS basis to supply missing
metadata or correct faulty metadata obtained from that DBMS's JDBC driver(s).
Field Summary | |
protected java.lang.String |
refGenName
Specifies how values in SELF_REFERENCING_COL_NAME are created. |
protected java.lang.String |
remarks
explanatory comment on the table. |
protected java.lang.String |
selfRefColName
(SELF_REFERENCING_COL_NAME) The local name of the designated "identifier" column of a typed table, which may be null. |
protected java.lang.String |
tableCat
The table catalog, which may be null. |
protected java.lang.String |
tableName
The table name. |
protected java.lang.String |
tableSchem
The table schema, which may be null. |
protected java.lang.String |
tableType
Table type. |
protected java.lang.String |
typeCat
The local type catalog used by the data source, which may be null. |
protected java.lang.String |
typeName
The local type name used by the data source, which may be null. |
protected java.lang.String |
typeSchem
The local type schema used by the data source, which may be null. |
Constructor Summary | |
TableInfo(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. |
java.lang.String |
getRemarks()
Accessor for table remarks |
java.lang.String |
getTableCat()
Accessor for table catalog |
java.lang.String |
getTableName()
Accessor for table name |
java.lang.String |
getTableSchem()
Accessor for table schema |
java.lang.String |
getTypeName()
Accessor for type name |
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 |
protected java.lang.String tableCat
protected java.lang.String tableSchem
protected java.lang.String tableName
protected java.lang.String tableType
protected java.lang.String remarks
protected java.lang.String typeCat
protected java.lang.String typeSchem
protected java.lang.String typeName
protected java.lang.String selfRefColName
protected java.lang.String refGenName
Constructor Detail |
public TableInfo(java.sql.ResultSet rs) throws javax.jdo.JDOFatalDataStoreException
ResultSet
object passed must have been obtained
from a call to java.sql.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()
.
rs
- The result set returned from
java.sql.DatabaseMetaData.getColumns().
javax.jdo.JDOFatalDataStoreException
- if a column of column information could not be retrieved from the
result set.Method Detail |
public java.lang.String getRemarks()
public java.lang.String getTypeName()
public java.lang.String getTableName()
public java.lang.String getTableCat()
public java.lang.String getTableSchem()
public final boolean equals(java.lang.Object obj)
obj
- the reference object with which to compare
public final int hashCode()
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |