com.onewebsql.util.jdbc
Class UpdateOp<PH>

java.lang.Object
  extended by com.onewebsql.util.jdbc.UpdateOp<PH>
All Implemented Interfaces:
ConnectionOp<Integer>

public class UpdateOp<PH>
extends Object
implements ConnectionOp<Integer>

Operation which invokes an UPDATE query.


Constructor Summary
UpdateOp(String updateStatement, PH parameters, ParameterHandler<PH> parameterHandler)
          Constructor.
 
Method Summary
 Integer invoke(Connection connection)
          Invokes the operation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpdateOp

public UpdateOp(String updateStatement,
                PH parameters,
                ParameterHandler<PH> parameterHandler)
Constructor.

Parameters:
updateStatement - SQL update statement
SQL - query parameters
parameterHandler - object which converts between Java™ objects and database java.sql.PreparedStatement parameters
Method Detail

invoke

public Integer invoke(Connection connection)
               throws SQLException
Description copied from interface: ConnectionOp
Invokes the operation.

Specified by:
invoke in interface ConnectionOp<Integer>
Parameters:
connection - database connection
Returns:
result of the operation
Throws:
SQLException - if an exception is thrown


Copyright © 2011-2013 e-point SA. All Rights Reserved.