private class MovieDAOImpl.QueryLogger<T> extends Object
Modifier and Type | Field and Description |
---|---|
private String |
jpaql |
private Integer |
limit |
private Integer |
offset |
private String |
orderBy |
private Map<String,Object> |
params |
private Class<T> |
resultType |
Constructor and Description |
---|
QueryLogger(String jpaql,
Class<T> resultType) |
Modifier and Type | Method and Description |
---|---|
List<T> |
getResultList() |
T |
getSingleResult() |
protected TypedQuery<T> |
makeQuery() |
MovieDAOImpl.QueryLogger<T> |
setFirstResult(int offset) |
MovieDAOImpl.QueryLogger<T> |
setMaxResults(int limit) |
void |
setOrderBy(String orderBy) |
MovieDAOImpl.QueryLogger<T> |
setParameter(String key,
Date value,
TemporalType ttype) |
MovieDAOImpl.QueryLogger<T> |
setParameter(String key,
Object value) |
String |
toString() |
private String jpaql
private String orderBy
private Integer offset
private Integer limit
public MovieDAOImpl.QueryLogger<T> setParameter(String key, Object value)
public MovieDAOImpl.QueryLogger<T> setParameter(String key, Date value, TemporalType ttype)
public MovieDAOImpl.QueryLogger<T> setFirstResult(int offset)
public MovieDAOImpl.QueryLogger<T> setMaxResults(int limit)
public void setOrderBy(String orderBy)
public T getSingleResult()
protected TypedQuery<T> makeQuery()
Copyright © 2015 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.