|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PersistenceSession
The perisistence session interface. It provides more control than PersistenceEngine
. For example, you can control the transaction
programmatically.
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 sql query based on the given query string. |
void |
save(Persistence object)
Save the given object. |
void |
update(Persistence object)
Update the given object. |
Method Detail |
---|
Transaction beginTransaction() throws EpPersistenceException
EpPersistenceException
- in case of any errorvoid close() throws EpPersistenceException
EpPersistenceException
- in case of any errorQuery createQuery(java.lang.String queryString) throws EpPersistenceException
queryString
- the query string
EpPersistenceException
- in case of any errorQuery createSQLQuery(java.lang.String queryString) throws EpPersistenceException
queryString
- the query string
EpPersistenceException
- in case of any errorvoid save(Persistence object) throws EpPersistenceException
object
- the object
EpPersistenceException
- in case of any errorvoid update(Persistence object) throws EpPersistenceException
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 |