net.sf.jaxme.sqls
Interface Schema

All Known Subinterfaces:
DB2Schema, HsqlDbSchema
All Known Implementing Classes:
DB2SchemaImpl, HsqlDbSchemaImpl, SchemaImpl

public interface Schema

Interface of a database schema.

Author:
Jochen Wiedmann

Nested Class Summary
static interface Schema.Name
           
 
Method Summary
 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.
 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.
 

Method Detail

getSQLFactory

public SQLFactory getSQLFactory()

Returns the SQLFactory that created this instance of Schema.


getName

public Schema.Name getName()

Returns the schema name.


newTable

public Table newTable(java.lang.String pName)

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


newTable

public Table newTable(Table.Name pName)

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


getTable

public Table getTable(Table.Name pName)

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


getTable

public Table getTable(java.lang.String pName)

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


getTables

public java.util.Iterator getTables()

Returns an Iterator to all tables in the schema.