1 4 5 package org.enhydra.shark.repositorypersistence.data; 6 7 import java.util.ArrayList ; 8 import java.util.List ; 9 10 14 public class HibernateXPDL { 15 16 private int id; 17 private String XPDLId = null; 18 private String XPDLVersion = null; 19 private byte[] XPDLContent = {0}; 20 private List xpdlReference = new ArrayList (); 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 getXPDLId() { 42 return XPDLId; 43 } 44 45 public void setXPDLId(String id) { 46 XPDLId = id; 47 } 48 49 public String getXPDLVersion() { 50 return XPDLVersion; 51 } 52 53 public void setXPDLVersion(String version) { 54 XPDLVersion = version; 55 } 56 57 public List getXpdlReference() { 58 return xpdlReference; 59 } 60 61 public void setXpdlReference(List xpdlReference) { 62 this.xpdlReference = xpdlReference; 63 } 64 65 public void addXpdlReference(String xpdlRefId){ 66 xpdlReference.add(xpdlRefId); 67 } 68 69 public void removeXpdlReference(String xpdlRefId){ 70 xpdlReference.remove(xpdlRefId); 71 } 72 73 public String toString() { 74 String retVal = ""; 75 retVal += "\nId = "+this.id; 76 retVal += "\nXPDLId = "+this.XPDLId; 77 retVal += "\nXPDLVersion = "+this.XPDLVersion; 78 return retVal; 79 } 80 81 } | Popular Tags |