KickJava   Java API By Example, From Geeks To Geeks.

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


1 /* ===============================================================================
2  *
3  * Part of the InfoGlue Properties 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 package org.infoglue.cms.entities.management.impl.simple;
24
25 import org.infoglue.cms.entities.kernel.BaseEntityVO;
26 import org.infoglue.cms.entities.management.PropertiesCategory;
27 import org.infoglue.cms.entities.management.PropertiesCategoryVO;
28
29 /**
30  * @author Frank Febbraro (frank@phase2technology.com)
31  */

32 public class PropertiesCategoryImpl implements PropertiesCategory
33 {
34     private PropertiesCategoryVO valueObject = new PropertiesCategoryVO();
35     private CategoryImpl category;
36
37     public PropertiesCategoryImpl()
38     {}
39
40     public PropertiesCategoryImpl(Integer JavaDoc id)
41     {
42         setPropertiesCategoryId(id);
43     }
44
45     public PropertiesCategoryImpl(PropertiesCategoryVO vo)
46     {
47         valueObject = (vo != null)? vo : new PropertiesCategoryVO();
48     }
49
50
51     public BaseEntityVO getVO() { return (BaseEntityVO) getValueObject(); }
52     public void setVO(BaseEntityVO vo) { setValueObject((PropertiesCategoryVO) vo); }
53
54     public Integer JavaDoc getId() { return getPropertiesCategoryId(); }
55     public Object JavaDoc getIdAsObject() { return getId(); }
56
57     public PropertiesCategoryVO getValueObject() { return valueObject; }
58     public void setValueObject(PropertiesCategoryVO c) { valueObject = c; }
59
60     public Integer JavaDoc getPropertiesCategoryId() { return valueObject.getPropertiesCategoryId(); }
61     public void setPropertiesCategoryId(Integer JavaDoc i) { valueObject.setPropertiesCategoryId(i); }
62
63     public String JavaDoc getAttributeName() { return valueObject.getAttributeName(); }
64     public void setAttributeName(String JavaDoc s) { valueObject.setAttributeName(s); }
65
66     public String JavaDoc getEntityName() { return valueObject.getEntityName(); }
67     public void setEntityName(String JavaDoc s) { valueObject.setEntityName(s); }
68
69     public Integer JavaDoc getEntityId() { return valueObject.getEntityId(); }
70     public void setEntityId(Integer JavaDoc i) { valueObject.setEntityId(i); }
71
72     public CategoryImpl getCategory()
73     {
74         return category;
75     }
76
77     public void setCategory(CategoryImpl c)
78     {
79         category = c;
80         valueObject.setCategory(c.getValueObject());
81     }
82
83 }
84
Popular Tags