KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > shark > repositorypersistence > data > HibernateXPDL


1 /*
2  * Shark Hibernate RepositoryPersistence - Open Wide
3  */

4
5 package org.enhydra.shark.repositorypersistence.data;
6
7 import java.util.ArrayList JavaDoc;
8 import java.util.List JavaDoc;
9
10 /**
11  * Simple POJO class, part of the repository model
12  * @author Vladislav Pernin
13  */

14 public class HibernateXPDL {
15
16     private int id;
17     private String JavaDoc XPDLId = null;
18     private String JavaDoc XPDLVersion = null;
19     private byte[] XPDLContent = {0};
20     private List JavaDoc xpdlReference = new ArrayList JavaDoc();
21     
22     public HibernateXPDL() {
23     }
24
25     public int getId() {
26         return id;
27     }
28
29     public void setId(int id) {
30         this.id = id;
31     }
32     
33     public byte[] getXPDLContent() {
34         return XPDLContent;
35     }
36
37     public void setXPDLContent(byte[] content) {
38         XPDLContent = content;
39     }
40
41     public String JavaDoc getXPDLId() {
42         return XPDLId;
43     }
44
45     public void setXPDLId(String JavaDoc id) {
46         XPDLId = id;
47     }
48
49     public String JavaDoc getXPDLVersion() {
50         return XPDLVersion;
51     }
52
53     public void setXPDLVersion(String JavaDoc version) {
54         XPDLVersion = version;
55     }
56
57     public List JavaDoc getXpdlReference() {
58         return xpdlReference;
59     }
60
61     public void setXpdlReference(List JavaDoc xpdlReference) {
62         this.xpdlReference = xpdlReference;
63     }
64     
65     public void addXpdlReference(String JavaDoc xpdlRefId){
66         xpdlReference.add(xpdlRefId);
67     }
68
69     public void removeXpdlReference(String JavaDoc xpdlRefId){
70         xpdlReference.remove(xpdlRefId);
71     }
72     
73     public String JavaDoc toString() {
74         String JavaDoc retVal = "";
75         retVal += "\nId = "+this.id;
76         retVal += "\nXPDLId = "+this.XPDLId;
77         retVal += "\nXPDLVersion = "+this.XPDLVersion;
78         return retVal;
79     }
80
81 }
Popular Tags