public class JDBCUpdateExecution extends JDBCBaseExecution implements UpdateExecution
command, connection, context, executionFactory, fetchSize, statement, trimString
Constructor and Description |
---|
JDBCUpdateExecution(Command command,
Connection connection,
ExecutionContext context,
JDBCExecutionFactory env) |
Modifier and Type | Method and Description |
---|---|
void |
execute()
Execute the associated command.
|
int[] |
execute(BatchedUpdates batchedCommand) |
int[] |
getUpdateCounts()
Returns the update counts for the execution.
|
addStatementWarnings, bind, cancel, close, getCallableStatement, getConnection, getPreparedStatement, getStatement, setSizeContraints, translateCommand
public JDBCUpdateExecution(Command command, Connection connection, ExecutionContext context, JDBCExecutionFactory env)
connection
- sqlTranslator
- logger
- props
- id
- public void execute() throws TranslatorException
Execution
execute
in interface Execution
TranslatorException
public int[] execute(BatchedUpdates batchedCommand) throws TranslatorException
TranslatorException
public int[] getUpdateCounts() throws DataNotAvailableException, TranslatorException
UpdateExecution
getUpdateCounts
in interface UpdateExecution
DataNotAvailableException
TranslatorException
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.