|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.elasticpath.persistence.impl.HibernateQueryImpl
public class HibernateQueryImpl
The hibernate implementation of a query in ElasticPath. It is a wrap of org.hibernate.Query
.
Constructor Summary | |
---|---|
HibernateQueryImpl(org.hibernate.Query query)
The default constructor. |
Method Summary | |
---|---|
java.util.List |
list()
Return the query results as a List. |
void |
setFetchSize(int fetchSize)
Set a fetch size for the underlying JDBC query. |
void |
setMaxResults(int maxResults)
Set the maximum number of rows to retrieve. |
void |
setParameter(int position,
java.lang.Object val)
Bind a value to a JDBC-style query parameter. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HibernateQueryImpl(org.hibernate.Query query)
query
- the hibernate queryMethod Detail |
---|
public java.util.List list() throws EpPersistenceException
list
in interface Query
EpPersistenceException
- in case of errorspublic void setFetchSize(int fetchSize)
setFetchSize
in interface Query
fetchSize
- the fetch sizepublic void setMaxResults(int maxResults)
setMaxResults
in interface Query
maxResults
- the maximum number of rowspublic void setParameter(int position, java.lang.Object val) throws EpPersistenceException
setParameter
in interface Query
position
- the position of the parameter in the query string, numbered from 0.val
- the non-null parameter value
EpPersistenceException
- if no type could be determined for the parameter
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |