com.jpattern.orm.query.sql
Class PlainSqlListBatchUpdateQuery

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

public class PlainSqlListBatchUpdateQuery
extends Object
implements SqlBatchUpdateQuery

Author:
Francesco Cina 09/lug/2011

Constructor Summary
PlainSqlListBatchUpdateQuery(SessionSqlPerformer session, List<String> sqls)
           
 
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

PlainSqlListBatchUpdateQuery

public PlainSqlListBatchUpdateQuery(SessionSqlPerformer session,
                                    List<String> sqls)
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.