KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > geinuke > vo > BlockDBVO


1
2  /*
3  -- GeiNuke --
4 Copyright (c) 2005 by Roberto Sidoti [geinuke@users.sourceforge.net]
5  http://www.hostingjava.it/-geinuke/
6
7 This file is part of GeiNuke.
8
9     GeiNuke is free software; you can redistribute it and/or modify
10     it under the terms of the GNU General Public License as published by
11     the Free Software Foundation; either version 2 of the License, or
12     (at your option) any later version.
13
14     GeiNuke is distributed in the hope that it will be useful,
15     but WITHOUT ANY WARRANTY; without even the implied warranty of
16     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17     GNU General Public License for more details.
18
19     You should have received a copy of the GNU General Public License
20     along with GeiNuke; if not, write to the Free Software
21     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22 */

23 package com.geinuke.vo;
24
25 import java.io.Serializable JavaDoc;
26
27
28 public class BlockDBVO implements Serializable JavaDoc{
29     protected int id=0;
30     protected int idRole=0;
31     protected String JavaDoc path=null;
32     protected String JavaDoc name=null;
33     protected String JavaDoc des=null;
34     protected int roleLevel=0;
35     protected int pos=0;
36     protected int weight=0;
37     protected String JavaDoc title=null;
38     protected boolean active=false;
39     protected int skin=0;
40     protected boolean dbStored=false;
41     protected String JavaDoc content="";
42     
43     public int getId() {
44         
45         return this.id;
46     }
47
48     public String JavaDoc getPath() {
49         
50         return this.path;
51     }
52
53     
54     public void setPath(String JavaDoc tit) {
55         this.path=tit;
56         
57     }
58
59     
60     public String JavaDoc getName() {
61     
62         return this.name;
63     }
64
65     public int getPos() {
66         
67         return this.pos;
68     }
69
70
71     public int getWeight() {
72         
73         return this.weight;
74     }
75
76     public String JavaDoc getDescription() {
77         
78         return this.des;
79     }
80
81     
82     public void setDescription(String JavaDoc des) {
83         this.des = des;
84     }
85     public void setId(int id) {
86         this.id = id;
87     }
88     public void setName(String JavaDoc name) {
89         this.name = name;
90     }
91     public void setPos(int pos) {
92         this.pos = pos;
93     }
94     public void setWeight(int weight) {
95         this.weight = weight;
96     }
97     
98     
99     public int getIdRole() {
100         return idRole;
101     }
102     public void setIdRole(int idRole) {
103         this.idRole = idRole;
104     }
105     public boolean isActive() {
106         return active;
107     }
108     
109     public boolean getActive() {
110         return active;
111     }
112     public void setActive(boolean visible) {
113         this.active = visible;
114     }
115     public int getRoleLevel() {
116         return roleLevel;
117     }
118     public void setRoleLevel(int roleLevel) {
119         this.roleLevel = roleLevel;
120     }
121     public String JavaDoc getTitle() {
122         return title;
123     }
124     public void setTitle(String JavaDoc title) {
125         this.title = title;
126     }
127     /**
128      * @return Returns the skin.
129      */

130     public int getSkin() {
131         return skin;
132     }
133     /**
134      * @param skin The skin to set.
135      */

136     public void setSkin(int skin) {
137         this.skin = skin;
138     }
139     public boolean isDbStored() {
140         return dbStored;
141     }
142     public void setDbStored(boolean dbStored) {
143         this.dbStored = dbStored;
144     }
145     /**
146      * @return Returns the content.
147      */

148     public String JavaDoc getContent() {
149         return content;
150     }
151     /**
152      * @param content The content to set.
153      */

154     public void setContent(String JavaDoc content) {
155         this.content = content;
156     }
157 }
158
159
Popular Tags