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

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

public class SqlUpdate
extends Object
implements ISqlUpdate

Author:
Francesco Cina 09/lug/2011

Constructor Summary
SqlUpdate(ISessionSqlPerformer session, String sql, Object[] args)
           
 
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.
 int perform()
          Execute the statement and return the numbers of rows affected.
 void setQueryTimeout(int queryTimeout)
          Set the query timeout for the query.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SqlUpdate

public SqlUpdate(ISessionSqlPerformer session,
                 String sql,
                 Object[] args)
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

perform

public int perform()
Description copied from interface: ISqlUpdate
Execute the statement and return the numbers of rows affected.

Specified by:
perform in interface ISqlUpdate
Returns:


Copyright © 2011. All Rights Reserved.