public class SchemaImpl extends java.lang.Object implements Schema
Implementation of a schema.
| Modifier and Type | Class and Description |
|---|---|
static class |
SchemaImpl.NameImpl |
Schema.Name| Modifier | Constructor and Description |
|---|---|
protected |
SchemaImpl(SQLFactory pFactory,
Schema.Name pName)
Creates a new instance of SchemaImpl.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
Schema.Name |
getName()
Returns the schema name.
|
SQLFactory |
getSQLFactory()
Returns the
SQLFactory
that created this instance of Schema. |
Table |
getTable(java.lang.String pName)
Returns the table with the given name or null, if no such table exists
in the schema.
|
Table |
getTable(Table.Name pName)
Returns the table with the given name or null, if no such table exists
in the schema.
|
java.util.Iterator |
getTables()
Returns an
Iterator to all tables in the schema. |
int |
hashCode() |
Table |
newTable(java.lang.String pName)
Creates a new table with the given name in the schema.
|
Table |
newTable(Table.Name pName)
Creates a new table with the given name in the schema.
|
protected SchemaImpl(SQLFactory pFactory, Schema.Name pName)
Creates a new instance of SchemaImpl.
pFactory - The SQLFactory
creating this instance.pName - The schema name.public SQLFactory getSQLFactory()
SchemaReturns the SQLFactory
that created this instance of Schema.
getSQLFactory in interface Schemapublic Schema.Name getName()
SchemaReturns the schema name.
public Table newTable(java.lang.String pName)
SchemaCreates a new table with the given name in the schema.
public Table newTable(Table.Name pName)
SchemaCreates a new table with the given name in the schema.
public Table getTable(Table.Name pName)
SchemaReturns the table with the given name or null, if no such table exists in the schema.
public Table getTable(java.lang.String pName)
SchemaReturns the table with the given name or null, if no such table exists in the schema.
public java.util.Iterator getTables()
SchemaReturns an Iterator to all tables in the schema.
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object