|
|||||||||
| 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 error
void close()
throws EpPersistenceException
EpPersistenceException - in case of any error
Query createQuery(java.lang.String queryString)
throws EpPersistenceException
queryString - the query string
EpPersistenceException - in case of any error
Query createSQLQuery(java.lang.String queryString)
throws EpPersistenceException
queryString - the query string
EpPersistenceException - in case of any error
void save(Persistence object)
throws EpPersistenceException
object - the object
EpPersistenceException - in case of any error
void 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 | ||||||||