Top Description Fields Constructors Methods
org.jooq.impl

public Class SchemaImpl

extends AbstractNamed
implements Schema, SimpleQueryPart
Class Inheritance
All Implemented Interfaces
org.jooq.impl.SimpleQueryPart, org.jooq.QueryPartInternal, org.jooq.QueryPart, java.io.Serializable, org.jooq.Schema, org.jooq.Named
Known Direct Subclasses
org.jooq.impl.Snapshot.SnapshotSchema, org.jooq.RenamedSchema, org.jooq.impl.FilteredMeta.FilteredSchema, org.jooq.impl.MetaImpl.MetaSchema, org.jooq.impl.InformationSchemaMetaImpl.InformationSchemaSchema, org.jooq.impl.Interpreter.MutableSchema.InterpretedSchema
Annotations
@Internal
Static Imports
org.jooq.Clause.SCHEMA, .Clause.SCHEMA_REFERENCE, org.jooq.impl.CatalogImpl.DEFAULT_CATALOG, .Tools.flatMap, .Tools.getMappedCatalog, .Tools.getMappedSchema, org.jooq.tools.StringUtils.defaultIfNull

A common base class for database schemata

This type is for JOOQ INTERNAL USE only. Do not reference directly

Author
Lukas Eder

Field Summary

Modifier and TypeField and Description
private Catalog
private static final Clause[]
CLAUSES

Deprecated as a consequence of Clause being deprecated.
pack-priv static final Lazy<Schema>

Constructor Summary

AccessConstructor and Description
public
public
SchemaImpl(String name, Catalog catalog)

public
SchemaImpl(String name, Catalog catalog, String comment)

public
public
SchemaImpl(Name name, Catalog catalog)

public
SchemaImpl(Name name, Catalog catalog, Comment comment)

Method Summary

Modifier and TypeMethod and Description
public final void
accept(Context<?> ctx)

Implements org.jooq.QueryPartInternal.accept.

This QueryPart can accept a Context object in order to render a SQL string or to bind its variables.
public final Clause[]
clauses(Context<?> ctx)

Overrides org.jooq.impl.AbstractQueryPart.clauses.

Implements org.jooq.QueryPartInternal.clauses.

Deprecated as a consequence of Clause being deprecated.
The Clauses that are represented by this query part.
public final Stream<Domain<?>>
domainStream()

Implements org.jooq.Schema.domainStream.

Stream all domains contained in this schema.
public boolean
equals(Object
The other QueryPart
that
)

Overrides org.jooq.impl.AbstractNamed.equals.

Implements org.jooq.QueryPart.equals.

Check whether this QueryPart can be considered equal to another QueryPart.
public final Stream<ForeignKey<?, ?>>
foreignKeyStream()

Implements org.jooq.Schema.foreignKeyStream.

Stream all foreign keys contained in this schema.
public Catalog
getCatalog()

Implements org.jooq.Schema.getCatalog.

The catalog of this schema.
public final Domain<?>
getDomain(String name)

Implements org.jooq.Schema.getDomain.

Get a domain by its name (case-sensitive) in this schema, or null if no such domain exists.
public final Domain<?>
getDomain(Name name)

Implements org.jooq.Schema.getDomain.

Get a domain by its qualified or unqualified name in this schema, or null if no such domain exists.
public List<Domain<?>>
getDomains()

Implements org.jooq.Schema.getDomains.

List all domains contained in this schema.
public final List<ForeignKey<?, ?>>
getForeignKeys(String name)

Implements org.jooq.Schema.getForeignKeys.

Get foreign keys by their name (case-sensitive) in this schema.
public final List<ForeignKey<?, ?>>
getForeignKeys(Name name)

Implements org.jooq.Schema.getForeignKeys.

Get foreign keys by their qualified or unqualified name in this schema.
public List<ForeignKey<?, ?>>
getForeignKeys()

Implements org.jooq.Schema.getForeignKeys.

List all foreign keys contained in this schema.
public final List<Index>
getIndexes(String name)

Implements org.jooq.Schema.getIndexes.

Get indexes by their name (case-sensitive) in this schema.
public final List<Index>
getIndexes(Name name)

Implements org.jooq.Schema.getIndexes.

Get indexes by their qualified or unqualified name in this schema.
public List<Index>
getIndexes()

Implements org.jooq.Schema.getIndexes.

List all indexes contained in this schema.
public final List<UniqueKey<?>>
getPrimaryKeys(String name)

Implements org.jooq.Schema.getPrimaryKeys.

Get primary keys by their name (case-sensitive) in this schema.
public final List<UniqueKey<?>>
getPrimaryKeys(Name name)

Implements org.jooq.Schema.getPrimaryKeys.

Get primary keys by their qualified or unqualified name in this schema.
public List<UniqueKey<?>>
getPrimaryKeys()

Implements org.jooq.Schema.getPrimaryKeys.

List all primary keys contained in this schema.
public final Sequence<?>
getSequence(String name)

Implements org.jooq.Schema.getSequence.

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

Implements org.jooq.Schema.getSequence.

Get a sequence by its qualified or unqualified name in this schema, or null if no such sequence exists.
public List<Sequence<?>>
getSequences()

Implements org.jooq.Schema.getSequences.

List all sequences contained in this schema.
public final Table<?>
getTable(String name)

Implements org.jooq.Schema.getTable.

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

Implements org.jooq.Schema.getTable.

Get a table by its qualified or unqualified name in this schema, or null if no such table exists.
public List<Table<?>>
getTables()

Implements org.jooq.Schema.getTables.

List all tables contained in this schema.
public final UDT<?>
getUDT(String name)

Implements org.jooq.Schema.getUDT.

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

Implements org.jooq.Schema.getUDT.

Get a UDT by its qualified or unqualified name in this schema, or null if no such UDT exists.
public List<UDT<?>>
getUDTs()

Implements org.jooq.Schema.getUDTs.

List all UDTs contained in this schema.
public final List<UniqueKey<?>>
getUniqueKeys(String name)

Implements org.jooq.Schema.getUniqueKeys.

Get unique keys (including primary keys) by their name (case-sensitive) in this schema.
public final List<UniqueKey<?>>
getUniqueKeys(Name name)

Implements org.jooq.Schema.getUniqueKeys.

Get unique keys (including primary keys) by their qualified or unqualified name in this schema.
public List<UniqueKey<?>>
getUniqueKeys()

Implements org.jooq.Schema.getUniqueKeys.

List all unique keys (including primary keys) contained in this schema.
public final Stream<Index>
indexStream()

Implements org.jooq.Schema.indexStream.

Stream all indexes contained in this schema.
public final Stream<UniqueKey<?>>
primaryKeyStream()

Implements org.jooq.Schema.primaryKeyStream.

Stream all primary keys contained in this schema.
public final Stream<Sequence<?>>
sequenceStream()

Implements org.jooq.Schema.sequenceStream.

Stream all sequences contained in this schema.
public final Stream<Table<?>>
tableStream()

Implements org.jooq.Schema.tableStream.

Stream all tables contained in this schema.
public final Stream<UDT<?>>
udtStream()

Implements org.jooq.Schema.udtStream.

Stream all UDTs contained in this schema.
public final Stream<UniqueKey<?>>
uniqueKeyStream()

Implements org.jooq.Schema.uniqueKeyStream.

Stream all unique keys (including primary keys) contained in this schema.
Inherited from org.jooq.impl.AbstractNamed:
$namefindfindfindAllfindAllfindIgnoreCasefindIgnoreCasegetCommentgetCommentPartgetNamegetQualifiedNamegetUnqualifiedNamehashCodenameOrDefaultqualify

Field Detail

catalogback to summary
private Catalog catalog
CLAUSESback to summary
private static final Clause[] CLAUSES

Deprecated

as a consequence of Clause being deprecated. See corresponding docs for further information.

DEFAULT_SCHEMAback to summary
pack-priv static final Lazy<Schema> DEFAULT_SCHEMA

Constructor Detail

SchemaImplback to summary
public SchemaImpl(String name)
SchemaImplback to summary
public SchemaImpl(String name, Catalog catalog)
SchemaImplback to summary
public SchemaImpl(String name, Catalog catalog, String comment)
SchemaImplback to summary
public SchemaImpl(Name name)
SchemaImplback to summary
public SchemaImpl(Name name, Catalog catalog)
SchemaImplback to summary
public SchemaImpl(Name name, Catalog catalog, Comment comment)

Method Detail

acceptback to summary
public final void accept(Context<?> ctx)

Implements org.jooq.QueryPartInternal.accept.

Doc from org.jooq.QueryPartInternal.accept.

This QueryPart can accept a Context object in order to render a SQL string or to bind its variables.

Annotations
@Override
clausesback to summary
public final Clause[] clauses(Context<?> ctx)

Overrides org.jooq.impl.AbstractQueryPart.clauses.

Implements org.jooq.QueryPartInternal.clauses.

Doc from org.jooq.QueryPartInternal.clauses.

Deprecated

as a consequence of Clause being deprecated. See corresponding docs for further information.

The Clauses that are represented by this query part.

QueryParts can specify several Clauses for which an event will be emitted before (in forward order) and after (in reverse order) visiting the the query part through Context#visit(QueryPart)

This method is for JOOQ INTERNAL USE only. Do not reference directly

Returns:Clause[]

The Clauses represented by this query part or null or an empty array if this query part does not represent a clause.

Annotations
@Override
domainStreamback to summary
public final Stream<Domain<?>> domainStream()

Implements org.jooq.Schema.domainStream.

Doc from org.jooq.Schema.domainStream.

Stream all domains contained in this schema.

Annotations
@Override
equalsback to summary
public boolean equals(Object that)

Overrides org.jooq.impl.AbstractNamed.equals.

Implements org.jooq.QueryPart.equals.

Doc from org.jooq.QueryPart.equals.

Check whether this QueryPart can be considered equal to another QueryPart.

In general, QueryPart equality is defined in terms of toString() equality. In other words, two query parts are considered equal if their rendered SQL (with inlined bind variables) is equal. This means that the two query parts do not necessarily have to be of the same type.

Some QueryPart implementations may choose to override this behaviour for improved performance, as toString() is an expensive operation, if called many times.

Parameters
that:Object

The other QueryPart

Returns:boolean

Whether the two query parts are equal

Annotations
@Override
foreignKeyStreamback to summary
public final Stream<ForeignKey<?, ?>> foreignKeyStream()

Implements org.jooq.Schema.foreignKeyStream.

Doc from org.jooq.Schema.foreignKeyStream.

Stream all foreign keys contained in this schema.

Annotations
@Override
getCatalogback to summary
public Catalog getCatalog()

Implements org.jooq.Schema.getCatalog.

Doc from org.jooq.Schema.getCatalog.

The catalog of this schema.

Annotations
@Override
getDomainback to summary
public final Domain<?> getDomain(String name)

Implements org.jooq.Schema.getDomain.

Doc from org.jooq.Schema.getDomain.

Get a domain by its name (case-sensitive) in this schema, or null if no such domain exists.

Annotations
@Override
getDomainback to summary
public final Domain<?> getDomain(Name name)

Implements org.jooq.Schema.getDomain.

Doc from org.jooq.Schema.getDomain.

Get a domain by its qualified or unqualified name in this schema, or null if no such domain exists.

Annotations
@Override
getDomainsback to summary
public List<Domain<?>> getDomains()

Implements org.jooq.Schema.getDomains.

Doc from org.jooq.Schema.getDomains.

List all domains contained in this schema.

Subclasses should override this method

Annotations
@Override
getForeignKeysback to summary
public final List<ForeignKey<?, ?>> getForeignKeys(String name)

Implements org.jooq.Schema.getForeignKeys.

Doc from org.jooq.Schema.getForeignKeys.

Get foreign keys by their name (case-sensitive) in this schema.

Annotations
@Override
getForeignKeysback to summary
public final List<ForeignKey<?, ?>> getForeignKeys(Name name)

Implements org.jooq.Schema.getForeignKeys.

Doc from org.jooq.Schema.getForeignKeys.

Get foreign keys by their qualified or unqualified name in this schema.

Annotations
@Override
getForeignKeysback to summary
public List<ForeignKey<?, ?>> getForeignKeys()

Implements org.jooq.Schema.getForeignKeys.

Doc from org.jooq.Schema.getForeignKeys.

List all foreign keys contained in this schema.

Subclasses may override this method

Annotations
@Override
getIndexesback to summary
public final List<Index> getIndexes(String name)

Implements org.jooq.Schema.getIndexes.

Doc from org.jooq.Schema.getIndexes.

Get indexes by their name (case-sensitive) in this schema.

Annotations
@Override
getIndexesback to summary
public final List<Index> getIndexes(Name name)

Implements org.jooq.Schema.getIndexes.

Doc from org.jooq.Schema.getIndexes.

Get indexes by their qualified or unqualified name in this schema.

Annotations
@Override
getIndexesback to summary
public List<Index> getIndexes()

Implements org.jooq.Schema.getIndexes.

Doc from org.jooq.Schema.getIndexes.

List all indexes contained in this schema.

Subclasses may override this method

Annotations
@Override
getPrimaryKeysback to summary
public final List<UniqueKey<?>> getPrimaryKeys(String name)

Implements org.jooq.Schema.getPrimaryKeys.

Doc from org.jooq.Schema.getPrimaryKeys.

Get primary keys by their name (case-sensitive) in this schema.

Annotations
@Override
getPrimaryKeysback to summary
public final List<UniqueKey<?>> getPrimaryKeys(Name name)

Implements org.jooq.Schema.getPrimaryKeys.

Doc from org.jooq.Schema.getPrimaryKeys.

Get primary keys by their qualified or unqualified name in this schema.

Annotations
@Override
getPrimaryKeysback to summary
public List<UniqueKey<?>> getPrimaryKeys()

Implements org.jooq.Schema.getPrimaryKeys.

Doc from org.jooq.Schema.getPrimaryKeys.

List all primary keys contained in this schema.

Subclasses may override this method

Annotations
@Override
getSequenceback to summary
public final Sequence<?> getSequence(String name)

Implements org.jooq.Schema.getSequence.

Doc from org.jooq.Schema.getSequence.

Get a sequence by its name (case-sensitive) in this schema, or null if no such sequence exists.

Annotations
@Override
getSequenceback to summary
public final Sequence<?> getSequence(Name name)

Implements org.jooq.Schema.getSequence.

Doc from org.jooq.Schema.getSequence.

Get a sequence by its qualified or unqualified name in this schema, or null if no such sequence exists.

Annotations
@Override
getSequencesback to summary
public List<Sequence<?>> getSequences()

Implements org.jooq.Schema.getSequences.

Doc from org.jooq.Schema.getSequences.

List all sequences contained in this schema.

Subclasses should override this method

Annotations
@Override
getTableback to summary
public final Table<?> getTable(String name)

Implements org.jooq.Schema.getTable.

Doc from org.jooq.Schema.getTable.

Get a table by its name (case-sensitive) in this schema, or null if no such table exists.

Annotations
@Override
getTableback to summary
public final Table<?> getTable(Name name)

Implements org.jooq.Schema.getTable.

Doc from org.jooq.Schema.getTable.

Get a table by its qualified or unqualified name in this schema, or null if no such table exists.

Annotations
@Override
getTablesback to summary
public List<Table<?>> getTables()

Implements org.jooq.Schema.getTables.

Doc from org.jooq.Schema.getTables.

List all tables contained in this schema.

Subclasses should override this method

Annotations
@Override
getUDTback to summary
public final UDT<?> getUDT(String name)

Implements org.jooq.Schema.getUDT.

Doc from org.jooq.Schema.getUDT.

Get a UDT by its name (case-sensitive) in this schema, or null if no such UDT exists.

Annotations
@Override
getUDTback to summary
public final UDT<?> getUDT(Name name)

Implements org.jooq.Schema.getUDT.

Doc from org.jooq.Schema.getUDT.

Get a UDT by its qualified or unqualified name in this schema, or null if no such UDT exists.

Annotations
@Override
getUDTsback to summary
public List<UDT<?>> getUDTs()

Implements org.jooq.Schema.getUDTs.

Doc from org.jooq.Schema.getUDTs.

List all UDTs contained in this schema.

Subclasses should override this method

Annotations
@Override
getUniqueKeysback to summary
public final List<UniqueKey<?>> getUniqueKeys(String name)

Implements org.jooq.Schema.getUniqueKeys.

Doc from org.jooq.Schema.getUniqueKeys.

Get unique keys (including primary keys) by their name (case-sensitive) in this schema.

Annotations
@Override
getUniqueKeysback to summary
public final List<UniqueKey<?>> getUniqueKeys(Name name)

Implements org.jooq.Schema.getUniqueKeys.

Doc from org.jooq.Schema.getUniqueKeys.

Get unique keys (including primary keys) by their qualified or unqualified name in this schema.

Annotations
@Override
getUniqueKeysback to summary
public List<UniqueKey<?>> getUniqueKeys()

Implements org.jooq.Schema.getUniqueKeys.

Doc from org.jooq.Schema.getUniqueKeys.

List all unique keys (including primary keys) contained in this schema.

Subclasses may override this method

Annotations
@Override
indexStreamback to summary
public final Stream<Index> indexStream()

Implements org.jooq.Schema.indexStream.

Doc from org.jooq.Schema.indexStream.

Stream all indexes contained in this schema.

Annotations
@Override
primaryKeyStreamback to summary
public final Stream<UniqueKey<?>> primaryKeyStream()

Implements org.jooq.Schema.primaryKeyStream.

Doc from org.jooq.Schema.primaryKeyStream.

Stream all primary keys contained in this schema.

Annotations
@Override
sequenceStreamback to summary
public final Stream<Sequence<?>> sequenceStream()

Implements org.jooq.Schema.sequenceStream.

Doc from org.jooq.Schema.sequenceStream.

Stream all sequences contained in this schema.

Annotations
@Override
tableStreamback to summary
public final Stream<Table<?>> tableStream()

Implements org.jooq.Schema.tableStream.

Doc from org.jooq.Schema.tableStream.

Stream all tables contained in this schema.

Annotations
@Override
udtStreamback to summary
public final Stream<UDT<?>> udtStream()

Implements org.jooq.Schema.udtStream.

Doc from org.jooq.Schema.udtStream.

Stream all UDTs contained in this schema.

Annotations
@Override
uniqueKeyStreamback to summary
public final Stream<UniqueKey<?>> uniqueKeyStream()

Implements org.jooq.Schema.uniqueKeyStream.

Doc from org.jooq.Schema.uniqueKeyStream.

Stream all unique keys (including primary keys) contained in this schema.

Annotations
@Override