Package net.sourceforge.jtds.jdbc
Class JtdsResultSetMetaData
java.lang.Object
net.sourceforge.jtds.jdbc.JtdsResultSetMetaData
- All Implemented Interfaces:
ResultSetMetaData
,Wrapper
jTDS implementation of the java.sql.ResultSetMetaData interface.
Implementation notes:
- New simple implementation required by the new column info structure.
- Unlike the equivalent in the older jTDS, this version is generic and does not need to know details of the TDS protocol.
- Version:
- $Id: JtdsResultSetMetaData.java,v 1.9.2.3 2009-12-30 08:45:34 ickzon Exp $
- Author:
- Mike Hutchinson
-
Field Summary
FieldsFields inherited from interface java.sql.ResultSetMetaData
columnNoNulls, columnNullable, columnNullableUnknown
-
Constructor Summary
ConstructorsConstructorDescriptionJtdsResultSetMetaData
(ColInfo[] columns, int columnCount, boolean useLOBs) Construct ResultSetMetaData object over the current ColInfo array. -
Method Summary
Modifier and TypeMethodDescriptiongetCatalogName
(int column) (package private) ColInfo
getColumn
(int column) Return the column descriptor given a column index.getColumnClassName
(int column) int
int
getColumnDisplaySize
(int column) getColumnLabel
(int column) getColumnName
(int column) int
getColumnType
(int column) getColumnTypeName
(int column) int
getPrecision
(int column) int
getScale
(int column) getSchemaName
(int column) getTableName
(int column) boolean
isAutoIncrement
(int column) boolean
isCaseSensitive
(int column) boolean
isCurrency
(int column) boolean
isDefinitelyWritable
(int column) int
isNullable
(int column) boolean
isReadOnly
(int column) boolean
isSearchable
(int column) boolean
isSigned
(int column) boolean
isWrapperFor
(Class arg0) boolean
isWritable
(int column)
-
Field Details
-
columns
-
columnCount
private final int columnCount -
useLOBs
private final boolean useLOBs
-
-
Constructor Details
-
JtdsResultSetMetaData
JtdsResultSetMetaData(ColInfo[] columns, int columnCount, boolean useLOBs) Construct ResultSetMetaData object over the current ColInfo array.- Parameters:
columns
- The current ColInfo row descriptor array.columnCount
- The number of visible columns.
-
-
Method Details
-
getColumn
Return the column descriptor given a column index.- Parameters:
column
- The column index (from 1 .. n).- Returns:
- The column descriptor as a
ColInfo
.
- Throws:
SQLException
-
getColumnCount
- Specified by:
getColumnCount
in interfaceResultSetMetaData
- Throws:
SQLException
-
getColumnDisplaySize
- Specified by:
getColumnDisplaySize
in interfaceResultSetMetaData
- Throws:
SQLException
-
getColumnType
- Specified by:
getColumnType
in interfaceResultSetMetaData
- Throws:
SQLException
-
getPrecision
- Specified by:
getPrecision
in interfaceResultSetMetaData
- Throws:
SQLException
-
getScale
- Specified by:
getScale
in interfaceResultSetMetaData
- Throws:
SQLException
-
isNullable
- Specified by:
isNullable
in interfaceResultSetMetaData
- Throws:
SQLException
-
isAutoIncrement
- Specified by:
isAutoIncrement
in interfaceResultSetMetaData
- Throws:
SQLException
-
isCaseSensitive
- Specified by:
isCaseSensitive
in interfaceResultSetMetaData
- Throws:
SQLException
-
isCurrency
- Specified by:
isCurrency
in interfaceResultSetMetaData
- Throws:
SQLException
-
isDefinitelyWritable
- Specified by:
isDefinitelyWritable
in interfaceResultSetMetaData
- Throws:
SQLException
-
isReadOnly
- Specified by:
isReadOnly
in interfaceResultSetMetaData
- Throws:
SQLException
-
isSearchable
- Specified by:
isSearchable
in interfaceResultSetMetaData
- Throws:
SQLException
-
isSigned
- Specified by:
isSigned
in interfaceResultSetMetaData
- Throws:
SQLException
-
isWritable
- Specified by:
isWritable
in interfaceResultSetMetaData
- Throws:
SQLException
-
getCatalogName
- Specified by:
getCatalogName
in interfaceResultSetMetaData
- Throws:
SQLException
-
getColumnClassName
- Specified by:
getColumnClassName
in interfaceResultSetMetaData
- Throws:
SQLException
-
getColumnLabel
- Specified by:
getColumnLabel
in interfaceResultSetMetaData
- Throws:
SQLException
-
getColumnName
- Specified by:
getColumnName
in interfaceResultSetMetaData
- Throws:
SQLException
-
getColumnTypeName
- Specified by:
getColumnTypeName
in interfaceResultSetMetaData
- Throws:
SQLException
-
getSchemaName
- Specified by:
getSchemaName
in interfaceResultSetMetaData
- Throws:
SQLException
-
getTableName
- Specified by:
getTableName
in interfaceResultSetMetaData
- Throws:
SQLException
-
isWrapperFor
- Specified by:
isWrapperFor
in interfaceWrapper
- Throws:
SQLException
-
unwrap
- Specified by:
unwrap
in interfaceWrapper
- Throws:
SQLException
-