public class DDLCreator
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
lastDDL |
static java.lang.String |
uPK |
static boolean |
uPKWasTooLong |
| Constructor and Description |
|---|
DDLCreator(ExecutionContext executionContext)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
createDDL(DataModel datamodel,
Session session,
WorkingTableScope temporaryTableScope,
RowIdSupport rowIdSupport,
java.lang.String workingTableSchema)
Creates the DDL for the working-tables.
|
boolean |
createDDL(DataModel datamodel,
Session session,
WorkingTableScope temporaryTableScope,
java.lang.String workingTableSchema)
Creates the DDL for the working-tables.
|
boolean |
createDDL(javax.sql.DataSource dataSource,
DBMS dbms,
WorkingTableScope temporaryTableScope,
java.lang.String workingTableSchema)
Creates the DDL for the working-tables.
|
void |
createDDL(Session localSession,
WorkingTableScope temporaryTableScope,
java.lang.String workingTableSchema)
Creates the DDL for the working-tables.
|
java.lang.String |
getTableInConflict(javax.sql.DataSource dataSource,
DBMS dbms)
Checks for conflicts of existing tables and working-tables.
|
boolean |
isUptodate(javax.sql.DataSource dataSource,
DBMS dbms,
boolean useRowId,
boolean useRowIdsOnlyForTablesWithoutPK,
java.lang.String workingTableSchema)
Checks whether working-tables schema is up-to-date.
|
boolean |
isUptodate(Session session,
boolean useRowId,
boolean useRowIdsOnlyForTablesWithoutPK,
java.lang.String workingTableSchema)
Checks whether working-tables schema is up-to-date.
|
public static volatile boolean uPKWasTooLong
public static volatile java.lang.String uPK
public static java.lang.String lastDDL
public DDLCreator(ExecutionContext executionContext)
executionContext - the command line argumentspublic boolean createDDL(javax.sql.DataSource dataSource,
DBMS dbms,
WorkingTableScope temporaryTableScope,
java.lang.String workingTableSchema)
throws java.sql.SQLException,
java.io.FileNotFoundException,
java.io.IOException
java.sql.SQLExceptionjava.io.FileNotFoundExceptionjava.io.IOExceptionpublic void createDDL(Session localSession, WorkingTableScope temporaryTableScope, java.lang.String workingTableSchema) throws java.io.FileNotFoundException, java.io.IOException, java.sql.SQLException
java.io.FileNotFoundExceptionjava.io.IOExceptionjava.sql.SQLExceptionpublic boolean createDDL(DataModel datamodel, Session session, WorkingTableScope temporaryTableScope, java.lang.String workingTableSchema) throws java.io.FileNotFoundException, java.io.IOException, java.sql.SQLException
java.io.FileNotFoundExceptionjava.io.IOExceptionjava.sql.SQLExceptionpublic boolean createDDL(DataModel datamodel, Session session, WorkingTableScope temporaryTableScope, RowIdSupport rowIdSupport, java.lang.String workingTableSchema) throws java.io.FileNotFoundException, java.io.IOException, java.sql.SQLException
java.io.FileNotFoundExceptionjava.io.IOExceptionjava.sql.SQLExceptionpublic boolean isUptodate(javax.sql.DataSource dataSource,
DBMS dbms,
boolean useRowId,
boolean useRowIdsOnlyForTablesWithoutPK,
java.lang.String workingTableSchema)
useRowId - workingTableSchema - true if working-tables schema is up-to-datepublic boolean isUptodate(Session session, boolean useRowId, boolean useRowIdsOnlyForTablesWithoutPK, java.lang.String workingTableSchema)
useRowId - workingTableSchema - true if working-tables schema is up-to-datepublic java.lang.String getTableInConflict(javax.sql.DataSource dataSource,
DBMS dbms)
null