KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > infoglue > cms > entities > management > impl > simple > RegistryImpl


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.impl.simple;
25
26
27 import org.infoglue.cms.entities.kernel.BaseEntityVO;
28 import org.infoglue.cms.entities.management.Registry;
29 import org.infoglue.cms.entities.management.RegistryVO;
30
31
32 public class RegistryImpl implements Registry
33 {
34     private RegistryVO valueObject = new RegistryVO();
35
36     public String JavaDoc toString()
37     {
38         return this.valueObject.toString();
39     }
40     
41     public Integer JavaDoc getId()
42     {
43         return this.getRegistryId();
44     }
45     
46     public Object JavaDoc getIdAsObject()
47     {
48         return getId();
49     }
50          
51     public RegistryVO getValueObject()
52     {
53         return this.valueObject;
54     }
55         
56     public void setValueObject(RegistryVO valueObject)
57     {
58         this.valueObject = valueObject;
59     }
60     /**
61      * @see org.infoglue.cms.entities.kernel.BaseEntity#getVO()
62      */

63     public BaseEntityVO getVO()
64     {
65         return (BaseEntityVO) getValueObject();
66     }
67     /**
68      * @see org.infoglue.cms.entities.kernel.BaseEntity#setVO(BaseEntityVO)
69      */

70     public void setVO(BaseEntityVO valueObject)
71     {
72         setValueObject((RegistryVO) valueObject);
73     }
74  
75     public Integer JavaDoc getRegistryId()
76     {
77         return this.valueObject.getRegistryId();
78     }
79
80     public void setRegistryId(Integer JavaDoc registryId)
81     {
82         this.valueObject.setRegistryId(registryId);
83     }
84
85     public String JavaDoc getEntityId()
86     {
87         return this.valueObject.getEntityId();
88     }
89
90     public void setEntityId(String JavaDoc entityId)
91     {
92         this.valueObject.setEntityId(entityId);
93     }
94
95     public String JavaDoc getEntityName()
96     {
97         return this.valueObject.getEntityName();
98     }
99
100     public void setEntityName(String JavaDoc entityName)
101     {
102         this.valueObject.setEntityName(entityName);
103     }
104
105     public Integer JavaDoc getReferenceType()
106     {
107         return this.valueObject.getReferenceType();
108     }
109
110     public void setReferenceType(Integer JavaDoc referenceType)
111     {
112         this.valueObject.setReferenceType(referenceType);
113     }
114
115     public String JavaDoc getReferencingEntityId()
116     {
117         return this.valueObject.getReferencingEntityId();
118     }
119
120     public void setReferencingEntityId(String JavaDoc referencingEntityId)
121     {
122         this.valueObject.setReferencingEntityId(referencingEntityId);
123     }
124
125     public String JavaDoc getReferencingEntityName()
126     {
127         return this.valueObject.getReferencingEntityName();
128     }
129
130     public void setReferencingEntityName(String JavaDoc referencingEntityName)
131     {
132         this.valueObject.setReferencingEntityName(referencingEntityName);
133     }
134
135     public String JavaDoc getReferencingEntityCompletingId()
136     {
137         return this.valueObject.getReferencingEntityCompletingId();
138     }
139
140     public void setReferencingEntityCompletingId(String JavaDoc referencingEntityCompletingId)
141     {
142         this.valueObject.setReferencingEntityCompletingId(referencingEntityCompletingId);
143     }
144
145     public String JavaDoc getReferencingEntityCompletingName()
146     {
147         return this.valueObject.getReferencingEntityCompletingName();
148     }
149
150     public void setReferencingEntityCompletingName(String JavaDoc referencingEntityCompletingName)
151     {
152         this.valueObject.setReferencingEntityCompletingName(referencingEntityCompletingName);
153     }
154
155 }
156
Popular Tags