com.jpattern.orm.query.sql
Class PlainPSCreatorSqlUpdate

java.lang.Object
  extended by com.jpattern.orm.query.sql.PlainPSCreatorSqlUpdate
All Implemented Interfaces:
QueryRoot, SqlBatchUpdateQuery, SqlExecuteQuery

public class PlainPSCreatorSqlUpdate
extends Object
implements SqlBatchUpdateQuery

Author:
Francesco Cina 09/lug/2011

Constructor Summary
PlainPSCreatorSqlUpdate(SessionSqlPerformer session, String sql, BatchPreparedStatementSetter psc)
           
 
Method Summary
 void execute()
          execute the sql statement and doesn't return any information about the rows modified.
 int getQueryTimeout()
          Return the query timeout for the query.
 void setQueryTimeout(int queryTimeout)
          Set the query timeout for the query.
 int[] update()
          Execute the statement and return an array of the number of rows affected by each statement.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlainPSCreatorSqlUpdate

public PlainPSCreatorSqlUpdate(SessionSqlPerformer session,
                               String sql,
                               BatchPreparedStatementSetter psc)
Method Detail

execute

public void execute()
Description copied from interface: SqlExecuteQuery
execute the sql statement and doesn't return any information about the rows modified.

Specified by:
execute in interface SqlExecuteQuery

setQueryTimeout

public void setQueryTimeout(int queryTimeout)
Description copied from interface: SqlExecuteQuery
Set the query timeout for the query.

Specified by:
setQueryTimeout in interface SqlExecuteQuery

getQueryTimeout

public int getQueryTimeout()
Description copied from interface: SqlExecuteQuery
Return the query timeout for the query.

Specified by:
getQueryTimeout in interface SqlExecuteQuery

update

public int[] update()
Description copied from interface: SqlBatchUpdateQuery
Execute the statement and return an array of the number of rows affected by each statement.

Specified by:
update in interface SqlBatchUpdateQuery
Returns:


Copyright © 2013. All Rights Reserved.