com.jpattern.orm.query.sql
Interface SqlFindQuery

All Superinterfaces:
BaseFindQuery, CustomQuery, QueryRoot, RenderableSqlQuery
All Known Implementing Classes:
PlainSqlFindQuery

public interface SqlFindQuery
extends CustomQuery, BaseFindQuery

Author:
Francesco Cina 09/lug/2011

Method Summary
 int getMaxRows()
          Return the max rows for this query.
 int getQueryTimeout()
          Return the query timeout for the query.
 SqlFindQuery setMaxRows(int maxRows)
          Set the maximum number of rows to return in the query.
 SqlFindQuery setQueryTimeout(int queryTimeout)
          Set the query timeout for the query.
 
Methods inherited from interface com.jpattern.orm.query.CustomQuery
find, find, findBigDecimal, findBoolean, findDouble, findFloat, findInt, findList, findLong, findString, findUnique, findUnique
 
Methods inherited from interface com.jpattern.orm.query.RenderableSqlQuery
appendValues, renderSql, renderSql
 

Method Detail

getMaxRows

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

Returns:
Throws:
OrmException

setMaxRows

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

Parameters:
maxRows -
Returns:
Throws:
OrmException

setQueryTimeout

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


getQueryTimeout

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



Copyright © 2013. All Rights Reserved.