| Modifier and Type | Field and Description |
|---|---|
| public static boolean | CHECK_EXISTENCE
Flag to disable table existence check before create. |
| public static final String | DEFAULT_IDENTITY_GENERATOR
Default identity generator sequence name. |
| protected boolean | |
| protected String | |
| protected List |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| protected void | buildConstraints(SchemaManager schemaManager, boolean build)
Convert any field constraint to constraint objects. |
| public void | |
| public void | |
| public void | createConstraints(DatabaseSession session, SchemaManager schemaManager, boolean build)
Create constraints. |
| public void | createConstraints(List<TableDefinition> tables, DatabaseSession session, SchemaManager schemaManager, boolean build)
Create constraints. |
| public void | |
| public void | createTables(DatabaseSession session, SchemaManager schemaManager)
This creates the tables on the database. |
| public void | createTables(DatabaseSession session, SchemaManager schemaManager, boolean build)
This creates the tables on the database. |
| public void | createTables(final DatabaseSession
Active database session. session, final SchemaManager Database schema manipulation manager. schemaManager, final boolean Whether to build constraints. build, final boolean Whether to check for tables existence. check, final boolean Whether to create sequence tables. createSequenceTables, final boolean Whether to create sequences. createSequences)This creates the tables on the database. |
| public void | |
| public void | dropConstraints(DatabaseSession session, SchemaManager schemaManager)
Drop the table constraints from the database. |
| public void | dropConstraints(DatabaseSession session, SchemaManager schemaManager, boolean build)
Drop the table constraints from the database. |
| public void | |
| public void | |
| public void | dropTables(final DatabaseSession
Active database session. session, final SchemaManager Database schema manipulation manager. schemaManager, final boolean Whether to build constraints. build)Drop the tables from the database. |
| public void | extendTables(DatabaseSession session, SchemaManager schemaManager)
Create or extend the tables on the database. |
| public void | extendTables(final DatabaseSession
Active database session. session, final SchemaManager Database schema manipulation manager. schemaManager, final boolean Whether to build constraints. build)This creates/extends the tables on the database. |
| protected void | |
| public String | |
| protected String | Returns: the qualified table nameThis returns the Sequence Table's qualified name, without delimiting. |
| public List | |
| public void | |
| public void | replaceTables(DatabaseSession session, SchemaManager schemaManager)
Recreate the tables on the database. |
| public void | replaceTables(DatabaseSession session, SchemaManager schemaManager, boolean createSequenceTables)
Recreate the tables on the database. |
| public void | replaceTables(DatabaseSession session, SchemaManager schemaManager, boolean createSequenceTables, boolean createSequences)
Recreate the tables on the database. |
| protected void | replaceTablesAndConstraints(SchemaManager schemaManager, DatabaseSession session, boolean createSequenceTables, boolean createSequences)
|
| protected void | |
| public void | setIgnoreDatabaseException(boolean ignoreDatabaseException)
Set flag whether DatabaseException should be ignored. |
| public void | |
| public void | |
| public boolean |
| CHECK_EXISTENCE | back to summary |
|---|---|
| public static boolean CHECK_EXISTENCE Flag to disable table existence check before create. | |
| DEFAULT_IDENTITY_GENERATOR | back to summary |
|---|---|
| public static final String DEFAULT_IDENTITY_GENERATOR Default identity generator sequence name.
Copy of value from JPA: | |
| ignoreDatabaseException | back to summary |
|---|---|
| protected boolean ignoreDatabaseException | |
| name | back to summary |
|---|---|
| protected String name | |
| tableDefinitions | back to summary |
|---|---|
| protected List<TableDefinition> tableDefinitions | |
| TableCreator | back to summary |
|---|---|
| public TableCreator() | |
| TableCreator | back to summary |
|---|---|
| public TableCreator(List<TableDefinition> tableDefinitions) | |
| addTableDefinition | back to summary |
|---|---|
| public void addTableDefinition(TableDefinition tableDefinition) Add the table. | |
| addTableDefinitions | back to summary |
|---|---|
| public void addTableDefinitions(Collection<TableDefinition> tableDefs) Add a set of tables. | |
| buildConstraints | back to summary |
|---|---|
| protected void buildConstraints(SchemaManager schemaManager, boolean build) Convert any field constraint to constraint objects. | |
| createConstraints | back to summary |
|---|---|
| public void createConstraints(DatabaseSession session) Create constraints. | |
| createConstraints | back to summary |
|---|---|
| public void createConstraints(DatabaseSession session, SchemaManager schemaManager) Create constraints. | |
| createConstraints | back to summary |
|---|---|
| public void createConstraints(DatabaseSession session, SchemaManager schemaManager, boolean build) Create constraints. | |
| createConstraints | back to summary |
|---|---|
| public void createConstraints(List<TableDefinition> tables, DatabaseSession session, SchemaManager schemaManager, boolean build) Create constraints. | |
| createTables | back to summary |
|---|---|
| public void createTables(DatabaseSession session) This creates the tables on the database. If the table already exists this will fail. | |
| createTables | back to summary |
|---|---|
| public void createTables(DatabaseSession session, SchemaManager schemaManager) This creates the tables on the database. If the table already exists this will fail. | |
| createTables | back to summary |
|---|---|
| public void createTables(DatabaseSession session, SchemaManager schemaManager, boolean build) This creates the tables on the database. If the table already exists this will fail. | |
| createTables | back to summary |
|---|---|
| public void createTables(final DatabaseSession session, final SchemaManager schemaManager, final boolean build, final boolean check, final boolean createSequenceTables, final boolean createSequences) This creates the tables on the database. If the table already exists this will fail.
| |
| dropConstraints | back to summary |
|---|---|
| public void dropConstraints(DatabaseSession session) Drop the table constraints from the database. | |
| dropConstraints | back to summary |
|---|---|
| public void dropConstraints(DatabaseSession session, SchemaManager schemaManager) Drop the table constraints from the database. | |
| dropConstraints | back to summary |
|---|---|
| public void dropConstraints(DatabaseSession session, SchemaManager schemaManager, boolean build) Drop the table constraints from the database. | |
| dropTables | back to summary |
|---|---|
| public void dropTables(DatabaseSession session) Drop the tables from the database. | |
| dropTables | back to summary |
|---|---|
| public void dropTables(DatabaseSession session, SchemaManager schemaManager) Drop the tables from the database. | |
| dropTables | back to summary |
|---|---|
| public void dropTables(final DatabaseSession session, final SchemaManager schemaManager, final boolean build) Drop the tables from the database.
| |
| extendTables | back to summary |
|---|---|
| public void extendTables(DatabaseSession session, SchemaManager schemaManager) Create or extend the tables on the database. This will alter existing tables to add missing fields or create the table otherwise. It will also create Sequences tables and objects. | |
| extendTables | back to summary |
|---|---|
| public void extendTables(final DatabaseSession session, final SchemaManager schemaManager, final boolean build) This creates/extends the tables on the database.
| |
| extendTablesAndConstraints | back to summary |
|---|---|
| protected void extendTablesAndConstraints(SchemaManager schemaManager, DatabaseSession session) | |
| getName | back to summary |
|---|---|
| public String getName() Return the name. | |
| getSequenceTableName | back to summary |
|---|---|
| protected String getSequenceTableName(Session session) This returns the Sequence Table's qualified name, without delimiting.
| |
| getTableDefinitions | back to summary |
|---|---|
| public List Return the tables. | |
| replaceTables | back to summary |
|---|---|
| public void replaceTables(DatabaseSession session) Recreate the tables on the database. This will drop the tables if they exist and recreate them. | |
| replaceTables | back to summary |
|---|---|
| public void replaceTables(DatabaseSession session, SchemaManager schemaManager) Recreate the tables on the database. This will drop the tables if they exist and recreate them. | |
| replaceTables | back to summary |
|---|---|
| public void replaceTables(DatabaseSession session, SchemaManager schemaManager, boolean createSequenceTables) Recreate the tables on the database. This will drop the tables if they exist and recreate them. | |
| replaceTables | back to summary |
|---|---|
| public void replaceTables(DatabaseSession session, SchemaManager schemaManager, boolean createSequenceTables, boolean createSequences) Recreate the tables on the database. This will drop the tables if they exist and recreate them. | |
| replaceTablesAndConstraints | back to summary |
|---|---|
| protected void replaceTablesAndConstraints(SchemaManager schemaManager, DatabaseSession session, boolean createSequenceTables, boolean createSequences) | |
| replaceTablesAndConstraints | back to summary |
|---|---|
| protected void replaceTablesAndConstraints(SchemaManager schemaManager, DatabaseSession session) | |
| setIgnoreDatabaseException | back to summary |
|---|---|
| public void setIgnoreDatabaseException(boolean ignoreDatabaseException) Set flag whether DatabaseException should be ignored. | |
| setName | back to summary |
|---|---|
| public void setName(String name) Set the name. | |
| setTableDefinitions | back to summary |
|---|---|
| public void setTableDefinitions(List<TableDefinition> tableDefinitions) Set the tables. | |
| shouldIgnoreDatabaseException | back to summary |
|---|---|
| public boolean shouldIgnoreDatabaseException() Return true if DatabaseException is to be ignored. | |