public final class DDLExportConfiguration extends Object
Meta.ddl()
methods.Constructor and Description |
---|
DDLExportConfiguration()
Create a new default export configuration instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
createDomainIfNotExists()
Whether to generate
CREATE DOMAIN IF NOT EXISTS statements. |
DDLExportConfiguration |
createDomainIfNotExists(boolean newCreateDomainIfNotExists)
Whether to generate
CREATE DOMAIN IF NOT EXISTS statements. |
boolean |
createIndexIfNotExists()
Whether to generate
CREATE INDEX IF NOT EXISTS statements. |
DDLExportConfiguration |
createIndexIfNotExists(boolean newCreateIndexIfNotExists)
Whether to generate
CREATE INDEX IF NOT EXISTS statements. |
boolean |
createOrReplaceView()
Whether to generate
CREATE OR REPLACE VIEW statements. |
DDLExportConfiguration |
createOrReplaceView(boolean newCreateOrReplaceView)
Whether to generate
CREATE OR REPLACE VIEW statements. |
boolean |
createSchemaIfNotExists()
Whether to generate
CREATE SCHEMA IF NOT EXISTS statements. |
DDLExportConfiguration |
createSchemaIfNotExists(boolean newCreateSchemaIfNotExists)
Whether to generate
CREATE SCHEMA IF NOT EXISTS statements. |
boolean |
createSequenceIfNotExists()
Whether to generate
CREATE SEQUENCE IF NOT EXISTS statements. |
DDLExportConfiguration |
createSequenceIfNotExists(boolean newCreateSequenceIfNotExists)
Whether to generate
CREATE SEQUENCE IF NOT EXISTS statements. |
boolean |
createTableIfNotExists()
Whether to generate
CREATE TABLE IF NOT EXISTS statements. |
DDLExportConfiguration |
createTableIfNotExists(boolean newCreateTableIfNotExists)
Whether to generate
CREATE TABLE IF NOT EXISTS statements. |
boolean |
createViewIfNotExists()
Whether to generate
CREATE VIEW IF NOT EXISTS statements. |
DDLExportConfiguration |
createViewIfNotExists(boolean newCreateViewIfNotExists)
Whether to generate
CREATE VIEW IF NOT EXISTS statements. |
boolean |
defaultSequenceFlags()
Whether to explicitly produce defaults for all sequence flags, when
they're not defined explicitly.
|
DDLExportConfiguration |
defaultSequenceFlags(boolean newDefaultSequenceFlags)
Whether to explicitly produce defaults for all sequence flags, when
they're not defined explicitly.
|
Set<DDLFlag> |
flags()
The
DDLFlag that are enabled on this configuration. |
DDLExportConfiguration |
flags(Collection<DDLFlag> newFlags)
The
DDLFlag that are enabled on this configuration. |
DDLExportConfiguration |
flags(DDLFlag... newFlags)
The
DDLFlag that are enabled on this configuration. |
boolean |
includeConstraintsOnViews()
Whether to include constraints on views.
|
DDLExportConfiguration |
includeConstraintsOnViews(boolean newIncludeConstraintsOnViews)
Whether to include constraints on views.
|
boolean |
respectCatalogOrder()
Whether to respect the catalog order produced by the
Meta source
when generated catalog DDL. |
DDLExportConfiguration |
respectCatalogOrder(boolean newRespectCatalogOrder)
Whether to respect the catalog order produced by the
Meta source
when generated catalog DDL. |
boolean |
respectColumnOrder()
Whether to respect the column order produced by the
Meta source
when generated column DDL. |
DDLExportConfiguration |
respectColumnOrder(boolean newRespectColumnOrder)
Whether to respect the column order produced by the
Meta source
when generated column DDL. |
boolean |
respectConstraintOrder()
Whether to respect the constraint order produced by the
Meta source
when generated constraint DDL. |
DDLExportConfiguration |
respectConstraintOrder(boolean newRespectConstraintOrder)
Whether to respect the constraint order produced by the
Meta source
when generated constraint DDL. |
boolean |
respectDomainOrder()
Whether to respect the domain order produced by the
Meta source
when generated domain DDL. |
DDLExportConfiguration |
respectDomainOrder(boolean newRespectDomainOrder)
Whether to respect the sequence order produced by the
Meta source
when generated sequence DDL. |
boolean |
respectIndexOrder()
Whether to respect the index order produced by the
Meta source
when generated index DDL. |
DDLExportConfiguration |
respectIndexOrder(boolean newRespectIndexOrder)
Whether to respect the index order produced by the
Meta source
when generated index DDL. |
boolean |
respectSchemaOrder()
Whether to respect the schema order produced by the
Meta source
when generated schema DDL. |
DDLExportConfiguration |
respectSchemaOrder(boolean newRespectSchemaOrder)
Whether to respect the schema order produced by the
Meta source
when generated schema DDL. |
boolean |
respectSequenceOrder()
Whether to respect the sequence order produced by the
Meta source
when generated sequence DDL. |
DDLExportConfiguration |
respectSequenceOrder(boolean newRespectSequenceOrder)
Whether to respect the sequence order produced by the
Meta source
when generated sequence DDL. |
boolean |
respectTableOrder()
Whether to respect the table order produced by the
Meta source
when generated table DDL. |
DDLExportConfiguration |
respectTableOrder(boolean newRespectTableOrder)
Whether to respect the table order produced by the
Meta source
when generated table DDL. |
public DDLExportConfiguration()
public final DDLExportConfiguration flags(DDLFlag... newFlags)
DDLFlag
that are enabled on this configuration.public final DDLExportConfiguration flags(Collection<DDLFlag> newFlags)
DDLFlag
that are enabled on this configuration.public final boolean createSchemaIfNotExists()
CREATE SCHEMA IF NOT EXISTS
statements.
Not all RDBMS support this flag. Check
DSLContext.createSchemaIfNotExists(Schema)
to see if your
SQLDialect
supports the clause.
public final DDLExportConfiguration createSchemaIfNotExists(boolean newCreateSchemaIfNotExists)
CREATE SCHEMA IF NOT EXISTS
statements.public final boolean createTableIfNotExists()
CREATE TABLE IF NOT EXISTS
statements.
Not all RDBMS support this flag. Check
DSLContext.createTableIfNotExists(Table)
to see if your
SQLDialect
supports the clause.
public final DDLExportConfiguration createTableIfNotExists(boolean newCreateTableIfNotExists)
CREATE TABLE IF NOT EXISTS
statements.public final boolean createIndexIfNotExists()
CREATE INDEX IF NOT EXISTS
statements.
Not all RDBMS support this flag. Check
DSLContext.createIndexIfNotExists(Index)
to see if your
SQLDialect
supports the clause.
public final DDLExportConfiguration createIndexIfNotExists(boolean newCreateIndexIfNotExists)
CREATE INDEX IF NOT EXISTS
statements.public final boolean createDomainIfNotExists()
CREATE DOMAIN IF NOT EXISTS
statements.
Not all RDBMS support this flag. Check
DSLContext.createDomainIfNotExists(Domain)
to see if your
SQLDialect
supports the clause.
public final DDLExportConfiguration createDomainIfNotExists(boolean newCreateDomainIfNotExists)
CREATE DOMAIN IF NOT EXISTS
statements.public final boolean createSequenceIfNotExists()
CREATE SEQUENCE IF NOT EXISTS
statements.
Not all RDBMS support this flag. Check
DSLContext.createSequenceIfNotExists(Sequence)
to see if your
SQLDialect
supports the clause.
public final DDLExportConfiguration createSequenceIfNotExists(boolean newCreateSequenceIfNotExists)
CREATE SEQUENCE IF NOT EXISTS
statements.public final boolean createViewIfNotExists()
CREATE VIEW IF NOT EXISTS
statements.
Not all RDBMS support this flag. Check
DSLContext.createViewIfNotExists(Table, Field...)
to see if your
SQLDialect
supports the clause.
public final DDLExportConfiguration createViewIfNotExists(boolean newCreateViewIfNotExists)
CREATE VIEW IF NOT EXISTS
statements.public final boolean createOrReplaceView()
CREATE OR REPLACE VIEW
statements.
Not all RDBMS support this flag. Check
DSLContext.createOrReplaceView(Table, Field...)
to see if your
SQLDialect
supports the clause.
public final DDLExportConfiguration createOrReplaceView(boolean newCreateOrReplaceView)
CREATE OR REPLACE VIEW
statements.public final boolean respectCatalogOrder()
Meta
source
when generated catalog DDL.public final DDLExportConfiguration respectCatalogOrder(boolean newRespectCatalogOrder)
Meta
source
when generated catalog DDL.public final boolean respectSchemaOrder()
Meta
source
when generated schema DDL.public final DDLExportConfiguration respectSchemaOrder(boolean newRespectSchemaOrder)
Meta
source
when generated schema DDL.public final boolean respectTableOrder()
Meta
source
when generated table DDL.public final DDLExportConfiguration respectTableOrder(boolean newRespectTableOrder)
Meta
source
when generated table DDL.public final boolean respectColumnOrder()
Meta
source
when generated column DDL.public final DDLExportConfiguration respectColumnOrder(boolean newRespectColumnOrder)
Meta
source
when generated column DDL.public final boolean respectConstraintOrder()
Meta
source
when generated constraint DDL.public final DDLExportConfiguration respectConstraintOrder(boolean newRespectConstraintOrder)
Meta
source
when generated constraint DDL.public final boolean respectIndexOrder()
Meta
source
when generated index DDL.public final DDLExportConfiguration respectIndexOrder(boolean newRespectIndexOrder)
Meta
source
when generated index DDL.public final boolean respectDomainOrder()
Meta
source
when generated domain DDL.public final DDLExportConfiguration respectDomainOrder(boolean newRespectDomainOrder)
Meta
source
when generated sequence DDL.public final boolean respectSequenceOrder()
Meta
source
when generated sequence DDL.public final DDLExportConfiguration respectSequenceOrder(boolean newRespectSequenceOrder)
Meta
source
when generated sequence DDL.public final boolean defaultSequenceFlags()
public final DDLExportConfiguration defaultSequenceFlags(boolean newDefaultSequenceFlags)
public final boolean includeConstraintsOnViews()
public final DDLExportConfiguration includeConstraintsOnViews(boolean newIncludeConstraintsOnViews)
Copyright © 2021. All rights reserved.