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

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

public class SqlUpdatePSCreator
extends Object
implements ISqlBatchUpdate

Author:
Francesco Cina 09/lug/2011

Constructor Summary
SqlUpdatePSCreator(ISessionSqlPerformer session, String sql, IPreparedStatementCreator 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

SqlUpdatePSCreator

public SqlUpdatePSCreator(ISessionSqlPerformer session,
                          String sql,
                          IPreparedStatementCreator psc)
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.