KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > shark > instancepersistence > HibernateDeadline


1 /*
2  * Shark Hibernate persistent layer - Open Wide
3  */

4
5 package org.enhydra.shark.instancepersistence;
6
7 import org.enhydra.shark.api.internal.instancepersistence.DeadlinePersistenceInterface;
8 import org.enhydra.shark.utilities.hibernate.HibernateGeneric;
9 import org.enhydra.shark.utilities.hibernate.HibernateObjectUtil;
10
11 /**
12  * Simple Hibernate POJO class
13  * @author Vladislav Pernin
14  */

15 public class HibernateDeadline extends HibernateObjectUtil implements DeadlinePersistenceInterface, HibernateGeneric {
16
17    private String JavaDoc processId;
18    private String JavaDoc activityId;
19    private long timeLimit;
20    private String JavaDoc exceptionName;
21    private boolean isSynchronous;
22    
23    private int dbId = -1;
24    
25    public int getDbId() {
26     return dbId;
27    }
28
29    public void setDbId(int dbId) {
30     this.dbId = dbId;
31    }
32
33    public void setProcessId (String JavaDoc procId) {
34       this.processId=procId;
35    }
36
37    public String JavaDoc getProcessId () {
38       return processId;
39    }
40
41    public void setActivityId (String JavaDoc actId) {
42       this.activityId=actId;
43    }
44
45    public String JavaDoc getActivityId () {
46       return activityId;
47    }
48
49    public void setTimeLimit (long timeLimit) {
50       this.timeLimit=timeLimit;
51    }
52
53    public long getTimeLimit () {
54       return timeLimit;
55    }
56
57    public void setExceptionName (String JavaDoc exceptionName) {
58       this.exceptionName=exceptionName;
59    }
60
61    public String JavaDoc getExceptionName () {
62       return exceptionName;
63    }
64
65    public void setSynchronous (boolean synchronous) {
66       this.isSynchronous=synchronous;
67    }
68
69    public boolean isSynchronous () {
70       return isSynchronous;
71    }
72
73 }
74
Popular Tags