1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 package org.apache.openoffice.comp.sdbc.dbtools.util;
22 
23 public class CustomColumn {
24     private String catalogName = "";
25     private String schemaName = "";
26     private String tableName = "";
27     private String columnName = "";
28     private String columnLabel = "";
29     private String columnServiceName = "";
30 
31     private int columnType = 0;
32     private String columnTypeName = "";
33 
34     private int nullable = 0;
35     private int columnDisplaySize = 0;
36     private int precision = 0;
37     private int scale = 0;
38 
39     private boolean isAutoIncrement = false;
40     private boolean isCaseSensitive = false;
41     private boolean isSearchable = true;
42     private boolean isCurrency = false;
43     private boolean isSigned = false;
44     private boolean isReadOnly = true;
45     private boolean isWritable = false;
46     private boolean isDefinitelyWritable = false;
47 
getCatalogName()48     public String getCatalogName() {
49         return catalogName;
50     }
setCatalogName(String catalogName)51     public void setCatalogName(String catalogName) {
52         this.catalogName = catalogName;
53     }
getSchemaName()54     public String getSchemaName() {
55         return schemaName;
56     }
setSchemaName(String schemaName)57     public void setSchemaName(String schemaName) {
58         this.schemaName = schemaName;
59     }
getTableName()60     public String getTableName() {
61         return tableName;
62     }
setTableName(String tableName)63     public void setTableName(String tableName) {
64         this.tableName = tableName;
65     }
getColumnName()66     public String getColumnName() {
67         return columnName;
68     }
setColumnName(String columnName)69     public void setColumnName(String columnName) {
70         this.columnName = columnName;
71     }
getColumnLabel()72     public String getColumnLabel() {
73         return columnLabel;
74     }
setColumnLabel(String columnLabel)75     public void setColumnLabel(String columnLabel) {
76         this.columnLabel = columnLabel;
77     }
getColumnServiceName()78     public String getColumnServiceName() {
79         return columnServiceName;
80     }
setColumnServiceName(String columnServiceName)81     public void setColumnServiceName(String columnServiceName) {
82         this.columnServiceName = columnServiceName;
83     }
getColumnType()84     public int getColumnType() {
85         return columnType;
86     }
setColumnType(int columnType)87     public void setColumnType(int columnType) {
88         this.columnType = columnType;
89     }
getColumnTypeName()90     public String getColumnTypeName() {
91         return columnTypeName;
92     }
setColumnTypeName(String columnTypeName)93     public void setColumnTypeName(String columnTypeName) {
94         this.columnTypeName = columnTypeName;
95     }
getNullable()96     public int getNullable() {
97         return nullable;
98     }
setNullable(int nullable)99     public void setNullable(int nullable) {
100         this.nullable = nullable;
101     }
getColumnDisplaySize()102     public int getColumnDisplaySize() {
103         return columnDisplaySize;
104     }
setColumnDisplaySize(int columnDisplaySize)105     public void setColumnDisplaySize(int columnDisplaySize) {
106         this.columnDisplaySize = columnDisplaySize;
107     }
getPrecision()108     public int getPrecision() {
109         return precision;
110     }
setPrecision(int precision)111     public void setPrecision(int precision) {
112         this.precision = precision;
113     }
getScale()114     public int getScale() {
115         return scale;
116     }
setScale(int scale)117     public void setScale(int scale) {
118         this.scale = scale;
119     }
isAutoIncrement()120     public boolean isAutoIncrement() {
121         return isAutoIncrement;
122     }
setAutoIncrement(boolean isAutoIncrement)123     public void setAutoIncrement(boolean isAutoIncrement) {
124         this.isAutoIncrement = isAutoIncrement;
125     }
isCaseSensitive()126     public boolean isCaseSensitive() {
127         return isCaseSensitive;
128     }
setCaseSensitive(boolean isCaseSensitive)129     public void setCaseSensitive(boolean isCaseSensitive) {
130         this.isCaseSensitive = isCaseSensitive;
131     }
isSearchable()132     public boolean isSearchable() {
133         return isSearchable;
134     }
setSearchable(boolean isSearchable)135     public void setSearchable(boolean isSearchable) {
136         this.isSearchable = isSearchable;
137     }
isCurrency()138     public boolean isCurrency() {
139         return isCurrency;
140     }
setCurrency(boolean isCurrency)141     public void setCurrency(boolean isCurrency) {
142         this.isCurrency = isCurrency;
143     }
isSigned()144     public boolean isSigned() {
145         return isSigned;
146     }
setSigned(boolean isSigned)147     public void setSigned(boolean isSigned) {
148         this.isSigned = isSigned;
149     }
isReadOnly()150     public boolean isReadOnly() {
151         return isReadOnly;
152     }
setReadOnly(boolean isReadOnly)153     public void setReadOnly(boolean isReadOnly) {
154         this.isReadOnly = isReadOnly;
155     }
isWritable()156     public boolean isWritable() {
157         return isWritable;
158     }
setWritable(boolean isWritable)159     public void setWritable(boolean isWritable) {
160         this.isWritable = isWritable;
161     }
isDefinitelyWritable()162     public boolean isDefinitelyWritable() {
163         return isDefinitelyWritable;
164     }
setDefinitelyWritable(boolean isDefinitelyWritable)165     public void setDefinitelyWritable(boolean isDefinitelyWritable) {
166         this.isDefinitelyWritable = isDefinitelyWritable;
167     }
168 }
169