gpl.fredy.metadata
Class DbTableInfo

java.lang.Object
  extended by gpl.fredy.metadata.DbTableInfo

public class DbTableInfo
extends java.lang.Object


Constructor Summary
DbTableInfo(java.sql.Connection con, java.sql.DatabaseMetaData dmd, java.lang.String table)
           
DbTableInfo(java.sql.Connection con, java.lang.String table)
           
 
Method Summary
protected  void finalize()
           
 java.util.Vector getColumnInfo(java.lang.String column)
           
 java.util.Vector getColumnNames()
          this returns a Vector containing Strings with the names of the columns
 java.sql.Connection getCon()
          Get the value of con.
 java.sql.DatabaseMetaData getDmd()
          Get the value of dmd.
 java.util.Vector getPrimaryKeys()
          This returns a Vector contaning objects of type PrimaryKey
 java.lang.String getTable()
          Get the value of table.
 void setCon(java.sql.Connection v)
          Set the value of con.
 void setDmd(java.sql.DatabaseMetaData v)
          Set the value of dmd.
 void setTable(java.lang.String v)
          Set the value of table.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DbTableInfo

public DbTableInfo(java.sql.Connection con,
                   java.sql.DatabaseMetaData dmd,
                   java.lang.String table)
Parameters:
con - the connection used
dmd - the DatabaseMetaData
table - the tableName

DbTableInfo

public DbTableInfo(java.sql.Connection con,
                   java.lang.String table)
Parameters:
con - the connection used
table - the tableName
Method Detail

getCon

public java.sql.Connection getCon()
Get the value of con.

Returns:
Value of con.

setCon

public void setCon(java.sql.Connection v)
Set the value of con.

Parameters:
v - Value to assign to con.

getTable

public java.lang.String getTable()
Get the value of table.

Returns:
Value of table.

setTable

public void setTable(java.lang.String v)
Set the value of table.

Parameters:
v - Value to assign to table.

getDmd

public java.sql.DatabaseMetaData getDmd()
Get the value of dmd.

Returns:
Value of dmd.

setDmd

public void setDmd(java.sql.DatabaseMetaData v)
Set the value of dmd.

Parameters:
v - Value to assign to dmd.

getPrimaryKeys

public java.util.Vector getPrimaryKeys()
This returns a Vector contaning objects of type PrimaryKey


getColumnNames

public java.util.Vector getColumnNames()
this returns a Vector containing Strings with the names of the columns


getColumnInfo

public java.util.Vector getColumnInfo(java.lang.String column)

finalize

protected void finalize()
Overrides:
finalize in class java.lang.Object