java/sql-dk/src/info/globalcode/sql/dk/formatting/ColumnDescriptor.java
author František Kučera <franta-hg@frantovo.cz>
Sat, 04 Jan 2014 22:38:59 +0100
branchv_0
changeset 134 f2510551b5bf
parent 39 be8db46a38c3
child 174 3c6d560a1d14
permissions -rw-r--r--
Basic XHTML formatter
     1 /**
     2  * SQL-DK
     3  * Copyright © 2013 František Kučera (frantovo.cz)
     4  *
     5  * This program is free software: you can redistribute it and/or modify
     6  * it under the terms of the GNU General Public License as published by
     7  * the Free Software Foundation, either version 3 of the License, or
     8  * (at your option) any later version.
     9  *
    10  * This program is distributed in the hope that it will be useful,
    11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
    12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    13  * GNU General Public License for more details.
    14  *
    15  * You should have received a copy of the GNU General Public License
    16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
    17  */
    18 package info.globalcode.sql.dk.formatting;
    19 
    20 /**
    21  *
    22  * @author Ing. František Kučera (frantovo.cz)
    23  */
    24 public class ColumnDescriptor {
    25 
    26 	private String name;
    27 	private String label;
    28 	private int type;
    29 	private String typeName;
    30 	private boolean firstColumn;
    31 	private boolean lastColumn;
    32 	private int columnNumber;
    33 
    34 	/**
    35 	 * @return column name
    36 	 * @see #getLabel()
    37 	 */
    38 	public String getName() {
    39 		return name;
    40 	}
    41 
    42 	public void setName(String name) {
    43 		this.name = name;
    44 	}
    45 
    46 	/**
    47 	 * @return label specified by the SQL AS clause
    48 	 */
    49 	public String getLabel() {
    50 		return label;
    51 	}
    52 
    53 	public void setLabel(String label) {
    54 		this.label = label;
    55 	}
    56 
    57 	public int getType() {
    58 		return type;
    59 	}
    60 
    61 	public void setType(int type) {
    62 		this.type = type;
    63 	}
    64 
    65 	public String getTypeName() {
    66 		return typeName;
    67 	}
    68 
    69 	public void setTypeName(String typeName) {
    70 		this.typeName = typeName;
    71 	}
    72 
    73 	public boolean isFirstColumn() {
    74 		return firstColumn;
    75 	}
    76 
    77 	public void setFirstColumn(boolean firstColumn) {
    78 		this.firstColumn = firstColumn;
    79 	}
    80 
    81 	public boolean isLastColumn() {
    82 		return lastColumn;
    83 	}
    84 
    85 	public void setLastColumn(boolean lastColumn) {
    86 		this.lastColumn = lastColumn;
    87 	}
    88 
    89 	/**
    90 	 * @return number of this column, 1 = first
    91 	 */
    92 	public int getColumnNumber() {
    93 		return columnNumber;
    94 	}
    95 
    96 	public void setColumnNumber(int columnNumber) {
    97 		this.columnNumber = columnNumber;
    98 	}
    99 }