com.jpattern.orm.query.sql
Class PlainGKReaderSqlUpdateQuery

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

public class PlainGKReaderSqlUpdateQuery
extends Object
implements SqlUpdateQuery

Author:
Francesco Cina 09/lug/2011

Constructor Summary
PlainGKReaderSqlUpdateQuery(SessionSqlPerformer session, String sql, GeneratedKeyReader generatedKeyReader, 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

PlainGKReaderSqlUpdateQuery

public PlainGKReaderSqlUpdateQuery(SessionSqlPerformer session,
                                   String sql,
                                   GeneratedKeyReader generatedKeyReader,
                                   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.