Top Description Fields Constructors Methods
org.jooq.impl

public final Class LazySchema

extends AbstractNamed
implements Schema
Class Inheritance
All Implemented Interfaces
org.jooq.Schema, org.jooq.Named, org.jooq.QueryPart, java.io.Serializable
Annotations
@Internal
Imports
java.util.List, java.util.function.BiFunction, .Predicate, java.util.stream.Stream, org.jooq.Catalog, .Comment, .Context, .Domain, .ForeignKey, .Function1, .Index, .Internal, .Name, .Schema, .Sequence, .Table, .UDT, .UniqueKey, .QueryPart

A schema that references a lazy initialisable Schema singleton, for use in generated code.
Author
Lukas Eder

Field Summary

Modifier and TypeField and Description
pack-priv transient Schema
pack-priv final LazySupplier<Schema>

Constructor Summary

AccessConstructor and Description
public
LazySchema(Name name, Comment comment, LazySupplier<Schema> supplier)

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 Stream<Domain<?>>
domainStream()

Implements org.jooq.Schema.domainStream.

Stream all domains contained in this schema.
public final Stream<ForeignKey<?, ?>>
foreignKeyStream()

Implements org.jooq.Schema.foreignKeyStream.

Stream all foreign keys contained in this schema.
public final 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 final List<Domain<?>>
getDomains()

Implements org.jooq.Schema.getDomains.

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

Implements org.jooq.Schema.getForeignKeys.

List all foreign keys 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 final List<Index>
getIndexes()

Implements org.jooq.Schema.getIndexes.

List all indexes 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 final List<UniqueKey<?>>
getPrimaryKeys()

Implements org.jooq.Schema.getPrimaryKeys.

List all primary keys 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 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 final 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 final 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 final List<UDT<?>>
getUDTs()

Implements org.jooq.Schema.getUDTs.

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

Implements org.jooq.Schema.getUniqueKeys.

List all unique keys (including primary keys) 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 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.
private final 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:
$nameequalsfindfindfindAllfindAllfindIgnoreCasefindIgnoreCasegetCommentgetCommentPartgetNamegetQualifiedNamegetUnqualifiedNamehashCodenameOrDefaultqualify

Field Detail

schemaback to summary
pack-priv transient Schema schema
supplierback to summary
pack-priv final LazySupplier<Schema> supplier

Constructor Detail

LazySchemaback to summary
public LazySchema(Name name, Comment comment, LazySupplier<Schema> supplier)

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
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
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 final 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 final List<Domain<?>> getDomains()

Implements org.jooq.Schema.getDomains.

Doc from org.jooq.Schema.getDomains.

List all domains contained in this schema.

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

Implements org.jooq.Schema.getForeignKeys.

Doc from org.jooq.Schema.getForeignKeys.

List all foreign keys contained in this schema.

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
getIndexesback to summary
public final List<Index> getIndexes()

Implements org.jooq.Schema.getIndexes.

Doc from org.jooq.Schema.getIndexes.

List all indexes contained in this schema.

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
getPrimaryKeysback to summary
public final List<UniqueKey<?>> getPrimaryKeys()

Implements org.jooq.Schema.getPrimaryKeys.

Doc from org.jooq.Schema.getPrimaryKeys.

List all primary keys contained in this schema.

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
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 final List<Sequence<?>> getSequences()

Implements org.jooq.Schema.getSequences.

Doc from org.jooq.Schema.getSequences.

List all sequences contained in this schema.

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 final List<Table<?>> getTables()

Implements org.jooq.Schema.getTables.

Doc from org.jooq.Schema.getTables.

List all tables contained in this schema.

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 final List<UDT<?>> getUDTs()

Implements org.jooq.Schema.getUDTs.

Doc from org.jooq.Schema.getUDTs.

List all UDTs contained in this schema.

Annotations
@Override
getUniqueKeysback to summary
public final 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.

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
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
schemaback to summary
private final Schema schema()
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