public static class LoadContext.Query extends java.lang.Object implements DataLoadContextQuery, java.io.Serializable
| Constructor and Description |
|---|
Query(java.lang.String queryString) |
| Modifier and Type | Method and Description |
|---|---|
LoadContext.Query |
copy()
Creates a copy of this Query instance.
|
boolean |
equals(java.lang.Object o) |
int |
getFirstResult() |
int |
getMaxResults() |
java.util.Map<java.lang.String,java.lang.Object> |
getParameters() |
java.lang.String |
getQueryString() |
int |
hashCode() |
boolean |
isCacheable() |
LoadContext.Query |
setCacheable(boolean cacheable)
Indicates that the query results should be cached.
|
LoadContext.Query |
setFirstResult(int firstResult) |
LoadContext.Query |
setMaxResults(int maxResults) |
LoadContext.Query |
setParameter(java.lang.String name,
java.util.Date value,
javax.persistence.TemporalType temporalType)
Set value for a parameter of java.util.Date type.
|
LoadContext.Query |
setParameter(java.lang.String name,
java.lang.Object value)
Set value for a query parameter.
|
LoadContext.Query |
setParameters(java.util.Map<java.lang.String,java.lang.Object> parameters) |
LoadContext.Query |
setQueryString(java.lang.String queryString) |
java.lang.String |
toString() |
public Query(java.lang.String queryString)
queryString - JPQL query string. Only named parameters are supported.public java.lang.String getQueryString()
public LoadContext.Query setQueryString(java.lang.String queryString)
queryString - JPQL query string. Only named parameters are supported.public LoadContext.Query setParameter(java.lang.String name, java.lang.Object value)
setParameter in interface DataLoadContextQueryname - parameter namevalue - parameter valuepublic LoadContext.Query setParameter(java.lang.String name, java.util.Date value, javax.persistence.TemporalType temporalType)
setParameter in interface DataLoadContextQueryname - parameter namevalue - date valuetemporalType - temporal typepublic java.util.Map<java.lang.String,java.lang.Object> getParameters()
getParameters in interface DataLoadContextQuerypublic LoadContext.Query setParameters(java.util.Map<java.lang.String,java.lang.Object> parameters)
setParameters in interface DataLoadContextQueryparameters - map of the query parameterspublic LoadContext.Query setFirstResult(int firstResult)
setFirstResult in interface DataLoadContextQueryfirstResult - results offsetpublic LoadContext.Query setMaxResults(int maxResults)
setMaxResults in interface DataLoadContextQuerymaxResults - results limitpublic LoadContext.Query setCacheable(boolean cacheable)
public int getFirstResult()
getFirstResult in interface DataLoadContextQuerypublic int getMaxResults()
getMaxResults in interface DataLoadContextQuerypublic boolean isCacheable()
public LoadContext.Query copy()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object