Module com.microsoft.sqlserver.jdbc
Package com.microsoft.sqlserver.jdbc
Class SQLServerResultSetMetaData
- java.lang.Object
-
- com.microsoft.sqlserver.jdbc.SQLServerResultSetMetaData
-
- All Implemented Interfaces:
ISQLServerResultSetMetaData,Serializable,ResultSetMetaData,Wrapper
public final class SQLServerResultSetMetaData extends Object implements ISQLServerResultSetMetaData
Provides an implementation of the result set metadata to the SQL Server. A ResultSetMetaData object can be used to obtain the meta data (types and type properties) of the columns in a ResultSet. The API javadoc for JDBC API methods that this class implements are not repeated here. Please see Sun's JDBC API interfaces javadoc for those details.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface java.sql.ResultSetMetaData
columnNoNulls, columnNullable, columnNullableUnknown
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCatalogName(int column)StringgetColumnClassName(int column)intgetColumnCount()intgetColumnDisplaySize(int column)StringgetColumnLabel(int column)StringgetColumnName(int column)intgetColumnType(int column)StringgetColumnTypeName(int column)intgetPrecision(int column)intgetScale(int column)StringgetSchemaName(int column)StringgetTableName(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)booleanisSparseColumnSet(int column)Returns if the column is a SQLServer SparseColumnSet.booleanisWrapperFor(Class<?> iface)booleanisWritable(int column)StringtoString()<T> Tunwrap(Class<T> iface)
-
-
-
Method Detail
-
isWrapperFor
public boolean isWrapperFor(Class<?> iface) throws SQLException
- Specified by:
isWrapperForin interfaceWrapper- Throws:
SQLException
-
unwrap
public <T> T unwrap(Class<T> iface) throws SQLException
- Specified by:
unwrapin interfaceWrapper- Throws:
SQLException
-
getCatalogName
public String getCatalogName(int column) throws SQLServerException
- Specified by:
getCatalogNamein interfaceResultSetMetaData- Throws:
SQLServerException
-
getColumnCount
public int getColumnCount() throws SQLServerException- Specified by:
getColumnCountin interfaceResultSetMetaData- Throws:
SQLServerException
-
getColumnDisplaySize
public int getColumnDisplaySize(int column) throws SQLServerException- Specified by:
getColumnDisplaySizein interfaceResultSetMetaData- Throws:
SQLServerException
-
getColumnLabel
public String getColumnLabel(int column) throws SQLServerException
- Specified by:
getColumnLabelin interfaceResultSetMetaData- Throws:
SQLServerException
-
getColumnName
public String getColumnName(int column) throws SQLServerException
- Specified by:
getColumnNamein interfaceResultSetMetaData- Throws:
SQLServerException
-
getColumnType
public int getColumnType(int column) throws SQLServerException- Specified by:
getColumnTypein interfaceResultSetMetaData- Throws:
SQLServerException
-
getColumnTypeName
public String getColumnTypeName(int column) throws SQLServerException
- Specified by:
getColumnTypeNamein interfaceResultSetMetaData- Throws:
SQLServerException
-
getPrecision
public int getPrecision(int column) throws SQLServerException- Specified by:
getPrecisionin interfaceResultSetMetaData- Throws:
SQLServerException
-
getScale
public int getScale(int column) throws SQLServerException- Specified by:
getScalein interfaceResultSetMetaData- Throws:
SQLServerException
-
getSchemaName
public String getSchemaName(int column) throws SQLServerException
- Specified by:
getSchemaNamein interfaceResultSetMetaData- Throws:
SQLServerException
-
getTableName
public String getTableName(int column) throws SQLServerException
- Specified by:
getTableNamein interfaceResultSetMetaData- Throws:
SQLServerException
-
isAutoIncrement
public boolean isAutoIncrement(int column) throws SQLServerException- Specified by:
isAutoIncrementin interfaceResultSetMetaData- Throws:
SQLServerException
-
isCaseSensitive
public boolean isCaseSensitive(int column) throws SQLServerException- Specified by:
isCaseSensitivein interfaceResultSetMetaData- Throws:
SQLServerException
-
isCurrency
public boolean isCurrency(int column) throws SQLServerException- Specified by:
isCurrencyin interfaceResultSetMetaData- Throws:
SQLServerException
-
isDefinitelyWritable
public boolean isDefinitelyWritable(int column) throws SQLServerException- Specified by:
isDefinitelyWritablein interfaceResultSetMetaData- Throws:
SQLServerException
-
isNullable
public int isNullable(int column) throws SQLServerException- Specified by:
isNullablein interfaceResultSetMetaData- Throws:
SQLServerException
-
isReadOnly
public boolean isReadOnly(int column) throws SQLServerException- Specified by:
isReadOnlyin interfaceResultSetMetaData- Throws:
SQLServerException
-
isSearchable
public boolean isSearchable(int column) throws SQLServerException- Specified by:
isSearchablein interfaceResultSetMetaData- Throws:
SQLServerException
-
isSigned
public boolean isSigned(int column) throws SQLServerException- Specified by:
isSignedin interfaceResultSetMetaData- Throws:
SQLServerException
-
isSparseColumnSet
public boolean isSparseColumnSet(int column) throws SQLServerExceptionDescription copied from interface:ISQLServerResultSetMetaDataReturns if the column is a SQLServer SparseColumnSet.- Specified by:
isSparseColumnSetin interfaceISQLServerResultSetMetaData- Parameters:
column- The column number- Returns:
- true if a column in a result set is a sparse column set, otherwise false.
- Throws:
SQLServerException- when an error occurs
-
isWritable
public boolean isWritable(int column) throws SQLServerException- Specified by:
isWritablein interfaceResultSetMetaData- Throws:
SQLServerException
-
getColumnClassName
public String getColumnClassName(int column) throws SQLServerException
- Specified by:
getColumnClassNamein interfaceResultSetMetaData- Throws:
SQLServerException
-
-