org.apache.ws.jaxme.sqls

Interface Schema

public interface Schema

Interface of a database schema.

Author: Jochen Wiedmann

Nested Class Summary
static interfaceSchema.Name
Method Summary
Schema.NamegetName()

Returns the schema name.

SQLFactorygetSQLFactory()

Returns the {@link org.apache.ws.jaxme.sqls.SQLFactory} that created this instance of Schema.

TablegetTable(Table.Name pName)

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

TablegetTable(String pName)

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

IteratorgetTables()

Returns an {@link Iterator} to all tables in the schema.

TablenewTable(String pName)

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

TablenewTable(Table.Name pName)

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

Method Detail

getName

public Schema.Name getName()

Returns the schema name.

getSQLFactory

public SQLFactory getSQLFactory()

Returns the {@link org.apache.ws.jaxme.sqls.SQLFactory} that created this instance of 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(String pName)

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

getTables

public Iterator getTables()

Returns an {@link 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.