KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > cayenne > tutorial > tapestry > Visit


1 package cayenne.tutorial.tapestry;
2
3 import java.io.Serializable JavaDoc;
4
5 import org.objectstyle.cayenne.access.DataContext;
6
7 /**
8  * The artist application session object. Each user
9  * visit has its own cayenne data context.
10  *
11  * @author Eric Schneider
12  */

13
14 public class Visit implements Serializable JavaDoc {
15
16     private DataContext dataContext;
17
18     public Visit() {
19         super();
20         dataContext = DataContext.createDataContext();
21     }
22
23     public DataContext getDataContext() {
24         return dataContext;
25     }
26 }
27
Popular Tags