X - The concrete builder typepublic interface CommonQueryBuilder<X extends CommonQueryBuilder<X>> extends ServiceProvider, ConfigurationSource, ParameterHolder<X>
| Modifier and Type | Method and Description |
|---|---|
CriteriaBuilderFactory |
getCriteriaBuilderFactory()
The criteria builder factory that created this or it's parent builder.
|
javax.persistence.metamodel.Metamodel |
getMetamodel()
Returns the JPA
Metamodel of the persistence unit which is used by this query builder. |
boolean |
isCacheable()
Returns whether the query result should be cached.
|
X |
registerMacro(String macroName,
JpqlMacro jpqlMacro)
Registers the given jpql macro for this query builder.
|
X |
setCacheable(boolean cacheable)
Configures whether the query result should be cached.
|
X |
setProperties(Map<String,String> properties)
Overwrites the properties with the given set of properties.
|
X |
setProperty(String propertyName,
String propertyValue)
Sets a configuration property with the given propertyName to the given propertyValue.
|
getServicegetProperties, getPropertycontainsParameter, getParameter, getParameters, getParameterValue, isParameterSet, setParameter, setParameter, setParameter, setParameterTypejavax.persistence.metamodel.Metamodel getMetamodel()
Metamodel of the persistence unit which is used by this query builder.CriteriaBuilderFactory getCriteriaBuilderFactory()
X registerMacro(String macroName, JpqlMacro jpqlMacro)
macroName - The name of the macrojpqlMacro - The jpql macroX setProperty(String propertyName, String propertyValue)
propertyName - The name of the propertypropertyValue - The value of the propertyX setProperties(Map<String,String> properties)
properties - The new propertiesX setCacheable(boolean cacheable)
cacheable - Whether the query result should be cachedboolean isCacheable()
Copyright © 2014–2018 Blazebit. All rights reserved.