org.teiid.connector.jdbc
Class JDBCUpdateExecution
java.lang.Object
org.teiid.connector.basic.BasicExecution
org.teiid.connector.jdbc.JDBCBaseExecution
org.teiid.connector.jdbc.JDBCUpdateExecution
- All Implemented Interfaces:
- Execution, UpdateExecution
public class JDBCUpdateExecution
- extends JDBCBaseExecution
- implements UpdateExecution
Methods inherited from class org.teiid.connector.jdbc.JDBCBaseExecution |
addStatementWarnings, bindPreparedStatementValues, cancel, close, getCallableStatement, getConnection, getPreparedStatement, getSqlTranslator, getStatement, setSizeContraints, translateCommand |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JDBCUpdateExecution
public JDBCUpdateExecution(ICommand command,
java.sql.Connection connection,
Translator sqlTranslator,
ConnectorLogger logger,
java.util.Properties props,
ExecutionContext context)
- Parameters:
connection
- sqlTranslator
- logger
- props
- id
-
execute
public void execute()
throws ConnectorException
- Description copied from interface:
Execution
- Execute the associated command. Results will be retrieved through a specific sub-interface call.
- Specified by:
execute
in interface Execution
- Throws:
ConnectorException
execute
public int[] execute(IBatchedUpdates batchedCommand)
throws ConnectorException
- Throws:
ConnectorException
- Since:
- 4.2
- See Also:
com.metamatrix.data.api.BatchedUpdatesExecution#execute(org.teiid.connector.language.ICommand[])
getUpdateCounts
public int[] getUpdateCounts()
throws DataNotAvailableException,
ConnectorException
- Description copied from interface:
UpdateExecution
- Returns the update counts for the execution.
- Specified by:
getUpdateCounts
in interface UpdateExecution
- Returns:
- the update counts corresponding to the command executed
- Throws:
DataNotAvailableException
ConnectorException
Copyright © 2009. All Rights Reserved.