org.teiid.translator.jdbc
Class JDBCBaseExecution
java.lang.Object
org.teiid.translator.jdbc.JDBCBaseExecution
- All Implemented Interfaces:
- Execution
- Direct Known Subclasses:
- JDBCQueryExecution, JDBCUpdateExecution
public abstract class JDBCBaseExecution
- extends java.lang.Object
- implements Execution
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
connection
protected java.sql.Connection connection
context
protected ExecutionContext context
executionFactory
protected JDBCExecutionFactory executionFactory
trimString
protected boolean trimString
fetchSize
protected int fetchSize
statement
protected java.sql.Statement statement
JDBCBaseExecution
protected JDBCBaseExecution(java.sql.Connection connection,
ExecutionContext context,
JDBCExecutionFactory jef)
bindPreparedStatementValues
protected void bindPreparedStatementValues(java.sql.PreparedStatement stmt,
TranslatedCommand tc,
int rowCount)
throws java.sql.SQLException
- Bind the values in the TranslatedCommand to the PreparedStatement
- Throws:
java.sql.SQLException
translateCommand
protected TranslatedCommand translateCommand(Command command)
throws TranslatorException
- Throws:
TranslatorException
close
public void close()
- Description copied from interface:
Execution
- Terminates the execution normally.
- Specified by:
close
in interface Execution
cancel
public void cancel()
throws TranslatorException
- Description copied from interface:
Execution
- Cancels the execution abnormally. This will happen via
a different thread from the one performing the execution, so
should be expected to happen in a multi-threaded scenario.
- Specified by:
cancel
in interface Execution
- Throws:
TranslatorException
setSizeContraints
protected void setSizeContraints(java.sql.Statement statement)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getStatement
protected java.sql.Statement getStatement()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getCallableStatement
protected java.sql.CallableStatement getCallableStatement(java.lang.String sql)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getPreparedStatement
protected java.sql.PreparedStatement getPreparedStatement(java.lang.String sql)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getConnection
public java.sql.Connection getConnection()
- Returns the JDBC connection used by the execution object.
- Returns:
- Returns the connection.
- Since:
- 4.1.1
addStatementWarnings
public void addStatementWarnings()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
Copyright © 2010. All Rights Reserved.