X
- The concrete builder typepublic interface CommonQueryBuilder<X extends CommonQueryBuilder<X>>
Modifier and Type | Method and Description |
---|---|
boolean |
containsParameter(String name)
Returns true if a parameter with the given name is registered, otherwise false.
|
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. |
javax.persistence.Parameter<?> |
getParameter(String name)
Returns the parameter object representing the parameter with the given name if
containsParameter(java.lang.String) returns true, otherwise null. |
Set<? extends javax.persistence.Parameter<?>> |
getParameters()
Returns a set of all registered parameters.
|
Object |
getParameterValue(String name)
Returns the set value for the parameter with the given name.
|
boolean |
isParameterSet(String name)
Returns true if a parameter with the given name is registered and a value has been set, otherwise false.
|
X |
setParameter(String name,
Calendar value,
javax.persistence.TemporalType temporalType)
Sets the given
Calendar value as the value for the parameter with the given name. |
X |
setParameter(String name,
Date value,
javax.persistence.TemporalType temporalType)
Sets the given
Date value as the value for the parameter with the given name. |
X |
setParameter(String name,
Object value)
Sets the given value as the value for the parameter with the given name.
|
javax.persistence.metamodel.Metamodel getMetamodel()
Metamodel
of the persistence unit which is used by this query builder.CriteriaBuilderFactory getCriteriaBuilderFactory()
X setParameter(String name, Object value)
name
- The name of the parameter which should be setvalue
- The value of the parameter that should be setX setParameter(String name, Calendar value, javax.persistence.TemporalType temporalType)
Calendar
value as the value for the parameter with the given name.name
- The name of the parameter which should be setvalue
- The value of the parameter that should be settemporalType
- The temporal type of the valueX setParameter(String name, Date value, javax.persistence.TemporalType temporalType)
Date
value as the value for the parameter with the given name.name
- The name of the parameter which should be setvalue
- The value of the parameter that should be settemporalType
- The temporal type of the valueboolean containsParameter(String name)
name
- The name of the parameter that should be checkedboolean isParameterSet(String name)
name
- The name of the parameter that should be checkedjavax.persistence.Parameter<?> getParameter(String name)
containsParameter(java.lang.String)
returns true, otherwise null.name
- The name of the parameter that should be returnedSet<? extends javax.persistence.Parameter<?>> getParameters()
Object getParameterValue(String name)
name
- The name of the parameter for which the value should be returnedCopyright © 2015 Blazebit. All Rights Reserved.