public abstract class JDBCBaseExecution extends Object implements org.teiid.translator.Execution
| Modifier and Type | Field and Description |
|---|---|
protected org.teiid.language.Command |
command |
protected Connection |
connection |
protected org.teiid.translator.ExecutionContext |
context |
protected JDBCExecutionFactory |
executionFactory |
protected int |
fetchSize |
protected Statement |
statement |
protected boolean |
trimString |
| Modifier | Constructor and Description |
|---|---|
protected |
JDBCBaseExecution(org.teiid.language.Command command,
Connection connection,
org.teiid.translator.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() |
void |
close() |
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(org.teiid.language.Command command) |
protected Connection connection
protected org.teiid.translator.ExecutionContext context
protected JDBCExecutionFactory executionFactory
protected org.teiid.language.Command command
protected boolean trimString
protected int fetchSize
protected volatile Statement statement
protected JDBCBaseExecution(org.teiid.language.Command command,
Connection connection,
org.teiid.translator.ExecutionContext context,
JDBCExecutionFactory jef)
protected void bind(PreparedStatement stmt, List<?> params, List<?> batchValues) throws SQLException
SQLExceptionprotected TranslatedCommand translateCommand(org.teiid.language.Command command) throws org.teiid.translator.TranslatorException
org.teiid.translator.TranslatorExceptionpublic void close()
close in interface org.teiid.translator.Executionpublic void cancel()
throws org.teiid.translator.TranslatorException
cancel in interface org.teiid.translator.Executionorg.teiid.translator.TranslatorExceptionprotected 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.