public interface SearchQueryBuilder
Modifier and Type | Method and Description |
---|---|
void |
addCacheable(org.hibernate.Query query)
Add caching parameter to query
|
SearchResult |
list()
Finds entities using this criteria.
|
SearchQueryBuilder |
setBigDecimal(String name,
BigDecimal val)
Sets the "bigDecimal" parameter for given placeholder.
|
SearchQueryBuilder |
setBoolean(String name,
boolean val)
Sets the "boolean" parameter for given placeholder.
|
SearchQueryBuilder |
setByte(String name,
byte val)
Sets the "byte" parameter for given placeholder.
|
SearchQueryBuilder |
setCacheable(boolean cacheable)
Enable caching of this query result, provided query caching is enabled for the underlying session factory.
|
SearchQueryBuilder |
setDate(String name,
Date val)
Sets the "date" parameter for given placeholder.
|
SearchQueryBuilder |
setDouble(String name,
double val)
Sets the "double" parameter for given placeholder.
|
SearchQueryBuilder |
setEntity(String name,
Entity entity)
Sets the "entity" parameter for given placeholder.
|
SearchQueryBuilder |
setEntity(String name,
String pluginIdentifier,
String modelName,
long id)
Sets the "entity" parameter for given placeholder.
|
SearchQueryBuilder |
setFirstResult(int firstResult)
Sets the first result, by default the first result is equal to zero.
|
SearchQueryBuilder |
setFloat(String name,
float val)
Sets the "float" parameter for given placeholder.
|
SearchQueryBuilder |
setInteger(String name,
int val)
Sets the "integer" parameter for given placeholder.
|
SearchQueryBuilder |
setLong(String name,
long val)
Sets the "long" parameter for given placeholder.
|
SearchQueryBuilder |
setMaxResults(int maxResults)
Sets the max results, by default there is no limit.
|
SearchQueryBuilder |
setParameter(String name,
Object val)
Sets the parameter for given placeholder.
|
SearchQueryBuilder |
setParameterList(String name,
Collection<? extends Object> parameters)
Sets the collection of parameters for given placeholder.
|
SearchQueryBuilder |
setShort(String name,
short val)
Sets the "short" parameter for given placeholder.
|
SearchQueryBuilder |
setString(String name,
String val)
Sets the "string" parameter for given placeholder.
|
SearchQueryBuilder |
setTime(String name,
Date val)
Sets the "time" parameter for given placeholder.
|
SearchQueryBuilder |
setTimestamp(String name,
Date date)
Sets the "timestamp" parameter for given placeholder.
|
Entity |
uniqueResult()
Finds unique entity.
|
void addCacheable(org.hibernate.Query query)
query
- SearchResult list()
SearchQueryBuilder setBigDecimal(String name, BigDecimal val)
name
- placeholderval
- value of the parameterSearchQueryBuilder setBoolean(String name, boolean val)
name
- placeholderval
- value of the parameterSearchQueryBuilder setByte(String name, byte val)
name
- placeholderval
- value of the parameterSearchQueryBuilder setCacheable(boolean cacheable)
cacheable
- SearchQueryBuilder setDate(String name, Date val)
name
- placeholderval
- value of the parameterSearchQueryBuilder setDouble(String name, double val)
name
- placeholderval
- value of the parameterSearchQueryBuilder setEntity(String name, Entity entity)
name
- placeholderentity
- value of the parameterSearchQueryBuilder setEntity(String name, String pluginIdentifier, String modelName, long id)
name
- placeholderid
- entity's idmodelName
- entity's modelpluginIdentifier
- entity's pluginSearchQueryBuilder setFirstResult(int firstResult)
firstResult
- first resultSearchQueryBuilder setFloat(String name, float val)
name
- placeholderval
- value of the parameterSearchQueryBuilder setInteger(String name, int val)
name
- placeholderval
- value of the parameterSearchQueryBuilder setLong(String name, long val)
name
- placeholderval
- value of the parameterSearchQueryBuilder setMaxResults(int maxResults)
maxResults
- max resultsSearchQueryBuilder setParameter(String name, Object val)
name
- placeholderval
- value of the parameterSearchQueryBuilder setParameterList(String name, Collection<? extends Object> parameters)
name
- placeholderval
- collection of values for the parameterSearchQueryBuilder setShort(String name, short val)
name
- placeholderval
- value of the parameterSearchQueryBuilder setString(String name, String val)
name
- placeholderval
- value of the parameterSearchQueryBuilder setTime(String name, Date val)
name
- placeholderval
- value of the parameterSearchQueryBuilder setTimestamp(String name, Date date)
name
- placeholderval
- value of the parameterEntity uniqueResult()
Copyright © 2010-2025 Qcadoo Limited