org.jooq
Interface Schema

All Superinterfaces:
Adapter, Attachable, Comparable<NamedQueryPart>, NamedQueryPart, QueryPart, Serializable
All Known Implementing Classes:
SchemaImpl

public interface Schema
extends NamedQueryPart

An entity representing a database schema

Author:
Lukas Eder

Method Summary
 Sequence<?> getSequence(String name)
          Get a sequence by its name (case-sensitive) in this schema, or null if no such sequence exists
 List<Sequence<?>> getSequences()
          List all sequences contained in this schema
 Table<?> getTable(String name)
          Get a table by its name (case-sensitive) in this schema, or null if no such table exists
 List<Table<?>> getTables()
          List all tables contained in this schema
 Map<String,Class<?>> getTypeMapping()
          The complete type mapping for this schema.
 UDT<?> getUDT(String name)
          Get a UDT by its name (case-sensitive) in this schema, or null if no such UDT exists
 List<UDT<?>> getUDTs()
          List all UDTs contained in this schema
 
Methods inherited from interface org.jooq.NamedQueryPart
getName
 
Methods inherited from interface org.jooq.Attachable
attach
 
Methods inherited from interface org.jooq.Adapter
internalAPI
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

getTypeMapping

Map<String,Class<?>> getTypeMapping()
The complete type mapping for this schema.

This method returns all generated types involved with this schema. The result can be used in ResultSet.getObject(int, Map) and similar methods.

See Also:
for a UDT-specific type mapping

getTables

List<Table<?>> getTables()
List all tables contained in this schema


getTable

Table<?> getTable(String name)
Get a table by its name (case-sensitive) in this schema, or null if no such table exists


getUDTs

List<UDT<?>> getUDTs()
List all UDTs contained in this schema


getUDT

UDT<?> getUDT(String name)
Get a UDT by its name (case-sensitive) in this schema, or null if no such UDT exists


getSequences

List<Sequence<?>> getSequences()
List all sequences contained in this schema


getSequence

Sequence<?> getSequence(String name)
Get a sequence by its name (case-sensitive) in this schema, or null if no such sequence exists



Copyright © 2012. All Rights Reserved.