All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.paneris.util.TableMetaData

java.lang.Object
   |
   +----org.paneris.util.TableMetaData

public class TableMetaData
extends Object

A TableMetaData encapsulates meta data for a single table in the datadictionary. It has a hashtable for datadictionary fields.

It can be constructed from the table name or from the table id number.

You need to pass a table identifier and a database to the constructors


Constructor Index

 o TableMetaData(String, Integer)
constructor to build a table given it's id in the datadictionarytables table
 o TableMetaData(String, String)
Constructor to build a table using a table name

Method Index

 o getCached()
find out if the table is cached
 o getDisplayName()
get the display name for the table
 o getFields()
return a hash of field data for this table
 o getTableName()
get the tablename
 o getTableNumber()
get the tablenumber
 o getType()
get the type of the table

Constructors

 o TableMetaData
 public TableMetaData(String db,
                      String tn) throws Exception
Constructor to build a table using a table name

 o TableMetaData
 public TableMetaData(String db,
                      Integer tn) throws Exception
constructor to build a table given it's id in the datadictionarytables table

Methods

 o getFields
 public ExtendedHash getFields()
return a hash of field data for this table

 o getTableName
 public String getTableName()
get the tablename

 o getType
 public String getType()
get the type of the table

 o getTableNumber
 public Integer getTableNumber()
get the tablenumber

 o getDisplayName
 public String getDisplayName()
get the display name for the table

 o getCached
 public boolean getCached()
find out if the table is cached


All Packages  Class Hierarchy  This Package  Previous  Next  Index