01: // jTDS JDBC Driver for Microsoft SQL Server and Sybase
02: // Copyright (C) 2004 The jTDS Project
03: //
04: // This library is free software; you can redistribute it and/or
05: // modify it under the terms of the GNU Lesser General Public
06: // License as published by the Free Software Foundation; either
07: // version 2.1 of the License, or (at your option) any later version.
08: //
09: // This library is distributed in the hope that it will be useful,
10: // but WITHOUT ANY WARRANTY; without even the implied warranty of
11: // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12: // Lesser General Public License for more details.
13: //
14: // You should have received a copy of the GNU Lesser General Public
15: // License along with this library; if not, write to the Free Software
16: // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17: //
18: package net.sourceforge.jtds.jdbc;
19:
20: /**
21: * This class is a descriptor for result set columns.
22: * <p>
23: * Implementation note:
24: * <p>
25: * Getter/setter methods have not been provided to avoid clutter
26: * as this class is used in many places in the driver.
27: * As the class is package private this seems reasonable.
28: *
29: * @author Mike Hutchinson
30: * @version $Id: ColInfo.java,v 1.4 2004/11/24 06:42:01 alin_sinpalean Exp $
31: */
32: public class ColInfo {
33: /** Internal TDS data type */
34: int tdsType;
35: /** JDBC type constant from java.sql.Types */
36: int jdbcType;
37: /** Column actual table name */
38: String realName;
39: /** Column label / name */
40: String name;
41: /** Table name owning this column */
42: String tableName;
43: /** Database owning this column */
44: String catalog;
45: /** User owning this column */
46: String schema;
47: /** Column data type supports SQL NULL */
48: int nullable;
49: /** Column name is case sensitive */
50: boolean isCaseSensitive;
51: /** Column may be updated */
52: boolean isWriteable;
53: /** Column is an indentity column */
54: boolean isIdentity;
55: /** Column may be used as a key */
56: boolean isKey;
57: /** Column should be hidden */
58: boolean isHidden;
59: /** Database ID for UDT */
60: int userType;
61: /** MS SQL2000 collation */
62: byte[] collation;
63: /** Character set descriptor (if different from default) */
64: CharsetInfo charsetInfo;
65: /** Column display size */
66: int displaySize;
67: /** Column buffer (max) size */
68: int bufferSize;
69: /** Column decimal precision */
70: int precision;
71: /** Column decimal scale */
72: int scale;
73: /** The SQL type name for this column. */
74: String sqlType;
75: }
|