public abstract class JDBCBaseExecution extends Object implements Execution
| Modifier and Type | Field and Description |
|---|---|
protected Command |
command |
protected Connection |
connection |
protected ExecutionContext |
context |
protected JDBCExecutionFactory |
executionFactory |
protected int |
fetchSize |
protected Statement |
statement |
protected boolean |
trimString |
| Modifier | Constructor and Description |
|---|---|
protected |
JDBCBaseExecution(Command command,
Connection connection,
ExecutionContext context,
JDBCExecutionFactory jef) |
| Modifier and Type | Method and Description |
|---|---|
void |
addStatementWarnings() |
protected void |
bind(PreparedStatement stmt,
List<?> params,
List<?> batchValues)
Bind the values in the TranslatedCommand to the PreparedStatement
|
void |
cancel()
Cancels the execution abnormally.
|
void |
close()
Terminates the execution normally.
|
protected CallableStatement |
getCallableStatement(String sql) |
Connection |
getConnection()
Returns the JDBC connection used by the execution object.
|
protected PreparedStatement |
getPreparedStatement(String sql) |
protected Statement |
getStatement() |
protected void |
setSizeContraints(Statement statement) |
protected TranslatedCommand |
translateCommand(Command command) |
protected Connection connection
protected ExecutionContext context
protected JDBCExecutionFactory executionFactory
protected Command command
protected boolean trimString
protected int fetchSize
protected volatile Statement statement
protected JDBCBaseExecution(Command command, Connection connection, ExecutionContext context, JDBCExecutionFactory jef)
protected void bind(PreparedStatement stmt, List<?> params, List<?> batchValues) throws SQLException
SQLExceptionprotected TranslatedCommand translateCommand(Command command) throws TranslatorException
TranslatorExceptionpublic void close()
Executionpublic void cancel()
throws TranslatorException
Executioncancel in interface ExecutionTranslatorExceptionprotected void setSizeContraints(Statement statement)
protected Statement getStatement() throws SQLException
SQLExceptionprotected CallableStatement getCallableStatement(String sql) throws SQLException
SQLExceptionprotected PreparedStatement getPreparedStatement(String sql) throws SQLException
SQLExceptionpublic Connection getConnection()
public void addStatementWarnings()
throws SQLException
SQLExceptionCopyright © 2018 JBoss by Red Hat. All rights reserved.