X
- The concrete builder typepublic interface ParameterHolder<X extends ParameterHolder<X>>
Modifier and Type | Method and Description |
---|---|
boolean |
containsParameter(String name)
Returns true if a parameter with the given name is registered, otherwise false.
|
javax.persistence.Parameter<?> |
getParameter(String name)
Returns the parameter object representing the parameter with the given name if
containsParameter(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.
|
X |
setParameterType(String name,
Class<?> type)
Updates the type of the parameter with the given name.
|
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(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 returnedX setParameterType(String name, Class<?> type)
name
- The name of the parameter for which the type should be settype
- The value of the parameter that should be setCopyright © 2014–2018 Blazebit. All rights reserved.