public class DDLCreator extends Object
| Constructor and Description |
|---|
DDLCreator(ExecutionContext executionContext)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
createDDL(DataModel datamodel,
Session session,
WorkingTableScope temporaryTableScope,
RowIdSupport rowIdSupport,
String workingTableSchema)
Creates the DDL for the working-tables.
|
boolean |
createDDL(DataModel datamodel,
Session session,
WorkingTableScope temporaryTableScope,
String workingTableSchema)
Creates the DDL for the working-tables.
|
boolean |
createDDL(DataSource dataSource,
DBMS dbms,
WorkingTableScope temporaryTableScope,
String workingTableSchema)
Creates the DDL for the working-tables.
|
void |
createDDL(Session localSession,
WorkingTableScope temporaryTableScope,
String workingTableSchema)
Creates the DDL for the working-tables.
|
String |
getTableInConflict(DataSource dataSource,
DBMS dbms)
Checks for conflicts of existing tables and working-tables.
|
boolean |
isPresent(Session session)
Checks whether working-tables schema is present.
|
boolean |
isUptodate(DataSource dataSource,
DBMS dbms,
boolean useRowId,
String workingTableSchema)
Checks whether working-tables schema is up-to-date.
|
boolean |
isUptodate(Session session,
boolean useRowId,
String workingTableSchema)
Checks whether working-tables schema is up-to-date.
|
public DDLCreator(ExecutionContext executionContext)
executionContext - the command line argumentspublic boolean createDDL(DataSource dataSource, DBMS dbms, WorkingTableScope temporaryTableScope, String workingTableSchema) throws SQLException, FileNotFoundException, IOException
public void createDDL(Session localSession, WorkingTableScope temporaryTableScope, String workingTableSchema) throws FileNotFoundException, IOException, SQLException
public boolean createDDL(DataModel datamodel, Session session, WorkingTableScope temporaryTableScope, String workingTableSchema) throws FileNotFoundException, IOException, SQLException
public boolean createDDL(DataModel datamodel, Session session, WorkingTableScope temporaryTableScope, RowIdSupport rowIdSupport, String workingTableSchema) throws FileNotFoundException, IOException, SQLException
public boolean isUptodate(DataSource dataSource, DBMS dbms, boolean useRowId, String workingTableSchema)
useRowId - workingTableSchema - true if working-tables schema is up-to-datepublic boolean isUptodate(Session session, boolean useRowId, String workingTableSchema)
useRowId - workingTableSchema - true if working-tables schema is up-to-datepublic boolean isPresent(Session session)
true if working-tables schema is presentpublic String getTableInConflict(DataSource dataSource, DBMS dbms)
null