001: /*
002: * $Header: /cvsroot/mvnforum/mvnforum/src/com/mvnforum/db/CategoryBean.java,v 1.10 2007/10/09 11:09:18 lexuanttkhtn Exp $
003: * $Author: lexuanttkhtn $
004: * $Revision: 1.10 $
005: * $Date: 2007/10/09 11:09:18 $
006: *
007: * ====================================================================
008: *
009: * Copyright (C) 2002-2007 by MyVietnam.net
010: *
011: * All copyright notices regarding mvnForum MUST remain
012: * intact in the scripts and in the outputted HTML.
013: * The "powered by" text/logo with a link back to
014: * http://www.mvnForum.com and http://www.MyVietnam.net in
015: * the footer of the pages MUST remain visible when the pages
016: * are viewed on the internet or intranet.
017: *
018: * This program is free software; you can redistribute it and/or modify
019: * it under the terms of the GNU General Public License as published by
020: * the Free Software Foundation; either version 2 of the License, or
021: * any later version.
022: *
023: * This program is distributed in the hope that it will be useful,
024: * but WITHOUT ANY WARRANTY; without even the implied warranty of
025: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
026: * GNU General Public License for more details.
027: *
028: * You should have received a copy of the GNU General Public License
029: * along with this program; if not, write to the Free Software
030: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
031: *
032: * Support can be obtained from support forums at:
033: * http://www.mvnForum.com/mvnforum/index
034: *
035: * Correspondence and Marketing Questions can be sent to:
036: * info at MyVietnam net
037: *
038: * @author: Minh Nguyen
039: * @author: Mai Nguyen
040: */
041: package com.mvnforum.db;
042:
043: import java.sql.Timestamp;
044:
045: import net.myvietnam.mvncore.util.StringUtil;
046:
047: /*
048: * Included columns: CategoryID, ParentCategoryID, CategoryName, CategoryDesc, CategoryCreationDate,
049: * CategoryModifiedDate, CategoryOrder, CategoryOption, CategoryStatus
050: * Excluded columns:
051: */
052: public class CategoryBean {
053: private int categoryID;
054: private int parentCategoryID;
055: private String categoryName;
056: private String categoryDesc;
057: private Timestamp categoryCreationDate;
058: private Timestamp categoryModifiedDate;
059: private int categoryOrder;
060: private int categoryOption;
061: private int categoryStatus;
062:
063: public int getCategoryID() {
064: return categoryID;
065: }
066:
067: public void setCategoryID(int categoryID) {
068: this .categoryID = categoryID;
069: }
070:
071: public int getParentCategoryID() {
072: return parentCategoryID;
073: }
074:
075: public void setParentCategoryID(int parentCategoryID) {
076: this .parentCategoryID = parentCategoryID;
077: }
078:
079: public String getCategoryName() {
080: return categoryName;
081: }
082:
083: public void setCategoryName(String categoryName) {
084: this .categoryName = categoryName;
085: }
086:
087: public String getCategoryDesc() {
088: return categoryDesc;
089: }
090:
091: public void setCategoryDesc(String categoryDesc) {
092: this .categoryDesc = StringUtil
093: .getEmptyStringIfNull(categoryDesc);
094: }
095:
096: public Timestamp getCategoryCreationDate() {
097: return categoryCreationDate;
098: }
099:
100: public void setCategoryCreationDate(Timestamp categoryCreationDate) {
101: this .categoryCreationDate = categoryCreationDate;
102: }
103:
104: public Timestamp getCategoryModifiedDate() {
105: return categoryModifiedDate;
106: }
107:
108: public void setCategoryModifiedDate(Timestamp categoryModifiedDate) {
109: this .categoryModifiedDate = categoryModifiedDate;
110: }
111:
112: public int getCategoryOrder() {
113: return categoryOrder;
114: }
115:
116: public void setCategoryOrder(int categoryOrder) {
117: this .categoryOrder = categoryOrder;
118: }
119:
120: public int getCategoryOption() {
121: return categoryOption;
122: }
123:
124: public void setCategoryOption(int categoryOption) {
125: this .categoryOption = categoryOption;
126: }
127:
128: public int getCategoryStatus() {
129: return categoryStatus;
130: }
131:
132: public void setCategoryStatus(int categoryStatus) {
133: this .categoryStatus = categoryStatus;
134: }
135:
136: } //end of class CategoryBean
|