KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > raptus > owxv3 > api > GResCategory


1 /*
2  * eAdmin/OWX
3  * Copyright (C) 1996-2003 OWX-Project Team <owx-team@gmx.net>
4  */

5
6 package com.raptus.owxv3.api;
7
8
9 /**
10  *
11  * <hr>
12  * <table width="100%" border="0">
13  * <tr>
14  * <td width="24%"><b>Filename</b></td><td width="76%">GResCategory.java</td>
15  * </tr>
16  * <tr>
17  * <td width="24%"><b>Author</b></td><td width="76%">REEA</td>
18  * </tr>
19  * <tr>
20  * <td width="24%"><b>Date</b></td><td width="76%">10th of December 2001</td>
21  * </tr>
22  * </table>
23  * <hr>
24  * <table width="100%" border="0">
25  * <tr>
26  * <td width="24%"><b>Date / Author</b></td><td width="76%"><b>Changes</b></td>
27  * </tr>
28  * </table>
29  * <table width="100%" border="0">
30  * <tr>
31  * <td>This class represents a category entry from the database</td>
32  * </tr>
33  * </table>
34  * <hr>
35  */

36 public class GResCategory extends Object JavaDoc
37 {
38     /**
39      *The category id of the Category object
40      */

41     protected int catRowID = 0;
42
43     /**
44      *Usage conuter of this category
45      */

46     protected int usageCounter = 0;
47
48
49     /**
50      *Identifier name of category
51      */

52     protected String JavaDoc catID = null;
53
54     /**
55      *The owner vmodule of category
56      */

57     protected String JavaDoc owner = null;
58
59
60     /**
61      *The parent id of this category
62      */

63     protected int parent=0;
64
65     /**
66      *The nesting level of this category
67      */

68     protected int level=0;
69
70
71     /**
72      *Value indicating that this is static category or not 0 not static (dinamic) 1 static
73      */

74     protected int staticCat = 0;
75
76
77
78     /**
79      * Accessor methods
80      */

81     public int getRowID() { return catRowID; }
82     public void setRowID(int id) { this.catRowID = id; }
83
84     public int getUsageCount() { return usageCounter; }
85     public void setUsageCount(int count) { this.usageCounter = count; }
86
87     public String JavaDoc getCategoryID() { return catID; }
88     public void setCategoryID(String JavaDoc id) { this.catID = id; }
89
90     public String JavaDoc getOwner() { return owner; }
91     public void setOwner(String JavaDoc ow) { this.owner = ow; }
92
93     public int getStatic() { return staticCat; }
94     public void setStatic(int s) { staticCat=s; }
95
96     public boolean isStatic() { return staticCat==1; }
97
98     public int getParent() { return parent; }
99     public void setParent(int p) { parent=p; }
100
101     public int getLevel() { return level; }
102     public void setLevel(int l) { level=l; }
103
104
105 }
106
107 /* end class GResCategory */
108
Popular Tags