KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > roller > model > PersistenceSession


1 package org.roller.model;
2
3 import org.roller.pojos.UserData;
4
5 /**
6  * Represents a persistence session; this is the object that a PersistenceStrategy
7  * stores in thread local storage.
8  * @author David M Johnson
9  */

10 public interface PersistenceSession
11 {
12     /** Get underlying persistence session object (e.g. a Hibernate Session) */
13     public Object JavaDoc getSessionObject();
14     
15     /** Set underlying persistence session object */
16     public void setSessionObject(Object JavaDoc newSession);
17     
18     /** Get user associated with this session */
19     public UserData getUser();
20     
21     /** Set user assoicated with this session */
22     public void setUser(UserData user);
23 }
24
Popular Tags