Package org.teiid.translator.jdbc
Class JDBCUpdateExecution
- java.lang.Object
-
- org.teiid.translator.jdbc.JDBCBaseExecution
-
- org.teiid.translator.jdbc.JDBCUpdateExecution
-
- All Implemented Interfaces:
org.teiid.translator.Execution,org.teiid.translator.UpdateExecution
public class JDBCUpdateExecution extends JDBCBaseExecution implements org.teiid.translator.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(org.teiid.language.Command command, Connection connection, org.teiid.translator.ExecutionContext context, JDBCExecutionFactory env)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()int[]execute(org.teiid.language.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(org.teiid.language.Command command, Connection connection, org.teiid.translator.ExecutionContext context, JDBCExecutionFactory env)
-
-
Method Detail
-
execute
public void execute() throws org.teiid.translator.TranslatorException- Specified by:
executein interfaceorg.teiid.translator.Execution- Throws:
org.teiid.translator.TranslatorException
-
execute
public int[] execute(org.teiid.language.BatchedUpdates batchedCommand) throws org.teiid.translator.TranslatorException- Throws:
org.teiid.translator.TranslatorException
-
getUpdateCounts
public int[] getUpdateCounts() throws org.teiid.translator.DataNotAvailableException, org.teiid.translator.TranslatorException- Specified by:
getUpdateCountsin interfaceorg.teiid.translator.UpdateExecution- Throws:
org.teiid.translator.DataNotAvailableExceptionorg.teiid.translator.TranslatorException
-
setMaxPreparedInsertBatchSize
public void setMaxPreparedInsertBatchSize(int maxPreparedInsertBatchSize)
-
setAtomic
public void setAtomic(boolean atomic)
-
-