org.apache.ws.jaxme.sqls

Interface Schema

Known Subinterfaces:
DB2Schema, HsqlDbSchema
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(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.
Iterator
getTables()
Returns an Iterator to all tables in the schema.
Table
newTable(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 Details

getName

public Schema.Name getName()
Returns the schema name.

getSQLFactory

public SQLFactory getSQLFactory()
Returns the SQLFactory that created this instance of Schema.

getTable

public Table getTable(String pName)
Returns the table with the given name or null, if no such table exists 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.

getTables

public Iterator getTables()
Returns an Iterator to all tables in the schema.

newTable

public Table newTable(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.