org.eclipse.jpt.db
Interface SchemaContainer

All Superinterfaces:
DatabaseObject
All Known Subinterfaces:
Catalog, Database

public interface SchemaContainer
extends DatabaseObject

Schema "container" (i.e. Database or Catalog) 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
 Schema getDefaultSchema()
          Return the container's default schema, as defined by the database vendor.
 Schema getSchemaForIdentifier(java.lang.String identifier)
          Return the schema for the specified identifier.
 Schema getSchemaNamed(java.lang.String name)
          Return the schema with specified name.
 java.util.Iterator<Schema> schemata()
          Return the container's schemata.
 int schemataSize()
          Return the number of schemata in the container.
 java.util.Iterator<java.lang.String> sortedSchemaIdentifiers()
          Return the container's schema identifiers, sorted by name.
 
Methods inherited from interface org.eclipse.jpt.db.DatabaseObject
getConnectionProfile, getDatabase, getIdentifier, getIdentifier, getName
 

Method Detail

schemata

java.util.Iterator<Schema> schemata()
Return the container's schemata.


schemataSize

int schemataSize()
Return the number of schemata in the container.


getSchemaNamed

Schema getSchemaNamed(java.lang.String name)
Return the schema with specified name. The name must be an exact match of the schema's name.

See Also:
#schemaNames(), getSchemaForIdentifier(String)

sortedSchemaIdentifiers

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


getSchemaForIdentifier

Schema getSchemaForIdentifier(java.lang.String identifier)
Return the schema 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:
#schemaIdentifiers(), getSchemaNamed(String)

getDefaultSchema

Schema getDefaultSchema()
Return the container's default schema, as defined by the database vendor. In most cases the default schema's name will match the user name.