com.jpattern.orm.query.sql
Class PlainSqlUpdateQuery

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

public class PlainSqlUpdateQuery
extends Object
implements SqlUpdateQuery

Author:
Francesco Cina 09/lug/2011

Constructor Summary
PlainSqlUpdateQuery(SessionSqlPerformer 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.
 void setQueryTimeout(int queryTimeout)
          Set the query timeout for the query.
 int update()
          Execute the statement and return the numbers of rows affected.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlainSqlUpdateQuery

public PlainSqlUpdateQuery(SessionSqlPerformer session,
                           String sql,
                           Object[] args)
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: SqlUpdateQuery
Execute the statement and return the numbers of rows affected.

Specified by:
update in interface SqlUpdateQuery
Returns:


Copyright © 2013. All Rights Reserved.