GenerationTarget which exports DDL directly to the database.
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private final DdlTransactionIsolator | |
| private Statement | |
| private static final CoreMessageLogger | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | GenerationTargetToDatabase(DdlTransactionIsolator ddlTransactionIsolator, boolean releaseAfterUse, boolean autocommit)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | accept(String
The command command)Implements org. |
| public void | beforeScript(ScriptSourceInput
The source for the script that is about to be executed. scriptSource)Overrides default org. accept(String).
|
| private Connection | |
| private SqlExceptionHelper | |
| private SqlStatementLogger | |
| private Statement | |
| public void | prepare()
Implements org. |
| public void | release()
Implements org. |
| private static String |
| autocommit | back to summary |
|---|---|
| private final boolean autocommit | |
| ddlTransactionIsolator | back to summary |
|---|---|
| private final DdlTransactionIsolator ddlTransactionIsolator | |
| jdbcStatement | back to summary |
|---|---|
| private Statement jdbcStatement | |
| log | back to summary |
|---|---|
| private static final CoreMessageLogger log | |
| releaseAfterUse | back to summary |
|---|---|
| private final boolean releaseAfterUse | |
| GenerationTargetToDatabase | back to summary |
|---|---|
| public GenerationTargetToDatabase(DdlTransactionIsolator ddlTransactionIsolator) | |
| GenerationTargetToDatabase | back to summary |
|---|---|
| public GenerationTargetToDatabase(DdlTransactionIsolator ddlTransactionIsolator, boolean releaseAfterUse) | |
| GenerationTargetToDatabase | back to summary |
|---|---|
| public GenerationTargetToDatabase(DdlTransactionIsolator ddlTransactionIsolator, boolean releaseAfterUse, boolean autocommit) | |
| accept | back to summary |
|---|---|
| public void accept(String command) Implements org. Doc from org. Accept a command | |
| beforeScript | back to summary |
|---|---|
| public void beforeScript(ScriptSourceInput scriptSource) Overrides default org. Doc from org. Called just before a script is executed using one or more calls to May be used for logging in particular.
| |
| getIsolatedConnection | back to summary |
|---|---|
| private Connection getIsolatedConnection() | |
| getSqlExceptionHelper | back to summary |
|---|---|
| private SqlExceptionHelper getSqlExceptionHelper() | |
| getSqlStatementLogger | back to summary |
|---|---|
| private SqlStatementLogger getSqlStatementLogger() | |
| jdbcStatement | back to summary |
|---|---|
| private Statement jdbcStatement() | |
| prepare | back to summary |
|---|---|
| public void prepare() Implements org. Doc from org. Prepare for accepting actions
| |
| release | back to summary |
|---|---|
| public void release() Implements org. Doc from org. Release this target, giving it a change to release its resources.
| |
| stripSql | back to summary |
|---|---|
| private static String stripSql(SQLException e) Strip repetition of the SQL statement from h2 messages. | |