|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 wrapMethod Detail |
---|
public Transaction beginTransaction() throws EpPersistenceException
beginTransaction
in interface PersistenceSession
EpPersistenceException
- in case of any errorpublic void close() throws EpPersistenceException
close
in interface PersistenceSession
EpPersistenceException
- in case of any errorpublic Query createQuery(java.lang.String queryString) throws EpPersistenceException
createQuery
in interface PersistenceSession
queryString
- the query string
EpPersistenceException
- in case of any errorpublic Query createSQLQuery(java.lang.String queryString) throws EpPersistenceException
createSQLQuery
in interface PersistenceSession
queryString
- the query string
EpPersistenceException
- in case of any errorpublic void save(Persistence object) throws EpPersistenceException
save
in interface PersistenceSession
object
- the object
EpPersistenceException
- in case of any errorpublic void update(Persistence object) throws EpPersistenceException
update
in interface PersistenceSession
object
- the object
EpPersistenceException
- in case of any error
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |