KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > openi > mondrian > schema > Hierarchy


1 /*********************************************************************************
2  * The contents of this file are subject to the OpenI Public License Version 1.0
3  * ("License"); You may not use this file except in compliance with the
4  * License. You may obtain a copy of the License at
5  * http://www.openi.org/docs/LICENSE.txt
6  *
7  * Software distributed under the License is distributed on an "AS IS" basis,
8  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
9  * the specific language governing rights and limitations under the License.
10  *
11  * The Original Code is: OpenI Open Source
12  *
13  * The Initial Developer of the Original Code is Loyalty Matrix, Inc.
14  * Portions created by Loyalty Matrix, Inc. are
15  * Copyright (C) 2005 Loyalty Matrix, Inc.; All Rights Reserved.
16  *
17  * Contributor(s): ______________________________________.
18  *
19  ********************************************************************************/

20 package org.openi.mondrian.schema;
21
22
23 /**
24  * @author Dioendra Pokhrel
25  * @version $Revision: 1.3 $ $Date: 2006/04/12 00:39:12 $
26  *
27  * Mondrian schema model class
28  *
29  */

30 public class Hierarchy {
31     private boolean hasAll;
32     private boolean primaryKey;
33     private String JavaDoc name;
34     private String JavaDoc primaryKeyTable;
35     private Join join;
36     private String JavaDoc allMemberName;
37
38     public boolean isHasAll() {
39         return hasAll;
40     }
41
42     public boolean isPrimaryKey() {
43         return primaryKey;
44     }
45
46     public String JavaDoc getName() {
47         return name;
48     }
49
50     public String JavaDoc getPrimaryKeyTable() {
51         return primaryKeyTable;
52     }
53
54     public Join getJoin() {
55         return join;
56     }
57
58     public String JavaDoc getAllMemberName() {
59         return allMemberName;
60     }
61
62     public void setHasAll(boolean hasAll) {
63         this.hasAll = hasAll;
64     }
65
66     public void setPrimaryKey(boolean primaryKey) {
67         this.primaryKey = primaryKey;
68     }
69
70     public void setName(String JavaDoc name) {
71         this.name = name;
72     }
73
74     public void setPrimaryKeyTable(String JavaDoc primaryKeyTable) {
75         this.primaryKeyTable = primaryKeyTable;
76     }
77
78     public void setJoin(Join join) {
79         this.join = join;
80     }
81
82     public void setAllMemberName(String JavaDoc allMemberName) {
83         this.allMemberName = allMemberName;
84     }
85 }
86
Popular Tags