|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.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 query| Method Detail |
|---|
public java.util.List list()
throws EpPersistenceException
list in interface QueryEpPersistenceException - in case of errorspublic void setFetchSize(int fetchSize)
setFetchSize in interface QueryfetchSize - the fetch sizepublic void setMaxResults(int maxResults)
setMaxResults in interface QuerymaxResults - the maximum number of rows
public void setParameter(int position,
java.lang.Object val)
throws EpPersistenceException
setParameter in interface Queryposition - 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 | ||||||||