KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > za > org > coefficient > modules > workflow > WorkflowXMLData


1 /*
2  * Coefficient - facilitates project based collaboration
3  * Copyright (C) 2003, Dylan Etkin, CSIR icomtek
4  * PO Box 395
5  * Pretoria 0001, RSA
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18  */

19
20 package za.org.coefficient.modules.workflow;
21
22
23 /**
24  * @hibernate.class
25  * table="COEFFICIENT_WORKFLOW_XML"
26  */

27 public class WorkflowXMLData implements java.io.Serializable JavaDoc {
28     //~ Instance fields ========================================================
29

30     private String JavaDoc name;
31     private byte[] data;
32     private long id;
33
34     //~ Constructors ===========================================================
35

36     public WorkflowXMLData() {
37     }
38
39     public WorkflowXMLData(String JavaDoc name, byte[] bytes) {
40         this.name = name;
41         this.data = bytes;
42     }
43
44     //~ Methods ================================================================
45

46     /**
47      * Sets the value of data
48      *
49      * @param argData Value to assign to this.data
50      */

51     public void setData(byte[] argData) {
52         this.data = argData;
53     }
54
55     /**
56      * Gets the value of data
57      *
58      * @return the value of data
59      * @hibernate.property
60      * type="binary"
61      * length="1147483647"
62      * column="DATA"
63      */

64     public byte[] getData() {
65         return this.data;
66     }
67
68     public void setId(long id) {
69         this.id = id;
70     }
71
72     /**
73      * @hibernate.id
74      * generator-class="native"
75      */

76     public long getId() {
77         return id;
78     }
79
80     /**
81      * Sets the value of name
82      *
83      * @param argName Value to assign to this.name
84      */

85     public void setName(String JavaDoc argName) {
86         this.name = argName;
87     }
88
89     /**
90      * Gets the value of name
91      *
92      * @return the value of name
93      * @hibernate.property
94      * unique="true"
95      * column="NAME"
96      */

97     public String JavaDoc getName() {
98         return this.name;
99     }
100 }
101
Popular Tags