org.teiid.connector.jdbc
Class JDBCUpdateExecution

java.lang.Object
  extended by org.teiid.connector.basic.BasicExecution
      extended by org.teiid.connector.jdbc.JDBCBaseExecution
          extended by org.teiid.connector.jdbc.JDBCUpdateExecution
All Implemented Interfaces:
Execution, UpdateExecution

public class JDBCUpdateExecution
extends JDBCBaseExecution
implements UpdateExecution


Field Summary
 
Fields inherited from class org.teiid.connector.jdbc.JDBCBaseExecution
connection, context, fetchSize, id, logger, maxResultRows, sqlTranslator, statement, trimString
 
Constructor Summary
JDBCUpdateExecution(ICommand command, java.sql.Connection connection, Translator sqlTranslator, ConnectorLogger logger, java.util.Properties props, ExecutionContext context)
           
 
Method Summary
 void execute()
          Execute the associated command.
 int[] execute(IBatchedUpdates batchedCommand)
           
 int[] getUpdateCounts()
          Returns the update counts for the execution.
 
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
 
Methods inherited from interface org.teiid.connector.api.Execution
cancel, close
 

Constructor Detail

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 -
Method Detail

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.