|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Session
The entry point of Mirage in stand-alone use.
You can control transaction and access SqlManager through this interface.
In addition, you can manage transaction automaticaly using this interface with OpenSessionInViewFilter.
OpenSessionInViewFilter begin and commit transaction per request.
It rollback transaction if it catches exception. So you can focus on operation of SqlManager.
| Method Summary | |
|---|---|
void |
begin()
Begins the transaction. |
void |
commit()
Commits the transaction. |
SqlManager |
getSqlManager()
Returns the instance of SqlManager. |
boolean |
isRollbackOnly()
Returns whether the current transaction has been marked as rollback-only or not marked. |
void |
release()
Releases this session. |
void |
rollback()
Roolbacks the transaction. |
void |
setRollbackOnly()
Marks the current transation as rollback-only. |
| Method Detail |
|---|
void begin()
SessionExceptionvoid commit()
SessionExceptionvoid rollback()
SessionExceptionvoid release()
SessionExceptionvoid setRollbackOnly()
boolean isRollbackOnly()
SqlManager getSqlManager()
SqlManager.
SessionException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||