KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > infoglue > cms > entities > management > InfoGlueProperty


1 /* ===============================================================================
2 *
3 * Part of the InfoGlue Content Management Platform (www.infoglue.org)
4 *
5 * ===============================================================================
6 *
7 * Copyright (C)
8 *
9 * This program is free software; you can redistribute it and/or modify it under
10 * the terms of the GNU General Public License version 2, as published by the
11 * Free Software Foundation. See the file LICENSE.html for more information.
12 *
13 * This program is distributed in the hope that it will be useful, but WITHOUT
14 * ANY WARRANTY, including the implied warranty of MERCHANTABILITY or FITNESS
15 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License along with
18 * this program; if not, write to the Free Software Foundation, Inc. / 59 Temple
19 * Place, Suite 330 / Boston, MA 02111-1307 / USA.
20 *
21 * ===============================================================================
22 */

23
24 package org.infoglue.cms.entities.management;
25
26 import org.infoglue.cms.entities.kernel.BaseEntityVO;
27
28 /**
29  * This class represents an implementation of a property.
30  *
31  * @author Mattias Bogeblad
32  *
33  * @hibernate.class table="Property"
34  */

35
36 public class InfoGlueProperty implements CastorProperty
37 {
38     private Integer JavaDoc id;
39     private String JavaDoc nameSpace;
40     private String JavaDoc name;
41     private String JavaDoc value;
42     private String JavaDoc comment = "No comment";
43     
44     /**
45      * @hibernate.id generator-class="native" type="long" column="id" unsaved-value="null"
46      *
47      * @return long
48      */

49     public Integer JavaDoc getId()
50     {
51         return this.id;
52     }
53     
54     public void setId(Integer JavaDoc id)
55     {
56         this.id = id;
57     }
58     
59     /**
60      * @hibernate.property name="getNameSpace" column="nameSpace" type="string" not-null="false" unique="false"
61      *
62      * @return String
63      */

64     public String JavaDoc getNameSpace()
65     {
66         return nameSpace;
67     }
68
69     public void setNameSpace(String JavaDoc nameSpace)
70     {
71         this.nameSpace = nameSpace;
72     }
73
74     /**
75      * @hibernate.property name="getName" column="name" type="string" not-null="false" unique="false"
76      *
77      * @return String
78      */

79     public String JavaDoc getName()
80     {
81         return name;
82     }
83
84     public void setName(String JavaDoc name)
85     {
86         this.name = name;
87     }
88
89     /**
90      * @hibernate.property name="getValue" column="value" type="clob" not-null="false" unique="false"
91      *
92      * @return String
93      */

94     public String JavaDoc getValue()
95     {
96         return value;
97     }
98
99     public void setValue(String JavaDoc value)
100     {
101         this.value = value;
102     }
103
104     public String JavaDoc getComment()
105     {
106         return comment;
107     }
108
109     public void setComment(String JavaDoc comment)
110     {
111         this.comment = comment;
112     }
113
114     public Object JavaDoc getIdAsObject()
115     {
116         // TODO Auto-generated method stub
117
return null;
118     }
119
120     public BaseEntityVO getVO()
121     {
122         // TODO Auto-generated method stub
123
return null;
124     }
125
126     public void setVO(BaseEntityVO valueObject)
127     {
128         // TODO Auto-generated method stub
129

130     }
131 }
Popular Tags