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
SQLException
protected TranslatedCommand translateCommand(Command command) throws TranslatorException
TranslatorException
public void close()
Execution
public void cancel() throws TranslatorException
Execution
cancel
in interface Execution
TranslatorException
protected void setSizeContraints(Statement statement)
protected Statement getStatement() throws SQLException
SQLException
protected CallableStatement getCallableStatement(String sql) throws SQLException
SQLException
protected PreparedStatement getPreparedStatement(String sql) throws SQLException
SQLException
public Connection getConnection()
public void addStatementWarnings() throws SQLException
SQLException
Copyright © 2020. All rights reserved.