de.mathema.pride.util
Class TableDescription

java.lang.Object
  extended by de.mathema.pride.util.TableDescription

public class TableDescription
extends java.lang.Object


Field Summary
protected  java.util.Vector tableList
           
protected  java.lang.String tableName
           
 
Constructor Summary
TableDescription(java.sql.Connection con, java.lang.String tableName)
           
 
Method Summary
protected  java.util.Vector getColumns(java.sql.DatabaseMetaData db_meta, java.lang.String tableName)
           
 java.util.Enumeration getList()
          Returns an enumerator for the table's columns in form of TableColumns objects
 java.lang.String getTableName()
          Returns the plain table name
 java.lang.String getTableName2()
          Returns the table name with its first letter capitalized
 boolean hasPrimaryKey()
           
protected  void init(java.sql.Connection con, java.lang.String tableName)
           
protected  void markKeyColumns(java.sql.DatabaseMetaData db_meta, java.lang.String tableName, java.util.Vector columns)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tableList

protected java.util.Vector tableList

tableName

protected java.lang.String tableName
Constructor Detail

TableDescription

public TableDescription(java.sql.Connection con,
                        java.lang.String tableName)
                 throws java.sql.SQLException
Throws:
java.sql.SQLException
Method Detail

getColumns

protected java.util.Vector getColumns(java.sql.DatabaseMetaData db_meta,
                                      java.lang.String tableName)
                               throws java.sql.SQLException
Throws:
java.sql.SQLException

markKeyColumns

protected void markKeyColumns(java.sql.DatabaseMetaData db_meta,
                              java.lang.String tableName,
                              java.util.Vector columns)
                       throws java.sql.SQLException
Throws:
java.sql.SQLException

init

protected void init(java.sql.Connection con,
                    java.lang.String tableName)
             throws java.sql.SQLException
Throws:
java.sql.SQLException

hasPrimaryKey

public boolean hasPrimaryKey()

getList

public java.util.Enumeration getList()
Returns an enumerator for the table's columns in form of TableColumns objects


getTableName

public java.lang.String getTableName()
Returns the plain table name


getTableName2

public java.lang.String getTableName2()
Returns the table name with its first letter capitalized