org.eclipse.jpt.db
Interface Schema

All Superinterfaces:
java.lang.Comparable<Schema>, DatabaseObject

public interface Schema
extends DatabaseObject, java.lang.Comparable<Schema>

Database schema Provisional API: This interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves. This interface is not intended to be implemented by clients.


Method Summary
 SchemaContainer getContainer()
          Return the schema's container; either a catalog or a database.
 Sequence getSequenceForIdentifier(java.lang.String identifier)
          Return the sequence for the specified identifier.
 Sequence getSequenceNamed(java.lang.String name)
          Return the sequence with specified name.
 Table getTableForIdentifier(java.lang.String identifier)
          Return the table for the specified identifier.
 Table getTableNamed(java.lang.String name)
          Return the table with specified name.
 java.util.Iterator<Sequence> sequences()
          Return the schema's sequences.
 int sequencesSize()
          Return the number of sequences the schema contains.
 java.util.Iterator<java.lang.String> sortedSequenceIdentifiers()
          Return the schema's sequence identifers, sorted by name.
 java.util.Iterator<java.lang.String> sortedTableIdentifiers()
          Return the schema's table identifiers, sorted by name.
 java.util.Iterator<Table> tables()
          Return the schema's tables.
 int tablesSize()
          Return the number of tables the schema contains.
 
Methods inherited from interface org.eclipse.jpt.db.DatabaseObject
getConnectionProfile, getDatabase, getIdentifier, getIdentifier, getName
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

getContainer

SchemaContainer getContainer()
Return the schema's container; either a catalog or a database.


tables

java.util.Iterator<Table> tables()
Return the schema's tables.


tablesSize

int tablesSize()
Return the number of tables the schema contains.


getTableNamed

Table getTableNamed(java.lang.String name)
Return the table with specified name. The name must be an exact match of the table's name.

See Also:
getTableForIdentifier(String)

sortedTableIdentifiers

java.util.Iterator<java.lang.String> sortedTableIdentifiers()
Return the schema's table identifiers, sorted by name.


getTableForIdentifier

Table getTableForIdentifier(java.lang.String identifier)
Return the table for the specified identifier. The identifier should be an SQL identifier (i.e. quoted when case-sensitive or containing special characters, unquoted otherwise).

See Also:
getTableNamed(String)

sequences

java.util.Iterator<Sequence> sequences()
Return the schema's sequences.


sequencesSize

int sequencesSize()
Return the number of sequences the schema contains.


getSequenceNamed

Sequence getSequenceNamed(java.lang.String name)
Return the sequence with specified name. The name must be an exact match of the sequence's name.

See Also:
getSequenceForIdentifier(String)

sortedSequenceIdentifiers

java.util.Iterator<java.lang.String> sortedSequenceIdentifiers()
Return the schema's sequence identifers, sorted by name.


getSequenceForIdentifier

Sequence getSequenceForIdentifier(java.lang.String identifier)
Return the sequence for the specified identifier. The identifier should be an SQL identifier (i.e. quoted when case-sensitive or containing special characters, unquoted otherwise).

See Also:
getSequenceNamed(String)