|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.elasticpath.persistence.impl.HibernateSessionImpl
public class HibernateSessionImpl
The hibernate implementation of a Session in ElasticPath. It is a wrap of org.hibernate.Session.
| Constructor Summary | |
|---|---|
HibernateSessionImpl(org.hibernate.Session session)
The default constructor. |
|
| Method Summary | |
|---|---|
Transaction |
beginTransaction()
Begins a transaction. |
void |
close()
Close the session. |
Query |
createQuery(java.lang.String queryString)
Creates and returns a query based on the given query string. |
Query |
createSQLQuery(java.lang.String queryString)
Creates and returns a query based on the given query string. |
void |
save(Persistence object)
Save the given object. |
void |
update(Persistence object)
Update the given object. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HibernateSessionImpl(org.hibernate.Session session)
session - the hibernate session to wrap| Method Detail |
|---|
public Transaction beginTransaction()
throws EpPersistenceException
beginTransaction in interface PersistenceSessionEpPersistenceException - in case of any error
public void close()
throws EpPersistenceException
close in interface PersistenceSessionEpPersistenceException - in case of any error
public Query createQuery(java.lang.String queryString)
throws EpPersistenceException
createQuery in interface PersistenceSessionqueryString - the query string
EpPersistenceException - in case of any error
public Query createSQLQuery(java.lang.String queryString)
throws EpPersistenceException
createSQLQuery in interface PersistenceSessionqueryString - the query string
EpPersistenceException - in case of any error
public void save(Persistence object)
throws EpPersistenceException
save in interface PersistenceSessionobject - the object
EpPersistenceException - in case of any error
public void update(Persistence object)
throws EpPersistenceException
update in interface PersistenceSessionobject - the object
EpPersistenceException - in case of any error
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||