com.googlecode.jpattern.orm.query
Interface IUpdate

All Superinterfaces:
IRenderableSqlObject
All Known Implementing Classes:
OrmUpdate

public interface IUpdate
extends IRenderableSqlObject

Author:
Francesco Cina 10/lug/2011

Method Summary
 void appendValues(List<Object> values)
          Append to the list all the values of the expression's elements
 int getQueryTimeout()
          Return the query timeout for the query.
 int perform()
          Perform the update and return the number of affected rows.
 ISetClause set()
          Create or modify the "SET" clause of the update statement.
 IUpdate setQueryTimeout(int queryTimeout)
          Set the query timeout for the query.
 IExpression where()
          Create or modify the "WHERE" clause of the statement.
 
Methods inherited from interface com.googlecode.jpattern.orm.query.IRenderableSqlObject
renderSql, renderSql
 

Method Detail

set

ISetClause set()
Create or modify the "SET" clause of the update statement.

Returns:

where

IExpression where()
Create or modify the "WHERE" clause of the statement.

Returns:

perform

int perform()
Perform the update and return the number of affected rows.

Returns:

appendValues

void appendValues(List<Object> values)
Append to the list all the values of the expression's elements


setQueryTimeout

IUpdate setQueryTimeout(int queryTimeout)
Set the query timeout for the query.


getQueryTimeout

int getQueryTimeout()
Return the query timeout for the query.



Copyright © 2011. All Rights Reserved.