franta-hg@23: /** franta-hg@23: * SQL-DK franta-hg@23: * Copyright © 2013 František Kučera (frantovo.cz) franta-hg@23: * franta-hg@23: * This program is free software: you can redistribute it and/or modify franta-hg@23: * it under the terms of the GNU General Public License as published by franta-hg@23: * the Free Software Foundation, either version 3 of the License, or franta-hg@23: * (at your option) any later version. franta-hg@23: * franta-hg@23: * This program is distributed in the hope that it will be useful, franta-hg@23: * but WITHOUT ANY WARRANTY; without even the implied warranty of franta-hg@23: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the franta-hg@23: * GNU General Public License for more details. franta-hg@23: * franta-hg@23: * You should have received a copy of the GNU General Public License franta-hg@23: * along with this program. If not, see . franta-hg@23: */ franta-hg@23: package info.globalcode.sql.dk.formatting; franta-hg@23: franta-hg@23: /** franta-hg@23: * franta-hg@23: * @author Ing. František Kučera (frantovo.cz) franta-hg@23: */ franta-hg@23: public class ColumnDescriptor { franta-hg@23: franta-hg@23: private String name; franta-hg@23: private String label; franta-hg@23: private int type; franta-hg@23: private String typeName; franta-hg@37: private boolean firstColumn; franta-hg@37: private boolean lastColumn; franta-hg@39: private int columnNumber; franta-hg@23: franta-hg@37: /** franta-hg@37: * @return column name franta-hg@37: * @see #getLabel() franta-hg@37: */ franta-hg@23: public String getName() { franta-hg@23: return name; franta-hg@23: } franta-hg@23: franta-hg@23: public void setName(String name) { franta-hg@23: this.name = name; franta-hg@23: } franta-hg@23: franta-hg@37: /** franta-hg@37: * @return label specified by the SQL AS clause franta-hg@37: */ franta-hg@23: public String getLabel() { franta-hg@23: return label; franta-hg@23: } franta-hg@23: franta-hg@23: public void setLabel(String label) { franta-hg@23: this.label = label; franta-hg@23: } franta-hg@23: franta-hg@23: public int getType() { franta-hg@23: return type; franta-hg@23: } franta-hg@23: franta-hg@23: public void setType(int type) { franta-hg@23: this.type = type; franta-hg@23: } franta-hg@23: franta-hg@23: public String getTypeName() { franta-hg@23: return typeName; franta-hg@23: } franta-hg@23: franta-hg@23: public void setTypeName(String typeName) { franta-hg@23: this.typeName = typeName; franta-hg@23: } franta-hg@37: franta-hg@37: public boolean isFirstColumn() { franta-hg@37: return firstColumn; franta-hg@37: } franta-hg@37: franta-hg@37: public void setFirstColumn(boolean firstColumn) { franta-hg@37: this.firstColumn = firstColumn; franta-hg@37: } franta-hg@37: franta-hg@37: public boolean isLastColumn() { franta-hg@37: return lastColumn; franta-hg@37: } franta-hg@37: franta-hg@37: public void setLastColumn(boolean lastColumn) { franta-hg@37: this.lastColumn = lastColumn; franta-hg@37: } franta-hg@39: franta-hg@39: /** franta-hg@39: * @return number of this column, 1 = first franta-hg@39: */ franta-hg@39: public int getColumnNumber() { franta-hg@39: return columnNumber; franta-hg@39: } franta-hg@39: franta-hg@39: public void setColumnNumber(int columnNumber) { franta-hg@39: this.columnNumber = columnNumber; franta-hg@39: } franta-hg@23: }