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) ColInfogetColumn(int column) Return the column descriptor given a column index.getColumnClassName(int column) intintgetColumnDisplaySize(int column) getColumnLabel(int column) getColumnName(int column) intgetColumnType(int column) getColumnTypeName(int column) intgetPrecision(int column) intgetScale(int column) getSchemaName(int column) getTableName(int column) booleanisAutoIncrement(int column) booleanisCaseSensitive(int column) booleanisCurrency(int column) booleanisDefinitelyWritable(int column) intisNullable(int column) booleanisReadOnly(int column) booleanisSearchable(int column) booleanisSigned(int column) booleanisWrapperFor(Class arg0) booleanisWritable(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:
getColumnCountin interfaceResultSetMetaData- Throws:
SQLException
-
getColumnDisplaySize
- Specified by:
getColumnDisplaySizein interfaceResultSetMetaData- Throws:
SQLException
-
getColumnType
- Specified by:
getColumnTypein interfaceResultSetMetaData- Throws:
SQLException
-
getPrecision
- Specified by:
getPrecisionin interfaceResultSetMetaData- Throws:
SQLException
-
getScale
- Specified by:
getScalein interfaceResultSetMetaData- Throws:
SQLException
-
isNullable
- Specified by:
isNullablein interfaceResultSetMetaData- Throws:
SQLException
-
isAutoIncrement
- Specified by:
isAutoIncrementin interfaceResultSetMetaData- Throws:
SQLException
-
isCaseSensitive
- Specified by:
isCaseSensitivein interfaceResultSetMetaData- Throws:
SQLException
-
isCurrency
- Specified by:
isCurrencyin interfaceResultSetMetaData- Throws:
SQLException
-
isDefinitelyWritable
- Specified by:
isDefinitelyWritablein interfaceResultSetMetaData- Throws:
SQLException
-
isReadOnly
- Specified by:
isReadOnlyin interfaceResultSetMetaData- Throws:
SQLException
-
isSearchable
- Specified by:
isSearchablein interfaceResultSetMetaData- Throws:
SQLException
-
isSigned
- Specified by:
isSignedin interfaceResultSetMetaData- Throws:
SQLException
-
isWritable
- Specified by:
isWritablein interfaceResultSetMetaData- Throws:
SQLException
-
getCatalogName
- Specified by:
getCatalogNamein interfaceResultSetMetaData- Throws:
SQLException
-
getColumnClassName
- Specified by:
getColumnClassNamein interfaceResultSetMetaData- Throws:
SQLException
-
getColumnLabel
- Specified by:
getColumnLabelin interfaceResultSetMetaData- Throws:
SQLException
-
getColumnName
- Specified by:
getColumnNamein interfaceResultSetMetaData- Throws:
SQLException
-
getColumnTypeName
- Specified by:
getColumnTypeNamein interfaceResultSetMetaData- Throws:
SQLException
-
getSchemaName
- Specified by:
getSchemaNamein interfaceResultSetMetaData- Throws:
SQLException
-
getTableName
- Specified by:
getTableNamein interfaceResultSetMetaData- Throws:
SQLException
-
isWrapperFor
- Specified by:
isWrapperForin interfaceWrapper- Throws:
SQLException
-
unwrap
- Specified by:
unwrapin interfaceWrapper- Throws:
SQLException
-