com.jpattern.orm.query.find
Interface CustomFindQueryCommon

All Superinterfaces:
BaseFindQuery, CustomQuery, QueryRoot, RenderableSqlQuery
All Known Subinterfaces:
CustomFindOrderBy, CustomFindQuery, CustomFindWhere
All Known Implementing Classes:
CustomFindOrderByImpl, CustomFindQueryOrm, CustomFindWhereImpl

public interface CustomFindQueryCommon
extends BaseFindQuery, CustomQuery

Author:
Francesco Cina 07/lug/2011

Method Summary
 LockMode getLockMode()
          Return the current lock mode
 int getMaxRows()
          Return the max rows for this query.
 int getQueryTimeout()
          Return the query timeout for the query.
 boolean isDistinct()
          return if use Distinct in the select clause
 CustomFindQuery setDistinct(boolean distinct)
          Whether to use Distinct in the select clause
 CustomFindQuery setLockMode(LockMode lockMode)
           
 CustomFindQuery setMaxRows(int maxRows)
          Set the maximum number of rows to return in the query.
 CustomFindQuery setQueryTimeout(int queryTimeout)
          Set the query timeout for the query.
 
Methods inherited from interface com.jpattern.orm.query.RenderableSqlQuery
appendValues, renderSql, renderSql
 
Methods inherited from interface com.jpattern.orm.query.CustomQuery
find, find, findBigDecimal, findBoolean, findDouble, findFloat, findInt, findList, findLong, findString, findUnique, findUnique
 

Method Detail

setDistinct

CustomFindQuery setDistinct(boolean distinct)
                            throws OrmException
Whether to use Distinct in the select clause

Returns:
Throws:
OrmException

isDistinct

boolean isDistinct()
                   throws OrmException
return if use Distinct in the select clause

Returns:
Throws:
OrmException

setLockMode

CustomFindQuery setLockMode(LockMode lockMode)
Parameters:
lockMode -
Returns:

getLockMode

LockMode getLockMode()
Return the current lock mode

Returns:

getMaxRows

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

Returns:
Throws:
OrmException

setMaxRows

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

Parameters:
maxRows -
Returns:
Throws:
OrmException

setQueryTimeout

CustomFindQuery 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.