org.apache.ws.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

SQLFactory getSQLFactory()

Returns the SQLFactory that created this instance of Schema.


getName

Schema.Name getName()

Returns the schema name.


newTable

Table newTable(java.lang.String pName)

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


newTable

Table newTable(Table.Name pName)

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


getTable

Table getTable(Table.Name pName)

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


getTable

Table getTable(java.lang.String pName)

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


getTables

java.util.Iterator getTables()

Returns an Iterator to all tables in the schema.