com.perdues.db
Class DBInfo

java.lang.Object
  |
  +--com.perdues.db.DBInfo

public class DBInfo
extends java.lang.Object


Constructor Summary
DBInfo(Schema schema, XMLTag tag)
          Build a DBInfo for the given schema, defined with the information from an XMLTag of type "db".
 
Method Summary
 ColumnInfo getColumn(java.lang.String name)
          Return a ColumnInfo given a column name qualified by a table name or shorthand.
 java.lang.String getName()
          Get the name of the database.
 Schema getSchema()
          Get the Schema for this DBInfo.
 TableInfo getTable(java.lang.String name)
          Returns the TableInfo with the given name or shorthand, or errs if there is none.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DBInfo

public DBInfo(Schema schema,
              XMLTag tag)
Build a DBInfo for the given schema, defined with the information from an XMLTag of type "db".

XML attributes are:

  • name (required)
      Elements should be of type table.
  • Method Detail

    getName

    public java.lang.String getName()
    Get the name of the database.

    getSchema

    public Schema getSchema()
    Get the Schema for this DBInfo.

    getTable

    public TableInfo getTable(java.lang.String name)
    Returns the TableInfo with the given name or shorthand, or errs if there is none.

    getColumn

    public ColumnInfo getColumn(java.lang.String name)
    Return a ColumnInfo given a column name qualified by a table name or shorthand.