com.googlecode.jpattern.orm.query
Interface IQuery

All Superinterfaces:
IRenderableSqlObject
All Known Subinterfaces:
IBaseOrmQuery, IOrmCustomQuery, IOrmQuery<T>, ISqlQuery
All Known Implementing Classes:
ABaseOrmQuery, AQuery, OrmCustomQuery, OrmQuery, SqlQuery

public interface IQuery
extends IRenderableSqlObject

Author:
Francesco Cina 07/lug/2011

Method Summary
 void appendValues(List<Object> values)
          Append to the list all the values of the expression's elements
 int getMaxRows()
          Return the max rows for this query.
 int getQueryTimeout()
          Return the query timeout for the query.
 IQuery setMaxRows(int maxRows)
          Set the maximum number of rows to return in the query.
 IQuery setQueryTimeout(int queryTimeout)
          Set the query timeout for the query.
 
Methods inherited from interface com.googlecode.jpattern.orm.query.IRenderableSqlObject
renderSql, renderSql
 

Method Detail

getMaxRows

int getMaxRows()
               throws OrmException
Return the max rows for this query.

Returns:
Throws:
OrmException

setMaxRows

IQuery setMaxRows(int maxRows)
                  throws OrmException
Set the maximum number of rows to return in the query.

Parameters:
maxRows -
Returns:
Throws:
OrmException

setQueryTimeout

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


getQueryTimeout

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


appendValues

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



Copyright © 2011. All Rights Reserved.