KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > roller > business > hibernate > HibernatePersistenceSession


1 package org.roller.business.hibernate;
2
3 import net.sf.hibernate.Session;
4
5 import org.roller.model.PersistenceSession;
6 import org.roller.pojos.UserData;
7
8 /**
9  * @author David M Johnson
10  */

11 public class HibernatePersistenceSession implements PersistenceSession
12 {
13     private Session session = null;
14     private UserData user = null;
15     public HibernatePersistenceSession(UserData user, Session session)
16     {
17         this.user = user;
18         this.session = session;
19     }
20     public Object JavaDoc getSessionObject()
21     {
22         return session;
23     }
24     public void setSessionObject(Object JavaDoc newSession)
25     {
26         this.session = (Session)session;
27     }
28     public UserData getUser()
29     {
30         return user;
31     }
32     public void setUser(UserData user)
33     {
34         this.user = user;
35     }
36 }
37
38
39
Popular Tags