|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface NakedObjectSession
Analogous to a Hibernate Session, holds the current set of components for a specific execution context (such as on a thread).
The NakedObjectsContext class (in nof-core) is responsible for locating the current execution context.
NakedObjectSessionFactory| Method Summary | |
|---|---|
void |
closeAll()
Normal lifecycle is managed using callbacks in SessionScopedComponent. |
void |
debug(DebugString debug)
|
void |
debugAll(DebugString debug)
|
void |
debugState(DebugString debug)
|
AuthenticationSession |
getAuthenticationSession()
Returns the AuthenticationSession representing this user
for this NakedObjectSession. |
NakedObjectTransaction |
getCurrentTransaction()
|
java.lang.String |
getId()
A descriptive identifier for this NakedObjectSession. |
PersistenceSession |
getPersistenceSession()
The PersistenceSession within this NakedObjectSession. |
NakedObjectSessionFactory |
getSessionFactory()
The creating factory. |
UserProfile |
getUserProfile()
Returns the adapted Perspective for the user
who is using this NakedObjectSession. |
| Methods inherited from interface org.nakedobjects.metamodel.commons.component.SessionScopedComponent |
|---|
close, open |
| Method Detail |
|---|
NakedObjectSessionFactory getSessionFactory()
factory.
Note that from the factory we can get to
the NakedObjectsSystem, and thus other ApplicationScopedComponents.
void closeAll()
SessionScopedComponent.
This method is to allow the outer ApplicationScopedComponents to
shutdown, closing any and all running NakedObjectSessions.
java.lang.String getId()
NakedObjectSession.
AuthenticationSession getAuthenticationSession()
AuthenticationSession representing this user
for this NakedObjectSession.
PersistenceSession getPersistenceSession()
PersistenceSession within this NakedObjectSession.
Would have been created by the owning factory's
UserProfile getUserProfile()
adapted Perspective for the user
who is using this NakedObjectSession.
NakedObjectTransaction getCurrentTransaction()
void debugAll(DebugString debug)
void debug(DebugString debug)
void debugState(DebugString debug)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||