org.apache.ws.jaxme.sqls.impl
Class SchemaImpl

java.lang.Object
  extended by org.apache.ws.jaxme.sqls.impl.SchemaImpl
All Implemented Interfaces:
Schema
Direct Known Subclasses:
DB2SchemaImpl, HsqlDbSchemaImpl

public class SchemaImpl
extends java.lang.Object
implements Schema

Implementation of a schema.

Author:
Jochen Wiedmann

Nested Class Summary
static class SchemaImpl.NameImpl
           
 
Nested classes/interfaces inherited from interface org.apache.ws.jaxme.sqls.Schema
Schema.Name
 
Constructor Summary
protected SchemaImpl(SQLFactory pFactory, Schema.Name pName)
          Creates a new instance of SchemaImpl.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchemaImpl

protected SchemaImpl(SQLFactory pFactory,
                     Schema.Name pName)

Creates a new instance of SchemaImpl.

Parameters:
pFactory - The SQLFactory creating this instance.
pName - The schema name.
Method Detail

getSQLFactory

public SQLFactory getSQLFactory()
Description copied from interface: Schema

Returns the SQLFactory that created this instance of Schema.

Specified by:
getSQLFactory in interface Schema

getName

public Schema.Name getName()
Description copied from interface: Schema

Returns the schema name.

Specified by:
getName in interface Schema

newTable

public Table newTable(java.lang.String pName)
Description copied from interface: Schema

Creates a new table with the given name in the schema.

Specified by:
newTable in interface Schema

newTable

public Table newTable(Table.Name pName)
Description copied from interface: Schema

Creates a new table with the given name in the schema.

Specified by:
newTable in interface Schema

getTable

public Table getTable(Table.Name pName)
Description copied from interface: Schema

Returns the table with the given name or null, if no such table exists in the schema.

Specified by:
getTable in interface Schema

getTable

public Table getTable(java.lang.String pName)
Description copied from interface: Schema

Returns the table with the given name or null, if no such table exists in the schema.

Specified by:
getTable in interface Schema

getTables

public java.util.Iterator getTables()
Description copied from interface: Schema

Returns an Iterator to all tables in the schema.

Specified by:
getTables in interface Schema

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object