Standard SQL object identifiers come in 3 parts:
[catalog].[schema].[object]. The schema is an object that groups
a set of objects, where objects can be Table, Sequence,
Routine and many other types of objects.
If your RDBMS supports schemas, and jOOQ supports using schemas with your RDBMS, then generated schemas references can be used to qualify objects
Example:
// Assuming import static org.jooq.impl.DSL.*;
using(configuration)
.select(SCHEMA.ACTOR.FIRST_NAME, SCHEMA.ACTOR.LAST_NAME)
.from(SCHEMA.ACTOR)
.fetch();
Compatibility:
Database products like SQLDialect#MYSQL and related dialects, such as
SQLDialect#MARIADB use catalogs ("databases") instead of schemas, and
lack schema support. For historic reasons, jOOQ treats MySQL catalogs as
schemas and does not support any catalog qualifier in MySQL.
Instances can be created using DSL#schema(Name) and overloads.
| Modifier and Type | Method and Description |
|---|---|
| public @NotNull Stream | |
| public @NotNull Stream | |
| public @Nullable Catalog | |
| public @Nullable Domain | |
| public @Nullable Domain | |
| public @NotNull List | |
| public @NotNull List | |
| public @NotNull List | |
| public @NotNull List | |
| public @NotNull List | |
| public @NotNull List | |
| public @NotNull List | |
| public @NotNull List | |
| public @NotNull List | |
| public @NotNull List | |
| public @Nullable Sequence | getSequence(String name)
Get a sequence by its name (case-sensitive) in this schema, or
|
| public @Nullable Sequence | getSequence(Name name)
Get a sequence by its qualified or unqualified name in this schema, or
|
| public @NotNull List | |
| public @Nullable Table | |
| public @Nullable Table | |
| public @NotNull List | |
| public @Nullable UDT | |
| public @Nullable UDT | |
| public @NotNull List | |
| public @NotNull List | |
| public @NotNull List | getUniqueKeys(String name)
Get unique keys (including primary keys) by their name (case-sensitive) in this schema. |
| public @NotNull List | getUniqueKeys(Name name)
Get unique keys (including primary keys) by their qualified or unqualified name in this schema. |
| public @NotNull Stream | |
| public @NotNull Stream | |
| public @NotNull Stream | |
| public @NotNull Stream | |
| public @NotNull Stream | |
| public @NotNull Stream |
| domainStream | back to summary |
|---|---|
| public @NotNull Stream Stream all domains contained in this schema.
| |
| foreignKeyStream | back to summary |
|---|---|
| public @NotNull Stream Stream all foreign keys contained in this schema.
| |
| getCatalog | back to summary |
|---|---|
| public @Nullable Catalog getCatalog() The catalog of this schema.
| |
| getDomain | back to summary |
|---|---|
| public @Nullable Domain Get a domain by its name (case-sensitive) in this schema, or
| |
| getDomain | back to summary |
|---|---|
| public @Nullable Domain Get a domain by its qualified or unqualified name in this schema, or
| |
| getDomains | back to summary |
|---|---|
| public @NotNull List List all domains contained in this schema.
| |
| getForeignKeys | back to summary |
|---|---|
| public @NotNull List List all foreign keys contained in this schema.
| |
| getForeignKeys | back to summary |
|---|---|
| public @NotNull List Get foreign keys by their name (case-sensitive) in this schema.
| |
| getForeignKeys | back to summary |
|---|---|
| public @NotNull List Get foreign keys by their qualified or unqualified name in this schema.
| |
| getIndexes | back to summary |
|---|---|
| public @NotNull List List all indexes contained in this schema.
| |
| getIndexes | back to summary |
|---|---|
| public @NotNull List Get indexes by their name (case-sensitive) in this schema.
| |
| getIndexes | back to summary |
|---|---|
| public @NotNull List Get indexes by their qualified or unqualified name in this schema.
| |
| getPrimaryKeys | back to summary |
|---|---|
| public @NotNull List List all primary keys contained in this schema.
| |
| getPrimaryKeys | back to summary |
|---|---|
| public @NotNull List Get primary keys by their name (case-sensitive) in this schema.
| |
| getPrimaryKeys | back to summary |
|---|---|
| public @NotNull List Get primary keys by their qualified or unqualified name in this schema.
| |
| getSequence | back to summary |
|---|---|
| public @Nullable Sequence Get a sequence by its name (case-sensitive) in this schema, or
| |
| getSequence | back to summary |
|---|---|
| public @Nullable Sequence Get a sequence by its qualified or unqualified name in this schema, or
| |
| getSequences | back to summary |
|---|---|
| public @NotNull List List all sequences contained in this schema.
| |
| getTable | back to summary |
|---|---|
| public @Nullable Table Get a table by its name (case-sensitive) in this schema, or
| |
| getTable | back to summary |
|---|---|
| public @Nullable Table Get a table by its qualified or unqualified name in this schema, or
| |
| getTables | back to summary |
|---|---|
| public @NotNull List List all tables contained in this schema.
| |
| getUDT | back to summary |
|---|---|
| public @Nullable UDT Get a UDT by its name (case-sensitive) in this schema, or
| |
| getUDT | back to summary |
|---|---|
| public @Nullable UDT Get a UDT by its qualified or unqualified name in this schema, or
| |
| getUDTs | back to summary |
|---|---|
| public @NotNull List List all UDTs contained in this schema.
| |
| getUniqueKeys | back to summary |
|---|---|
| public @NotNull List List all unique keys (including primary keys) contained in this schema.
| |
| getUniqueKeys | back to summary |
|---|---|
| public @NotNull List Get unique keys (including primary keys) by their name (case-sensitive) in this schema.
| |
| getUniqueKeys | back to summary |
|---|---|
| public @NotNull List Get unique keys (including primary keys) by their qualified or unqualified name in this schema.
| |
| indexStream | back to summary |
|---|---|
| public @NotNull Stream Stream all indexes contained in this schema.
| |
| primaryKeyStream | back to summary |
|---|---|
| public @NotNull Stream Stream all primary keys contained in this schema.
| |
| sequenceStream | back to summary |
|---|---|
| public @NotNull Stream Stream all sequences contained in this schema.
| |
| tableStream | back to summary |
|---|---|
| public @NotNull Stream Stream all tables contained in this schema.
| |
| udtStream | back to summary |
|---|---|
| public @NotNull Stream Stream all UDTs contained in this schema.
| |
| uniqueKeyStream | back to summary |
|---|---|
| public @NotNull Stream Stream all unique keys (including primary keys) contained in this schema.
| |