agonism.dovetail.schema
Class Schema

java.lang.Object
  |
  +--agonism.dovetail.schema.Schema

public class Schema
extends java.lang.Object


Constructor Summary
protected Schema(com.jxml.quick.QDoc doc)
           
 
Method Summary
 java.util.Iterator enumValues(Column column)
          Get an iterator of EnumValue objects which are the legal values of an 'enum' column.
static void flush()
           
static Column getColumn(Table table, java.lang.String name)
           
 java.lang.String getDisplayText(Column column)
           
 java.lang.String getName()
           
static Column getPrimaryKey(Table table)
           
static Schema getSchema()
           
protected static Schema getSchemaRaw()
           
static Table getTable(Column column)
           
 Table getTable(java.lang.String name)
           
 java.lang.Object getTypeObject(Column column)
           
 boolean isValidEnumValue(Column column, java.lang.Object value)
          Checks to see if value is a valid for 'enum' columns
protected  Table newTable(Table table)
           
protected static void setSchema(Schema schema)
           
 java.util.Iterator tables()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Schema

protected Schema(com.jxml.quick.QDoc doc)
Method Detail

getSchema

public static Schema getSchema()

flush

public static void flush()

tables

public java.util.Iterator tables()

getTable

public Table getTable(java.lang.String name)

getColumn

public static Column getColumn(Table table,
                               java.lang.String name)

getPrimaryKey

public static Column getPrimaryKey(Table table)

isValidEnumValue

public boolean isValidEnumValue(Column column,
                                java.lang.Object value)
Checks to see if value is a valid for 'enum' columns

enumValues

public java.util.Iterator enumValues(Column column)
Get an iterator of EnumValue objects which are the legal values of an 'enum' column. Call toString on each of the EnumValues to get the actual value.

getTypeObject

public java.lang.Object getTypeObject(Column column)

getSchemaRaw

protected static Schema getSchemaRaw()

setSchema

protected static void setSchema(Schema schema)

getDisplayText

public java.lang.String getDisplayText(Column column)

getTable

public static Table getTable(Column column)

getName

public java.lang.String getName()

newTable

protected Table newTable(Table table)