com.googlecode.jpattern.orm.query.sql
Class SqlListBatchUpdate

java.lang.Object
  extended by com.googlecode.jpattern.orm.query.sql.SqlListBatchUpdate
All Implemented Interfaces:
ISqlBatchUpdate, ISqlExecute

public class SqlListBatchUpdate
extends Object
implements ISqlBatchUpdate

Author:
Francesco Cina 09/lug/2011

Constructor Summary
SqlListBatchUpdate(ISessionSqlPerformer 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

SqlListBatchUpdate

public SqlListBatchUpdate(ISessionSqlPerformer session,
                          List<String> sqls)
Method Detail

execute

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

Specified by:
execute in interface ISqlExecute

setQueryTimeout

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

Specified by:
setQueryTimeout in interface ISqlExecute

getQueryTimeout

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

Specified by:
getQueryTimeout in interface ISqlExecute

update

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

Specified by:
update in interface ISqlBatchUpdate
Returns:


Copyright © 2011. All Rights Reserved.