KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > services > portal > log > impl > SessionLogDataDescriptionImpl


1 /***************************************************************************
2  * Copyright 2001-2003 The eXo Platform SARL All rights reserved. *
3  * Please look at license.txt in info directory for more license detail. *
4  **************************************************************************/

5 package org.exoplatform.services.portal.log.impl;
6
7 import java.util.Date JavaDoc ;
8 import org.exoplatform.services.portal.log.SessionLogDataDescription;
9 /**
10  * @author Tuan Nguyen (tuan08@users.sourceforge.net)
11  * @since Dec 2, 2004
12  * @version $Id$
13  * @hibernate.class table="EXO_SESSION_LOG"
14  */

15 public class SessionLogDataDescriptionImpl implements SessionLogDataDescription {
16   private String JavaDoc id ;
17   private String JavaDoc sessionOwner ;
18   private String JavaDoc remoteUser ;
19   private String JavaDoc clientName ;
20   private String JavaDoc ipAddress ;
21   private Date JavaDoc accessTime ;
22   private int duration ;
23   private int errorCount;
24   private int actionCount ;
25   
26   /**
27    * @hibernate.id generator-class="assigned" unsaved-value="null"
28    ***/

29   public String JavaDoc getId() { return id; }
30   public void setId(String JavaDoc s) { id = s ; }
31   
32   /**
33    * @hibernate.property
34    ***/

35   public String JavaDoc getSessionOwner() {return sessionOwner ;}
36   public void setSessionOwner(String JavaDoc s) { sessionOwner = s ;}
37   
38   /**
39    * @hibernate.property
40    ***/

41   public String JavaDoc getRemoteUser() { return remoteUser ; }
42   public void setRemoteUser(String JavaDoc user) { remoteUser = user; }
43
44   /**
45    * @hibernate.property
46    ***/

47   public String JavaDoc getClientName() { return clientName ; }
48   public void setClientName(String JavaDoc client) { clientName = client ; }
49   
50   /**
51    * @hibernate.property
52    ***/

53   public String JavaDoc getIPAddress() { return ipAddress ; }
54   public void setIPAddress(String JavaDoc ip) { ipAddress = ip ; }
55
56   /**
57    * @hibernate.property
58    ***/

59   public Date JavaDoc getAccessTime() { return accessTime ; }
60   public void setAccessTime(Date JavaDoc date) { accessTime = date ; }
61
62   /**
63    * @hibernate.property
64    ***/

65   public int getDuration() { return duration ; }
66   public void setDuration(int time) { duration = time ; }
67   
68   /**
69    * @hibernate.property
70    ***/

71   public int getErrorCount() { return errorCount ; }
72   public void setErrorCount(int number) { errorCount = number ; }
73   
74   /**
75    * @hibernate.property
76    ***/

77   public int getActionCount() { return actionCount ; }
78   public void setActionCount(int number) { actionCount = number ; }
79 }
Popular Tags