Package org.teiid.translator.jdbc
Class JDBCUpdateExecution
- java.lang.Object
-
- org.teiid.translator.jdbc.JDBCBaseExecution
-
- org.teiid.translator.jdbc.JDBCUpdateExecution
-
- All Implemented Interfaces:
Execution,UpdateExecution
public class JDBCUpdateExecution extends JDBCBaseExecution implements UpdateExecution
-
-
Field Summary
-
Fields inherited from class org.teiid.translator.jdbc.JDBCBaseExecution
command, connection, context, executionFactory, fetchSize, statement, trimString
-
-
Constructor Summary
Constructors Constructor Description JDBCUpdateExecution(Command command, Connection connection, ExecutionContext context, JDBCExecutionFactory env)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()int[]execute(BatchedUpdates batchedCommand)int[]getUpdateCounts()voidsetAtomic(boolean atomic)voidsetMaxPreparedInsertBatchSize(int maxPreparedInsertBatchSize)-
Methods inherited from class org.teiid.translator.jdbc.JDBCBaseExecution
addStatementWarnings, bind, cancel, close, getCallableStatement, getConnection, getPreparedStatement, getStatement, setSizeContraints, translateCommand
-
-
-
-
Constructor Detail
-
JDBCUpdateExecution
public JDBCUpdateExecution(Command command, Connection connection, ExecutionContext context, JDBCExecutionFactory env)
-
-
Method Detail
-
execute
public void execute() throws TranslatorException- Specified by:
executein interfaceExecution- Throws:
TranslatorException
-
execute
public int[] execute(BatchedUpdates batchedCommand) throws TranslatorException
- Throws:
TranslatorException
-
getUpdateCounts
public int[] getUpdateCounts() throws DataNotAvailableException, TranslatorException- Specified by:
getUpdateCountsin interfaceUpdateExecution- Throws:
DataNotAvailableExceptionTranslatorException
-
setMaxPreparedInsertBatchSize
public void setMaxPreparedInsertBatchSize(int maxPreparedInsertBatchSize)
-
setAtomic
public void setAtomic(boolean atomic)
-
-