|
ColdBox Platform Version 3.7.0 | ||||
FRAMES |
WEB-INF.cftags.componentcoldbox.system.orm.hibernate.BaseBuilder
coldbox.system.orm.hibernate.CriteriaBuilder
public class CriteriaBuilder
Constructor Summary | |
---|---|
init(string entityName, [boolean useQueryCaching='false'], [string queryCacheRegion=''])
|
Method Summary | |
---|---|
array |
GETCRITERIAS()
|
string |
GETQUERYCACHEREGION()
|
boolean |
GETUSEQUERYCACHING()
|
void |
SETCRITERIAS(array criterias)
|
void |
SETQUERYCACHEREGION(string queryCacheRegion)
|
void |
SETUSEQUERYCACHING(boolean useQueryCaching)
|
any |
cache(boolean cache='true', [string cacheRegion])
|
any |
cacheRegion(string cacheRegion)
|
numeric |
count([any propertyName=''])
Get the record count using hibernate projections for the given criterias |
any |
createSubcriteria(string entityName, [string alias=''])
|
any |
fetchSize(numeric fetchSize)
|
any |
firstResult(numeric firstResult)
|
any |
get()
|
private any |
getORMUtil()
Get ORM Util |
any |
list([numeric offset='0'], [numeric max='0'], [numeric timeout='0'], [string sortOrder=''], [boolean ignoreCase='false'], [boolean asQuery='false'])
Execute the criteria queries you have defined and return the results, you can pass optional parameters or define them via our methods |
any |
maxResults(numeric maxResults)
|
any |
onMissingMethod(string missingMethodName, struct missingMethodArguments)
|
any |
readOnly([boolean readOnly='true'])
|
any |
timeout(numeric timeout)
|
Methods inherited from class WEB-INF.cftags.component |
---|
|
Constructor Detail |
---|
public init(string entityName, [boolean useQueryCaching='false'], [string queryCacheRegion=''])
entityName
useQueryCaching
queryCacheRegion
Method Detail |
---|
public array GETCRITERIAS()
public string GETQUERYCACHEREGION()
public boolean GETUSEQUERYCACHING()
public void SETCRITERIAS(array criterias)
criterias
public void SETQUERYCACHEREGION(string queryCacheRegion)
queryCacheRegion
public void SETUSEQUERYCACHING(boolean useQueryCaching)
useQueryCaching
public any cache(boolean cache='true', [string cacheRegion])
cache
cacheRegion
public any cacheRegion(string cacheRegion)
cacheRegion
public numeric count([any propertyName=''])
propertyName
- The name of the property to do the count on or do it for all row results insteadpublic any createSubcriteria(string entityName, [string alias=''])
entityName
alias
public any fetchSize(numeric fetchSize)
fetchSize
public any firstResult(numeric firstResult)
firstResult
public any get()
private any getORMUtil()
public any list([numeric offset='0'], [numeric max='0'], [numeric timeout='0'], [string sortOrder=''], [boolean ignoreCase='false'], [boolean asQuery='false'])
offset
max
timeout
sortOrder
ignoreCase
asQuery
public any maxResults(numeric maxResults)
maxResults
public any onMissingMethod(string missingMethodName, struct missingMethodArguments)
missingMethodName
missingMethodArguments
public any readOnly([boolean readOnly='true'])
readOnly
public any timeout(numeric timeout)
timeout
|
ColdBox Platform Version 3.7.0 | ||||
FRAMES |