- All Superinterfaces:
Scope
DatabaseMetaData or for other sources of
database meta information (e.g. InformationSchema)
This object can be obtained through DSLContext.meta() in order to
provide convenient access to your database meta data. This abstraction has
two purposes:
- To increase API convenience, as no checked
SQLExceptionis thrown, only the uncheckedDataAccessException - To increase API convenience, as the returned objects are always jOOQ
objects, not JDBC
ResultSetobjects with hard-to-remember API constraints
This type is a Scope with independent lifecycle and its own
Scope.data() map. Its implementations are not required to be thread safe
and are likely not. Clients should access separate instances per thread and
use-case. Implementations are allowed to cache meta data for faster
subsequent access, e.g. by means of snapshot(). Clients should
assume that meta data is not up to date if other processes alter the database
at the same time as clients access this API.
- Author:
- Lukas Eder
-
Method Summary
Modifier and TypeMethodDescription@NotNull MetaApply a migration to this meta to produce a newMeta.@NotNull Metaapply(Collection<? extends Query> migration) Apply a migration to this meta to produce a newMeta.@NotNull MetaApply a migration to this meta to produce a newMeta.@NotNull MetaApply a migration to this meta to produce a newMeta.@NotNull Queriesddl()Generate a creation script for the entire meta data.@NotNull Queriesddl(DDLExportConfiguration configuration) Generate a creation script for the entire meta data.@NotNull DependenciesCollect the object dependencies between the various objects in thisMeta.@NotNull MetafilterCatalogs(Predicate<? super Catalog> filter) Create a wrapperMetainstance filtering out some catalogs.@NotNull MetafilterDomains(Predicate<? super Domain<?>> filter) Create a wrapperMetainstance filtering out some domains.@NotNull MetafilterForeignKeys(Predicate<? super ForeignKey<?, ?>> filter) Create a wrapperMetainstance filtering out some foreign keys.@NotNull MetafilterIndexes(Predicate<? super Index> filter) Create a wrapperMetainstance filtering out some indexes.@NotNull MetafilterPrimaryKeys(Predicate<? super UniqueKey<?>> filter) Create a wrapperMetainstance filtering out some primary keys.@NotNull MetafilterSchemas(Predicate<? super Schema> filter) Create a wrapperMetainstance filtering out some schemas.@NotNull MetafilterSequences(Predicate<? super Sequence<?>> filter) Create a wrapperMetainstance filtering out some sequences.@NotNull MetafilterSynonyms(Predicate<? super Synonym> filter) Create a wrapperMetainstance filtering out some synonym.@NotNull MetafilterTables(Predicate<? super Table<?>> filter) Create a wrapperMetainstance filtering out some tables.@NotNull MetafilterTriggers(Predicate<? super Trigger> filter) Create a wrapperMetainstance filtering out some triggers.@NotNull MetafilterUDTs(Predicate<? super UDT<?>> filter) Create a wrapperMetainstance filtering out some UDTs.@NotNull MetafilterUniqueKeys(Predicate<? super UniqueKey<?>> filter) Create a wrapperMetainstance filtering out some unique keys.@NotNull CataloggetCatalog(String name) Get a catalog object by name from the underlying meta data source, ornullif no such object exists.@NotNull CataloggetCatalog(Name name) Get a catalog object by name from the underlying meta data source, ornullif no such object exists.Get all catalog objects from the underlying meta data source.Get all domain objects from the underlying meta data source.getDomains(String name) Get all domain objects by name from the underlying meta data source.getDomains(Name name) Get all domain objects by name from the underlying meta data source.@NotNull List<ForeignKey<?, ?>> Get all foreign keys from the underlying meta data source.@NotNull List<ForeignKey<?, ?>> getForeignKeys(String name) Get all foreign keys from the underlying meta data source.@NotNull List<ForeignKey<?, ?>> getForeignKeys(Name name) Get all foreign keys from the underlying meta data source.Get all indexes from the underlying meta data sources.getIndexes(String name) Get all indexes from the underlying meta data sources.getIndexes(Name name) Get all indexes from the underlying meta data sources.Get all primary keys from the underlying meta data source.getPrimaryKeys(String name) Get all primary keys from the underlying meta data source.getPrimaryKeys(Name name) Get all primary keys from the underlying meta data source.Get all public synonym objects from the underlying meta data source.getPublicSynonyms(String name) Get all public synonym objects by name from the underlying meta data source.getPublicSynonyms(Name name) Get all public synonym objects by name from the underlying meta data source.Get all schema objects from the underlying meta data source.getSchemas(String name) Get all schema objects by name from the underlying meta data source.getSchemas(Name name) Get all schema objects by name from the underlying meta data source.Get all sequence objects from the underlying meta data source.getSequences(String name) Get all sequence objects by name from the underlying meta data source.getSequences(Name name) Get all sequence objects by name from the underlying meta data source.Get all synonym objects from the underlying meta data source.getSynonyms(String name) Get all synonym objects by name from the underlying meta data source.getSynonyms(Name name) Get all synonym objects by name from the underlying meta data source.Get all table objects from the underlying meta data source.Get all table objects by name from the underlying meta data source.Get all table objects by name from the underlying meta data source.Get all trigger objects from the underlying meta data source.getTriggers(String name) Get all trigger objects by name from the underlying meta data source.getTriggers(Name name) Get all trigger objects by name from the underlying meta data source.getUDTs()Get allUDTobjects from the underlying meta data source.Get allUDTobjects by name from the underlying meta data source.Get allUDTobjects by name from the underlying meta data source.Get all unique keys from the underlying meta data source.getUniqueKeys(String name) Get all unique keys from the underlying meta data source.getUniqueKeys(Name name) Get all unique keys from the underlying meta data source.@NotNull InformationSchemaExport to theInformationSchemaformat.@NotNull QueriesGenerate a migration script to get from this meta data to another one.@NotNull QueriesmigrateTo(Meta other, MigrationConfiguration configuration) Generate a migration script to get from this meta data to another one.@Nullable Domain<?> resolveDomain(String name) @Nullable Domain<?> resolveDomain(Name name) @Nullable Sequence<?> resolveSequence(String name) @Nullable Sequence<?> resolveSequence(Name name) @Nullable SynonymresolveSynonym(String name) @Nullable SynonymresolveSynonym(Name name) @Nullable Table<?> resolveTable(String name) @Nullable Table<?> resolveTable(Name name) @Nullable TriggerresolveTrigger(String name) @Nullable TriggerresolveTrigger(Name name) @Nullable UDT<?> resolveUDT(String name) @Nullable UDT<?> resolveUDT(Name name) @NotNull Metasnapshot()Eager-create an in-memory copy of thisMetainstance without any connection to the original data source.Methods inherited from interface org.jooq.Scope
configuration, creationTime, data, data, data, dialect, dsl, family, settings
-
Method Details
-
getCatalogs
Get all catalog objects from the underlying meta data source.For those databases that don't really support JDBC meta data catalogs, a single empty catalog (named
"") will be returned. In other words, there is always at least one catalog in a database.- Throws:
DataAccessException- If something went wrong fetching the meta objects
-
getCatalog
Get a catalog object by name from the underlying meta data source, ornullif no such object exists.- Throws:
DataAccessException- If something went wrong fetching the meta objects
-
getCatalog
Get a catalog object by name from the underlying meta data source, ornullif no such object exists.- Throws:
DataAccessException- If something went wrong fetching the meta objects
-
getSchemas
Get all schema objects from the underlying meta data source.- Throws:
DataAccessException- If something went wrong fetching the meta objects
-
getSchemas
Get all schema objects by name from the underlying meta data source.- Throws:
DataAccessException- If something went wrong fetching the meta objects
-
getSchemas
Get all schema objects by name from the underlying meta data source.- Throws:
DataAccessException- If something went wrong fetching the meta objects
-
getTables
Get all table objects from the underlying meta data source.- Throws:
DataAccessException- If something went wrong fetching the meta objects
-
getTables
Get all table objects by name from the underlying meta data source.- Throws:
DataAccessException- If something went wrong fetching the meta objects
-
getTables
Get all table objects by name from the underlying meta data source.- Throws:
DataAccessException- If something went wrong fetching the meta objects
-
resolveTable
Resolve aTableby its name according to interpreterSettings.Unlike
getTables(String), which may list multiple tables by their case sensitive name, this method finds the best matching table according to the argument as well as the underlyingSettings.getInterpreterNameLookupCaseSensitivity()andSettings.getInterpreterSearchPath(), or returnsnullif no such table was found.- Throws:
DataAccessException
-
resolveTable
Resolve aTableby its name according to interpreterSettings.Unlike
getTables(Name), which may list multiple tables by their case sensitive name, this method finds the best matching table according to the argumentName.qualifier()as well as the underlyingSettings.getInterpreterNameLookupCaseSensitivity()andSettings.getInterpreterSearchPath(), or returnsnullif no such table was found.- Throws:
DataAccessException
-
getUDTs
@NotNull @Support({AURORA_POSTGRES,COCKROACHDB,DUCKDB,INFORMIX,ORACLE,POSTGRES,YUGABYTEDB}) @NotNull List<UDT<?>> getUDTs() throws DataAccessExceptionGet allUDTobjects from the underlying meta data source.- Throws:
DataAccessException- If something went wrong fetching the meta objects
-
getUDTs
@NotNull @Support({AURORA_POSTGRES,COCKROACHDB,DUCKDB,INFORMIX,ORACLE,POSTGRES,YUGABYTEDB}) @NotNull List<UDT<?>> getUDTs(String name) throws DataAccessException Get allUDTobjects by name from the underlying meta data source.- Throws:
DataAccessException- If something went wrong fetching the meta objects
-
getUDTs
@NotNull @Support({AURORA_POSTGRES,COCKROACHDB,DUCKDB,INFORMIX,ORACLE,POSTGRES,YUGABYTEDB}) @NotNull List<UDT<?>> getUDTs(Name name) throws DataAccessException Get allUDTobjects by name from the underlying meta data source.- Throws:
DataAccessException- If something went wrong fetching the meta objects
-
resolveUDT
@Nullable @Support({AURORA_POSTGRES,COCKROACHDB,DUCKDB,INFORMIX,ORACLE,POSTGRES,YUGABYTEDB}) @Nullable UDT<?> resolveUDT(String name) throws DataAccessException Resolve aUDTby its name according to interpreterSettings.Unlike
getUDTs(String), which may list multiple UDTs by their case sensitive name, this method finds the best matching UDTs according to the argument as well as the underlyingSettings.getInterpreterNameLookupCaseSensitivity()andSettings.getInterpreterSearchPath(), or returnsnullif no such UDTs was found.- Throws:
DataAccessException
-
resolveUDT
@Nullable @Support({AURORA_POSTGRES,COCKROACHDB,DUCKDB,INFORMIX,ORACLE,POSTGRES,YUGABYTEDB}) @Nullable UDT<?> resolveUDT(Name name) throws DataAccessException Resolve aUDTby its name according to interpreterSettings.Unlike
getUDTs(Name), which may list multiple UDTs by their case sensitive name, this method finds the best matching UDTs according to the argumentName.qualifier()as well as the underlyingSettings.getInterpreterNameLookupCaseSensitivity()andSettings.getInterpreterSearchPath(), or returnsnullif no such UDTs was found.- Throws:
DataAccessException
-
getDomains
@NotNull @Support({AURORA_POSTGRES,FIREBIRD,H2,HSQLDB,ORACLE23C,POSTGRES,SQLSERVER,YUGABYTEDB}) @NotNull List<Domain<?>> getDomains() throws DataAccessExceptionGet all domain objects from the underlying meta data source.- Throws:
DataAccessException- If something went wrong fetching the meta objects
-
getDomains
@NotNull @Support({AURORA_POSTGRES,FIREBIRD,H2,HSQLDB,ORACLE23C,POSTGRES,SQLSERVER,YUGABYTEDB}) @NotNull List<Domain<?>> getDomains(String name) throws DataAccessException Get all domain objects by name from the underlying meta data source.- Throws:
DataAccessException- If something went wrong fetching the meta objects
-
getDomains
@NotNull @Support({AURORA_POSTGRES,FIREBIRD,H2,HSQLDB,ORACLE23C,POSTGRES,SQLSERVER,YUGABYTEDB}) @NotNull List<Domain<?>> getDomains(Name name) throws DataAccessException Get all domain objects by name from the underlying meta data source.- Throws:
DataAccessException- If something went wrong fetching the meta objects
-
resolveDomain
@Nullable @Support({AURORA_POSTGRES,H2,POSTGRES,SQLSERVER}) @Nullable Domain<?> resolveDomain(String name) throws DataAccessException Resolve aDomainby its name according to interpreterSettings.Unlike
getDomains(String), which may list multiple domains by their case sensitive name, this method finds the best matching domain according to the argument as well as the underlyingSettings.getInterpreterNameLookupCaseSensitivity()andSettings.getInterpreterSearchPath(), or returnsnullif no such domain was found.- Throws:
DataAccessException
-
resolveDomain
@Nullable @Support({AURORA_POSTGRES,H2,POSTGRES,SQLSERVER}) @Nullable Domain<?> resolveDomain(Name name) throws DataAccessException Resolve aDomainby its name according to interpreterSettings.Unlike
getDomains(Name), which may list multiple domains by their case sensitive name, this method finds the best matching domain according to the argumentName.qualifier()as well as the underlyingSettings.getInterpreterNameLookupCaseSensitivity()andSettings.getInterpreterSearchPath(), or returnsnullif no such domain was found.- Throws:
DataAccessException
-
getTriggers
@NotNull @Support({AURORA_POSTGRES,DB2,DERBY,FIREBIRD_3_0,HSQLDB,INFORMIX,MARIADB,MYSQL,ORACLE,POSTGRES,SQLITE,SQLSERVER,YUGABYTEDB}) @Pro @NotNull List<Trigger> getTriggers() throws DataAccessExceptionGet all trigger objects from the underlying meta data source.- Throws:
DataAccessException- If something went wrong fetching the meta objects
-
getTriggers
@NotNull @Support({AURORA_POSTGRES,DB2,DERBY,FIREBIRD_3_0,HSQLDB,INFORMIX,MARIADB,MYSQL,ORACLE,POSTGRES,SQLITE,SQLSERVER,YUGABYTEDB}) @Pro @NotNull List<Trigger> getTriggers(String name) throws DataAccessException Get all trigger objects by name from the underlying meta data source.- Throws:
DataAccessException- If something went wrong fetching the meta objects
-
getTriggers
@NotNull @Support({AURORA_POSTGRES,DB2,DERBY,FIREBIRD_3_0,HSQLDB,INFORMIX,MARIADB,MYSQL,ORACLE,POSTGRES,SQLITE,SQLSERVER,YUGABYTEDB}) @Pro @NotNull List<Trigger> getTriggers(Name name) throws DataAccessException Get all trigger objects by name from the underlying meta data source.- Throws:
DataAccessException- If something went wrong fetching the meta objects
-
resolveTrigger
@Nullable @Support({AURORA_POSTGRES,DB2,DERBY,FIREBIRD_3_0,HSQLDB,INFORMIX,MARIADB,MYSQL,ORACLE,POSTGRES,SQLITE,SQLSERVER,YUGABYTEDB}) @Pro @Nullable Trigger resolveTrigger(String name) throws DataAccessException Resolve aTriggerby its name according to interpreterSettings.Unlike
getTriggers(String), which may list multiple triggers by their case sensitive name, this method finds the best matching trigger according to the argument as well as the underlyingSettings.getInterpreterNameLookupCaseSensitivity()andSettings.getInterpreterSearchPath(), or returnsnullif no such trigger was found.- Throws:
DataAccessException
-
resolveTrigger
@Nullable @Support({AURORA_POSTGRES,DB2,DERBY,FIREBIRD_3_0,HSQLDB,INFORMIX,MARIADB,MYSQL,ORACLE,POSTGRES,SQLITE,SQLSERVER,YUGABYTEDB}) @Pro @Nullable Trigger resolveTrigger(Name name) throws DataAccessException Resolve aTriggerby its name according to interpreterSettings.Unlike
getTriggers(Name), which may list multiple triggers by their case sensitive name, this method finds the best matching trigger according to the argumentName.qualifier()as well as the underlyingSettings.getInterpreterNameLookupCaseSensitivity()andSettings.getInterpreterSearchPath(), or returnsnullif no such trigger was found.- Throws:
DataAccessException
-
getSynonyms
@NotNull @Support({DB2,DERBY,H2,HANA,HSQLDB,INFORMIX,ORACLE,SPANNER,SQLSERVER}) @Pro @NotNull List<Synonym> getSynonyms() throws DataAccessExceptionGet all synonym objects from the underlying meta data source.- Throws:
DataAccessException- If something went wrong fetching the meta objects
-
getSynonyms
@NotNull @Support({DB2,DERBY,H2,HANA,HSQLDB,INFORMIX,ORACLE,SPANNER,SQLSERVER}) @Pro @NotNull List<Synonym> getSynonyms(String name) throws DataAccessException Get all synonym objects by name from the underlying meta data source.- Throws:
DataAccessException- If something went wrong fetching the meta objects
-
getSynonyms
@NotNull @Support({DB2,DERBY,H2,HANA,HSQLDB,INFORMIX,ORACLE,SPANNER,SQLSERVER}) @Pro @NotNull List<Synonym> getSynonyms(Name name) throws DataAccessException Get all synonym objects by name from the underlying meta data source.- Throws:
DataAccessException- If something went wrong fetching the meta objects
-
resolveSynonym
@Nullable @Support({DB2,DERBY,H2,HANA,HSQLDB,INFORMIX,ORACLE,SPANNER,SQLSERVER}) @Pro @Nullable Synonym resolveSynonym(String name) throws DataAccessException Resolve aSynonymby its name according to interpreterSettings.Unlike
getSynonyms(String), which may list multiple synonyms by their case sensitive name, this method finds the best matching synonym according to the argument as well as the underlyingSettings.getInterpreterNameLookupCaseSensitivity()andSettings.getInterpreterSearchPath(), or returnsnullif no such synonym was found.- Throws:
DataAccessException
-
resolveSynonym
@Nullable @Support({DB2,DERBY,H2,HANA,HSQLDB,INFORMIX,ORACLE,SPANNER,SQLSERVER}) @Pro @Nullable Synonym resolveSynonym(Name name) throws DataAccessException Resolve aSynonymby its name according to interpreterSettings.Unlike
getSynonyms(Name), which may list multiple synonyms by their case sensitive name, this method finds the best matching synonym according to the argumentName.qualifier()as well as the underlyingSettings.getInterpreterNameLookupCaseSensitivity()andSettings.getInterpreterSearchPath(), or returnsnullif no such synonym was found.- Throws:
DataAccessException
-
getPublicSynonyms
@NotNull @Support({DB2,DERBY,H2,HANA,HSQLDB,INFORMIX,ORACLE,SPANNER,SQLSERVER}) @Pro @NotNull List<Synonym> getPublicSynonyms() throws DataAccessExceptionGet all public synonym objects from the underlying meta data source.- Throws:
DataAccessException- If something went wrong fetching the meta objects
-
getPublicSynonyms
@NotNull @Support({DB2,DERBY,H2,HANA,HSQLDB,INFORMIX,ORACLE,SPANNER,SQLSERVER}) @Pro @NotNull List<Synonym> getPublicSynonyms(String name) throws DataAccessException Get all public synonym objects by name from the underlying meta data source.- Throws:
DataAccessException- If something went wrong fetching the meta objects
-
getPublicSynonyms
@NotNull @Support({DB2,DERBY,H2,HANA,HSQLDB,INFORMIX,ORACLE,SPANNER,SQLSERVER}) @Pro @NotNull List<Synonym> getPublicSynonyms(Name name) throws DataAccessException Get all public synonym objects by name from the underlying meta data source.- Throws:
DataAccessException- If something went wrong fetching the meta objects
-
getSequences
@NotNull @Support({AURORA_POSTGRES,COCKROACHDB,CUBRID,DB2,DERBY,FIREBIRD,H2,HANA,HSQLDB,INFORMIX,INGRES,ORACLE,POSTGRES,SNOWFLAKE,SQLSERVER2012,SYBASE}) @NotNull List<Sequence<?>> getSequences() throws DataAccessExceptionGet all sequence objects from the underlying meta data source.- Throws:
DataAccessException- If something went wrong fetching the meta objects
-
getSequences
@NotNull @Support({AURORA_POSTGRES,COCKROACHDB,CUBRID,DB2,DERBY,FIREBIRD,H2,HANA,HSQLDB,INFORMIX,INGRES,ORACLE,POSTGRES,SNOWFLAKE,SQLSERVER2012,SYBASE}) @NotNull List<Sequence<?>> getSequences(String name) throws DataAccessException Get all sequence objects by name from the underlying meta data source.- Throws:
DataAccessException- If something went wrong fetching the meta objects
-
getSequences
@NotNull @Support({AURORA_POSTGRES,COCKROACHDB,CUBRID,DB2,DERBY,FIREBIRD,H2,HANA,HSQLDB,INFORMIX,INGRES,ORACLE,POSTGRES,SNOWFLAKE,SQLSERVER2012,SYBASE}) @NotNull List<Sequence<?>> getSequences(Name name) throws DataAccessException Get all sequence objects by name from the underlying meta data source.- Throws:
DataAccessException- If something went wrong fetching the meta objects
-
resolveSequence
@Nullable @Support({AURORA_POSTGRES,COCKROACHDB,CUBRID,DB2,DERBY,FIREBIRD,H2,HANA,HSQLDB,INFORMIX,INGRES,ORACLE,POSTGRES,SNOWFLAKE,SQLSERVER2012,SYBASE}) @Nullable Sequence<?> resolveSequence(String name) throws DataAccessException Resolve aSequenceby its name according to interpreterSettings.Unlike
getSequences(String), which may list multiple sequences by their case sensitive name, this method finds the best matching sequence according to the argument as well as the underlyingSettings.getInterpreterNameLookupCaseSensitivity()andSettings.getInterpreterSearchPath(), or returnsnullif no such sequence was found.- Throws:
DataAccessException
-
resolveSequence
@Nullable @Support({AURORA_POSTGRES,COCKROACHDB,CUBRID,DB2,DERBY,FIREBIRD,H2,HANA,HSQLDB,INFORMIX,INGRES,ORACLE,POSTGRES,SNOWFLAKE,SQLSERVER2012,SYBASE}) @Nullable Sequence<?> resolveSequence(Name name) throws DataAccessException Resolve aSequenceby its name according to interpreterSettings.Unlike
getSequences(Name), which may list multiple sequences by their case sensitive name, this method finds the best matching sequence according to the argumentName.qualifier()as well as the underlyingSettings.getInterpreterNameLookupCaseSensitivity()andSettings.getInterpreterSearchPath(), or returnsnullif no such sequence was found.- Throws:
DataAccessException
-
getPrimaryKeys
Get all primary keys from the underlying meta data source.- Throws:
DataAccessException- If something went wrong fetching the meta objects
-
getPrimaryKeys
@NotNull @Support @NotNull List<UniqueKey<?>> getPrimaryKeys(String name) throws DataAccessException Get all primary keys from the underlying meta data source.- Throws:
DataAccessException- If something went wrong fetching the meta objects
-
getPrimaryKeys
Get all primary keys from the underlying meta data source.- Throws:
DataAccessException- If something went wrong fetching the meta objects
-
getUniqueKeys
Get all unique keys from the underlying meta data source.- Throws:
DataAccessException- If something went wrong fetching the meta objects
-
getUniqueKeys
Get all unique keys from the underlying meta data source.- Throws:
DataAccessException- If something went wrong fetching the meta objects
-
getUniqueKeys
Get all unique keys from the underlying meta data source.- Throws:
DataAccessException- If something went wrong fetching the meta objects
-
getForeignKeys
Get all foreign keys from the underlying meta data source.- Throws:
DataAccessException- If something went wrong fetching the meta objects
-
getForeignKeys
@NotNull @Support @NotNull List<ForeignKey<?,?>> getForeignKeys(String name) throws DataAccessException Get all foreign keys from the underlying meta data source.- Throws:
DataAccessException- If something went wrong fetching the meta objects
-
getForeignKeys
@NotNull @Support @NotNull List<ForeignKey<?,?>> getForeignKeys(Name name) throws DataAccessException Get all foreign keys from the underlying meta data source.- Throws:
DataAccessException- If something went wrong fetching the meta objects
-
getIndexes
Get all indexes from the underlying meta data sources.- Throws:
DataAccessException- If something went wrong fetching the meta objects
-
getIndexes
Get all indexes from the underlying meta data sources.- Throws:
DataAccessException- If something went wrong fetching the meta objects
-
getIndexes
Get all indexes from the underlying meta data sources.- Throws:
DataAccessException- If something went wrong fetching the meta objects
-
filterCatalogs
Create a wrapperMetainstance filtering out some catalogs. -
filterSchemas
Create a wrapperMetainstance filtering out some schemas. -
filterTables
Create a wrapperMetainstance filtering out some tables. -
filterUDTs
Create a wrapperMetainstance filtering out some UDTs. -
filterDomains
Create a wrapperMetainstance filtering out some domains. -
filterTriggers
Create a wrapperMetainstance filtering out some triggers. -
filterSynonyms
Create a wrapperMetainstance filtering out some synonym. -
filterSequences
Create a wrapperMetainstance filtering out some sequences. -
filterPrimaryKeys
Create a wrapperMetainstance filtering out some primary keys. -
filterUniqueKeys
Create a wrapperMetainstance filtering out some unique keys. -
filterForeignKeys
Create a wrapperMetainstance filtering out some foreign keys. -
filterIndexes
Create a wrapperMetainstance filtering out some indexes. -
snapshot
Eager-create an in-memory copy of thisMetainstance without any connection to the original data source.- Throws:
DataAccessException
-
dependencies
Collect the object dependencies between the various objects in thisMeta.This is a commercial-only feature.
- Throws:
DataAccessException
-
ddl
Generate a creation script for the entire meta data.- Throws:
DataAccessException- If something went wrong fetching the meta objects
-
ddl
Generate a creation script for the entire meta data.- Throws:
DataAccessException- If something went wrong fetching the meta objects
-
apply
Apply a migration to this meta to produce a newMeta.- Throws:
DataAccessException- If something went wrong fetching the meta objects- See Also:
-
apply
Apply a migration to this meta to produce a newMeta.- Throws:
DataAccessException- If something went wrong fetching the meta objects
-
apply
Apply a migration to this meta to produce a newMeta.- Throws:
DataAccessException- If something went wrong fetching the meta objects
-
apply
Apply a migration to this meta to produce a newMeta.- Throws:
DataAccessException- If something went wrong fetching the meta objects
-
migrateTo
Generate a migration script to get from this meta data to another one.See
migrateTo(Meta, MigrationConfiguration)for more details.- Throws:
DataAccessException- If something went wrong fetching the meta objects- See Also:
-
migrateTo
@NotNull @NotNull Queries migrateTo(Meta other, MigrationConfiguration configuration) throws DataAccessException Generate a migration script to get from this meta data to another one.To some extent, some database migrations can be generated automatically by comparing two versions of a schema. This is what
migrateTo()does. It supports:- Schema additions / removals
- Table additions / removals
- Column additions / removals
- Column data type changes
- Constraint additions / removals
- Index additions / removals
- Sequence additions / removals
- Comment additions / removals
More complex, structural changes, such as moving some columns from one table to another, or turning a to-one relationship into a to-many relationship, as well as data migrations, can currently not be detected automatically.
- Throws:
DataAccessException- If something went wrong fetching the meta objects
-
informationSchema
Export to theInformationSchemaformat.This allows for serialising schema meta information as XML using JAXB. See also
Constants.XSD_METAfor details.- Throws:
DataAccessException
-