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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Schema
protected Schema(com.jxml.quick.QDoc doc)
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 EnumValue
s
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)