public interface DefinitionFactory
CREATE
statements).| Modifier and Type | Method and Description |
|---|---|
CheckConstraint |
createCheckConstraint(BooleanExpression check)
Creates a
CHECK clause, typically used in CREATE TABLE statements. |
ColumnDefinition |
createColumnDefinition(String columnName,
SQLDataType columnDataType)
Creates a new definition of column with specified name and data type.
|
ColumnDefinition |
createColumnDefinition(String columnName,
SQLDataType columnDataType,
Boolean mayBeNull)
Creates a new definition of column with specified name, data type, and
NULL value policy. |
ColumnDefinition |
createColumnDefinition(String columnName,
SQLDataType columnDataType,
Boolean mayBeNull,
AutoGenerationPolicy autoGenerationPolicy)
Creates a new definition of column with specified name, data type,
NULL value policy, and auto generation
policy. |
ColumnDefinition |
createColumnDefinition(String columnName,
SQLDataType columnDataType,
String columnDefault)
Creates a new definition of column with specified name, data type, default value.
|
ColumnDefinition |
createColumnDefinition(String columnName,
SQLDataType columnDataType,
String columnDefault,
Boolean mayBeNull)
Creates a new definition of column with specified name, data type, default value, and
NULL value policy. |
ForeignKeyConstraintBuilder |
createForeignKeyConstraintBuilder()
Creates an empty builder for
FOREIGN KEY constraint, typically used in CREATE TABLE statements. |
LikeClause |
createLikeClause(TableNameDirect tableName)
Creates a new
LIKE
<table name> clause for CREATE TABLE statement. |
RegularViewSpecification |
createRegularViewSpecification(String... columnNames)
Creates a new view specification with given columns.
|
SchemaDefinitionBuilder |
createSchemaDefinitionBuilder()
Creates an empty builder for
CREATE SCHEMA statement. |
TableConstraintDefinition |
createTableConstraintDefinition(String name,
TableConstraint constraint)
Creates a new, named table constraint without any
ConstraintCharacteristics. |
TableConstraintDefinition |
createTableConstraintDefinition(String name,
TableConstraint constraint,
ConstraintCharacteristics characteristics)
Creates a new named table constraint with specified
ConstraintCharacteristics. |
TableConstraintDefinition |
createTableConstraintDefinition(TableConstraint constraint)
Creates a new unnamed table constraint without any
ConstraintCharacteristics. |
TableConstraintDefinition |
createTableConstraintDefinition(TableConstraint constraint,
ConstraintCharacteristics characteristics)
Creates a new unnamed table constraint with specified
ConstraintCharacteristics. |
TableDefinitionBuilder |
createTableDefinitionBuilder()
Creates an empty builder for
CREATE TABLE statement. |
TableElementListBuilder |
createTableElementListBuilder()
Creates an empty builder for defining columns and constraints for
CREATE TABLE statement. |
UniqueConstraintBuilder |
createUniqueConstraintBuilder()
Creates an empty builder for unique constraint (either
UNIQUE(columns...) or
PRIMARY KEY(columns...)), typically used in CREATE TABLE statements. |
ViewDefinitionBuilder |
createViewDefinitionBuilder()
Creates an empty builder for
CREATE VIEW statement. |
SchemaDefinitionBuilder createSchemaDefinitionBuilder()
CREATE SCHEMA statement.CREATE SCHEMA statement.TableDefinitionBuilder createTableDefinitionBuilder()
CREATE TABLE statement.CREATE TABLE statement.TableElementListBuilder createTableElementListBuilder()
CREATE TABLE statement.CREATE TABLE statement.TableDefinitionColumnDefinition createColumnDefinition(String columnName, SQLDataType columnDataType)
#createColumnDefinition(String, String, String, Boolean) and pass null and true
as last two parameters (meaning that there is no default value for column, and it may have NULL values).columnName - The name of the column.columnDataType - The data type of the column.#createColumnDefinition(String, String, String, Boolean)ColumnDefinition createColumnDefinition(String columnName, SQLDataType columnDataType, Boolean mayBeNull)
NULL value policy. Invoking this
method is equivalent to invoking #createColumnDefinition(String, String, String, Boolean) and pass
null and mayBeNull as last two parameters (meaning that there is no default value for column).columnName - The name of the column.columnDataType - The data type of the column.mayBeNull - The NULL value policy. Setting this to false is same as specifying
NOT NULL in column definition in SQL.NULL value
policy.#createColumnDefinition(String, String, String, Boolean)ColumnDefinition createColumnDefinition(String columnName, SQLDataType columnDataType, String columnDefault)
#createColumnDefinition(String, String, String, Boolean) and pass
columnDefault and true as last two parameters (meaning that column may have NULL values).columnName - The name of the column.columnDataType - The data type of the column.columnDefault - The default value of the column.#createColumnDefinition(String, String, String, Boolean)ColumnDefinition createColumnDefinition(String columnName, SQLDataType columnDataType, String columnDefault, Boolean mayBeNull)
NULL value policy.
Invoking this method is equivalent to invoking
#createColumnDefinition(String, SQLDataType, String, Boolean, AutoGenerationPolicy) and pass null
as last parameter.columnName - The name of the column.columnDataType - The data type of the column.columnDefault - The default value of the column.mayBeNull - The NULL value policy for the column. Setting this to false is same as
specifying NOT NULL in column definition in SQL.NULL value policy.ColumnDefinition createColumnDefinition(String columnName, SQLDataType columnDataType, Boolean mayBeNull, AutoGenerationPolicy autoGenerationPolicy)
NULL value policy, and auto generation
policy.columnName - The name of the column.columnDataType - The data type of the column.mayBeNull - The NULL value policy for the column. Setting this to false is same as
specifying NOT NULL in column definition in SQL.autoGenerationPolicy - The policy for auto generation for this column. Should be null if the column
should not be marked as automatically generated.NULL
value policy, and auto generation policy.LikeClause createLikeClause(TableNameDirect tableName)
LIKE
<table name> clause for CREATE TABLE statement.tableName - The name of the target table.LIKE
<table name> clause for CREATE TABLE statement.TableConstraintDefinition createTableConstraintDefinition(TableConstraint constraint)
ConstraintCharacteristics. Invoking this method is
equivalent to invoking
createTableConstraintDefinition(String, TableConstraint, ConstraintCharacteristics) and passing
nulls as first and last parameters.constraint - The constraint for the table.ConstraintCharacteristics.#createColumnDefinition(String, String, String, Boolean)TableConstraintDefinition createTableConstraintDefinition(String name, TableConstraint constraint)
ConstraintCharacteristics. Invoking this method is
equivalent to invoking
createTableConstraintDefinition(String, TableConstraint, ConstraintCharacteristics) and passing
null as last parameter.name - The name for the constraint.constraint - The constraint for the table.ConstraintCharacteristics.#createColumnDefinition(String, String, String, Boolean)TableConstraintDefinition createTableConstraintDefinition(TableConstraint constraint, ConstraintCharacteristics characteristics)
ConstraintCharacteristics. Invoking this method is
equivalent to invoking
createTableConstraintDefinition(String, TableConstraint, ConstraintCharacteristics) and passing
null as first parameter.constraint - The constraint for the table.characteristics - The constraint characteristics for the constraint.ConstraintCharacteristics.#createColumnDefinition(String, String, String, Boolean),
ConstraintCharacteristicsTableConstraintDefinition createTableConstraintDefinition(String name, TableConstraint constraint, ConstraintCharacteristics characteristics)
ConstraintCharacteristics.name - The name for the constraint.constraint - The constraint for the table.characteristics - The characteristics for the constraint.ConstraintCharacteristics.ConstraintCharacteristicsCheckConstraint createCheckConstraint(BooleanExpression check)
CHECK clause, typically used in CREATE TABLE statements.check - The boolean expression for check.CHECK clause, typically used in CREATE TABLE statements.UniqueConstraintBuilder createUniqueConstraintBuilder()
UNIQUE(columns...) or
PRIMARY KEY(columns...)), typically used in CREATE TABLE statements.UNIQUE(columns...) or
PRIMARY KEY(columns...)).ForeignKeyConstraintBuilder createForeignKeyConstraintBuilder()
FOREIGN KEY constraint, typically used in CREATE TABLE statements.FOREIGN KEY constraint.ForeignKeyConstraintBuilder,
ForeignKeyConstraintViewDefinitionBuilder createViewDefinitionBuilder()
CREATE VIEW statement.CREATE VIEW statement.ViewDefinitionBuilder,
ViewDefinitionRegularViewSpecification createRegularViewSpecification(String... columnNames)
columnNames - The names of the columns.RegularViewSpecification.RegularViewSpecificationCopyright © 2010-2012. All Rights Reserved.