|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectits.SQL.Schema
Provides an object-oriented view of the SDD Schema frame. Created and used by the SDD Parser to store information parsed from the SDD Schema frame.
| Constructor Summary | |
Schema()
Creates an empty Schema object. |
|
Schema(Schema s)
Returns a new Schema object that is a clone of the given Schema object. |
|
Schema(java.lang.String def)
Creates a Schema object given a String containing the SQL CREATE SCHEMA statement. |
|
| Method Summary | |
void |
addTable(Table t)
Used by the SDD Schema parser to build up a Schema object. |
Table |
getTable(java.lang.String name)
|
java.util.Vector |
getTableNames()
|
boolean |
hasTable(java.lang.String name)
|
Table |
removeTable(java.lang.String tableName)
|
java.util.Enumeration |
tables()
|
java.lang.String |
toSql()
Generates the CREATE SCHEMA statement that defines this schema. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Schema()
public Schema(java.lang.String def)
throws SchemaParserException,
java.lang.Exception
SchemaParserException - if the given statement does not parse
java.lang.ExceptionParser.parseSchema(java.lang.String)public Schema(Schema s)
| Method Detail |
public void addTable(Table t)
public Table removeTable(java.lang.String tableName)
public java.util.Vector getTableNames()
public Table getTable(java.lang.String name)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException - if the table is not defined in the SDD Schemapublic java.util.Enumeration tables()
public boolean hasTable(java.lang.String name)
public java.lang.String toSql()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||