1   /*
2    * PRELYTIS.
3    * Copyright 2007, PRELYTIS S.A., and individual contributors
4    * as indicated by the @author tags. See the copyright.txt file in the
5    * distribution for a full listing of individual contributors.
6    *
7    * This is free software; you can redistribute it and/or modify it
8    * under the terms of the GNU Lesser General Public License as
9    * published by the Free Software Foundation; either version 2.1 of
10   * the License, or (at your option) any later version.
11   *
12   * This software is distributed in the hope that it will be useful,
13   * but WITHOUT ANY WARRANTY; without even the implied warranty of
14   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15   * Lesser General Public License for more details.
16   *
17   * You should have received a copy of the GNU Lesser General Public
18   * License along with this software; if not, write to the Free
19   * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20   * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
21   */
22  package org.jdbc4olap.jdbc;
23  
24  /**
25   * @author <a href="mailto:fsiberchicot@jdbc4olap.org">Florian SIBERCHICOT</a>
26   * @author Dan Rollo
27   */
28  class OlapColumnMetaData {
29      private String catalogName;
30  
31      private String className;
32  
33      private int displaySize;
34  
35      private String label;
36  
37      private String name;
38  
39      private int type;
40  
41      private String typeName;
42  
43      private int precision;
44  
45      private int scale;
46  
47      private String schemaName;
48  
49      private String tableName;
50  
51      private boolean autoIncrement;
52  
53      private boolean caseSensitive;
54  
55      private boolean currency;
56  
57      private boolean definitivelyWritable;
58  
59      private int nullable;
60  
61      private boolean readOnly;
62  
63      private boolean searchable;
64  
65      private boolean signed;
66  
67      private boolean writable;
68  
69      boolean isAutoIncrement() {
70          return autoIncrement;
71      }
72  
73      void setAutoIncrement(final boolean autoIncrement) {
74          this.autoIncrement = autoIncrement;
75      }
76  
77      boolean isCaseSensitive() {
78          return caseSensitive;
79      }
80  
81      void setCaseSensitive(final boolean caseSensitive) {
82          this.caseSensitive = caseSensitive;
83      }
84  
85      String getCatalogName() {
86          return catalogName;
87      }
88  
89      void setCatalogName(final String catalogName) {
90          this.catalogName = catalogName;
91      }
92  
93      String getClassName() {
94          return className;
95      }
96  
97      void setClassName(final String className) {
98          this.className = className;
99      }
100 
101     boolean isCurrency() {
102         return currency;
103     }
104 
105     void setCurrency(final boolean currency) {
106         this.currency = currency;
107     }
108 
109     boolean isDefinitivelyWritable() {
110         return definitivelyWritable;
111     }
112 
113     void setDefinitivelyWritable(final boolean definitivelyWritable) {
114         this.definitivelyWritable = definitivelyWritable;
115     }
116 
117     int getDisplaySize() {
118         return displaySize;
119     }
120 
121     void setDisplaySize(final int displaySize) {
122         this.displaySize = displaySize;
123     }
124 
125     String getLabel() {
126         return label;
127     }
128 
129     void setLabel(final String label) {
130         this.label = label;
131     }
132 
133     String getName() {
134         return name;
135     }
136 
137     void setName(final String name) {
138         this.name = name;
139     }
140 
141     int isNullable() {
142         return nullable;
143     }
144 
145     void setNullable(final int nullable) {
146         this.nullable = nullable;
147     }
148 
149     int getPrecision() {
150         return precision;
151     }
152 
153     void setPrecision(final int precision) {
154         this.precision = precision;
155     }
156 
157     boolean isReadOnly() {
158         return readOnly;
159     }
160 
161     void setReadOnly(final boolean readOnly) {
162         this.readOnly = readOnly;
163     }
164 
165     int getScale() {
166         return scale;
167     }
168 
169     void setScale(final int scale) {
170         this.scale = scale;
171     }
172 
173     String getSchemaName() {
174         return schemaName;
175     }
176 
177     void setSchemaName(final String schemaName) {
178         this.schemaName = schemaName;
179     }
180 
181     boolean isSearchable() {
182         return searchable;
183     }
184 
185     void setSearchable(final boolean searchable) {
186         this.searchable = searchable;
187     }
188 
189     boolean isSigned() {
190         return signed;
191     }
192 
193     void setSigned(final boolean signed) {
194         this.signed = signed;
195     }
196 
197     String getTableName() {
198         return tableName;
199     }
200 
201     void setTableName(final String tableName) {
202         this.tableName = tableName;
203     }
204 
205     int getType() {
206         return type;
207     }
208 
209     void setType(final int type) {
210         this.type = type;
211     }
212 
213     String getTypeName() {
214         return typeName;
215     }
216 
217     void setTypeName(final String typeName) {
218         this.typeName = typeName;
219     }
220 
221     boolean isWritable() {
222         return writable;
223     }
224 
225     void setWritable(final boolean writable) {
226         this.writable = writable;
227     }
228 }