com.liferay.portal.dao.orm.jpa
Class QueryImpl
java.lang.Object
com.liferay.portal.dao.orm.jpa.QueryImpl
- All Implemented Interfaces:
- Query
- Direct Known Subclasses:
- SQLQueryImpl
public class QueryImpl
- extends Object
- implements Query
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
entityClass
protected Class<?> entityClass
firstResult
protected int firstResult
flushModeType
protected javax.persistence.FlushModeType flushModeType
maxResults
protected int maxResults
parameterMap
protected Map<Integer,Object> parameterMap
queryString
protected String queryString
sessionImpl
protected SessionImpl sessionImpl
sqlQuery
protected boolean sqlQuery
QueryImpl
public QueryImpl(SessionImpl sessionImpl,
String queryString)
executeUpdate
public int executeUpdate()
throws ORMException
- Specified by:
executeUpdate
in interface Query
- Throws:
ORMException
iterate
public Iterator<?> iterate()
throws ORMException
- Specified by:
iterate
in interface Query
- Throws:
ORMException
iterate
public Iterator<?> iterate(boolean unmodifiable)
throws ORMException
- Specified by:
iterate
in interface Query
- Throws:
ORMException
list
public List<?> list()
throws ORMException
- Specified by:
list
in interface Query
- Throws:
ORMException
list
public List<?> list(boolean unmodifiable)
throws ORMException
- Specified by:
list
in interface Query
- Throws:
ORMException
scroll
public ScrollableResults scroll()
throws ORMException
- Specified by:
scroll
in interface Query
- Throws:
ORMException
setBoolean
public Query setBoolean(int pos,
boolean value)
- Specified by:
setBoolean
in interface Query
setCacheable
public Query setCacheable(boolean cacheable)
- Specified by:
setCacheable
in interface Query
setCacheMode
public Query setCacheMode(CacheMode cacheMode)
- Specified by:
setCacheMode
in interface Query
setCacheRegion
public Query setCacheRegion(String cacheRegion)
- Specified by:
setCacheRegion
in interface Query
setDouble
public Query setDouble(int pos,
double value)
- Specified by:
setDouble
in interface Query
setFirstResult
public Query setFirstResult(int firstResult)
- Specified by:
setFirstResult
in interface Query
setFloat
public Query setFloat(int pos,
float value)
- Specified by:
setFloat
in interface Query
setFlushMode
public Query setFlushMode(javax.persistence.FlushModeType flushModeType)
setInteger
public Query setInteger(int pos,
int value)
- Specified by:
setInteger
in interface Query
setLong
public Query setLong(int pos,
long value)
- Specified by:
setLong
in interface Query
setMaxResults
public Query setMaxResults(int maxResults)
- Specified by:
setMaxResults
in interface Query
setSerializable
public Query setSerializable(int pos,
Serializable value)
- Specified by:
setSerializable
in interface Query
setShort
public Query setShort(int pos,
short value)
- Specified by:
setShort
in interface Query
setString
public Query setString(int pos,
String value)
- Specified by:
setString
in interface Query
setTimestamp
public Query setTimestamp(int pos,
Timestamp value)
- Specified by:
setTimestamp
in interface Query
uniqueResult
public Object uniqueResult()
throws ORMException
- Specified by:
uniqueResult
in interface Query
- Throws:
ORMException