KickJava   Java API By Example, From Geeks To Geeks.

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


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 import org.infoglue.cms.entities.kernel.BaseEntityVO;
27 import org.infoglue.cms.entities.management.RepositoryLanguage;
28 import org.infoglue.cms.entities.management.RepositoryLanguageVO;
29 import org.infoglue.cms.exception.ConstraintException;
30 import org.infoglue.cms.exception.SystemException;
31
32
33 public class RepositoryLanguageImpl implements RepositoryLanguage
34 {
35     private RepositoryLanguageVO valueObject = new RepositoryLanguageVO();
36   
37       /**
38      * @see org.infoglue.cms.entities.kernel.BaseEntity#getId()
39      */

40     public Integer JavaDoc getId()
41     {
42         return getRepositoryLanguageId();
43     }
44
45     public Object JavaDoc getIdAsObject()
46     {
47         return getId();
48     }
49
50     public RepositoryLanguageVO getValueObject()
51     {
52         return this.valueObject;
53     }
54
55     public void setValueObject(RepositoryLanguageVO valueObject)
56     {
57         this.valueObject = valueObject;
58     }
59     /**
60      * @see org.infoglue.cms.entities.kernel.BaseEntity#getVO()
61      */

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

69     public void setVO(BaseEntityVO valueObject)
70     {
71         setValueObject((RepositoryLanguageVO) valueObject);
72     }
73
74     private org.infoglue.cms.entities.management.Repository repository;
75     private org.infoglue.cms.entities.management.Language language;
76   
77     
78     public java.lang.Integer JavaDoc getRepositoryLanguageId()
79     {
80         return this.valueObject.getRepositoryLanguageId();
81     }
82             
83     public void setRepositoryLanguageId(java.lang.Integer JavaDoc repositoryLanguageId) throws SystemException
84     {
85         this.valueObject.setRepositoryLanguageId(repositoryLanguageId);
86     }
87       
88     public java.lang.Boolean JavaDoc getIsPublished()
89     {
90         return this.valueObject.getIsPublished();
91     }
92             
93     public void setIsPublished(java.lang.Boolean JavaDoc isPublished) throws ConstraintException
94     {
95         this.valueObject.setIsPublished(isPublished);
96     }
97           
98     public java.lang.Integer JavaDoc getSortOrder()
99     {
100         return this.valueObject.getSortOrder();
101     }
102     
103     public void setSortOrder(java.lang.Integer JavaDoc sortOrder) throws ConstraintException
104     {
105         this.valueObject.setSortOrder(sortOrder);
106     }
107
108     public org.infoglue.cms.entities.management.Repository getRepository()
109     {
110         return this.repository;
111     }
112             
113     public void setRepository (org.infoglue.cms.entities.management.Repository repository)
114     {
115         this.repository = repository;
116         this.valueObject.setRepositoryId(repository.getId());
117     }
118
119     public org.infoglue.cms.entities.management.Language getLanguage()
120     {
121         return this.language;
122     }
123             
124     public void setLanguage (org.infoglue.cms.entities.management.Language language)
125     {
126         this.language = language;
127         this.valueObject.setLanguageId(language.getId());
128     }
129       
130 }
131
Popular Tags