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 String
getCatalogName(int column)
String
getColumnClassName(int column)
int
getColumnCount()
int
getColumnDisplaySize(int column)
String
getColumnLabel(int column)
String
getColumnName(int column)
int
getColumnType(int column)
String
getColumnTypeName(int column)
int
getPrecision(int column)
int
getScale(int column)
String
getSchemaName(int column)
String
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
isSparseColumnSet(int column)
Returns if the column is a SQLServer SparseColumnSet.boolean
isWrapperFor(Class<?> iface)
boolean
isWritable(int column)
String
toString()
<T> T
unwrap(Class<T> iface)
-
-
-
Method Detail
-
isWrapperFor
public boolean isWrapperFor(Class<?> iface) throws SQLException
- Specified by:
isWrapperFor
in interfaceWrapper
- Throws:
SQLException
-
unwrap
public <T> T unwrap(Class<T> iface) throws SQLException
- Specified by:
unwrap
in interfaceWrapper
- Throws:
SQLException
-
getCatalogName
public String getCatalogName(int column) throws SQLServerException
- Specified by:
getCatalogName
in interfaceResultSetMetaData
- Throws:
SQLServerException
-
getColumnCount
public int getColumnCount() throws SQLServerException
- Specified by:
getColumnCount
in interfaceResultSetMetaData
- Throws:
SQLServerException
-
getColumnDisplaySize
public int getColumnDisplaySize(int column) throws SQLServerException
- Specified by:
getColumnDisplaySize
in interfaceResultSetMetaData
- Throws:
SQLServerException
-
getColumnLabel
public String getColumnLabel(int column) throws SQLServerException
- Specified by:
getColumnLabel
in interfaceResultSetMetaData
- Throws:
SQLServerException
-
getColumnName
public String getColumnName(int column) throws SQLServerException
- Specified by:
getColumnName
in interfaceResultSetMetaData
- Throws:
SQLServerException
-
getColumnType
public int getColumnType(int column) throws SQLServerException
- Specified by:
getColumnType
in interfaceResultSetMetaData
- Throws:
SQLServerException
-
getColumnTypeName
public String getColumnTypeName(int column) throws SQLServerException
- Specified by:
getColumnTypeName
in interfaceResultSetMetaData
- Throws:
SQLServerException
-
getPrecision
public int getPrecision(int column) throws SQLServerException
- Specified by:
getPrecision
in interfaceResultSetMetaData
- Throws:
SQLServerException
-
getScale
public int getScale(int column) throws SQLServerException
- Specified by:
getScale
in interfaceResultSetMetaData
- Throws:
SQLServerException
-
getSchemaName
public String getSchemaName(int column) throws SQLServerException
- Specified by:
getSchemaName
in interfaceResultSetMetaData
- Throws:
SQLServerException
-
getTableName
public String getTableName(int column) throws SQLServerException
- Specified by:
getTableName
in interfaceResultSetMetaData
- Throws:
SQLServerException
-
isAutoIncrement
public boolean isAutoIncrement(int column) throws SQLServerException
- Specified by:
isAutoIncrement
in interfaceResultSetMetaData
- Throws:
SQLServerException
-
isCaseSensitive
public boolean isCaseSensitive(int column) throws SQLServerException
- Specified by:
isCaseSensitive
in interfaceResultSetMetaData
- Throws:
SQLServerException
-
isCurrency
public boolean isCurrency(int column) throws SQLServerException
- Specified by:
isCurrency
in interfaceResultSetMetaData
- Throws:
SQLServerException
-
isDefinitelyWritable
public boolean isDefinitelyWritable(int column) throws SQLServerException
- Specified by:
isDefinitelyWritable
in interfaceResultSetMetaData
- Throws:
SQLServerException
-
isNullable
public int isNullable(int column) throws SQLServerException
- Specified by:
isNullable
in interfaceResultSetMetaData
- Throws:
SQLServerException
-
isReadOnly
public boolean isReadOnly(int column) throws SQLServerException
- Specified by:
isReadOnly
in interfaceResultSetMetaData
- Throws:
SQLServerException
-
isSearchable
public boolean isSearchable(int column) throws SQLServerException
- Specified by:
isSearchable
in interfaceResultSetMetaData
- Throws:
SQLServerException
-
isSigned
public boolean isSigned(int column) throws SQLServerException
- Specified by:
isSigned
in interfaceResultSetMetaData
- Throws:
SQLServerException
-
isSparseColumnSet
public boolean isSparseColumnSet(int column) throws SQLServerException
Description copied from interface:ISQLServerResultSetMetaData
Returns if the column is a SQLServer SparseColumnSet.- Specified by:
isSparseColumnSet
in 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:
isWritable
in interfaceResultSetMetaData
- Throws:
SQLServerException
-
getColumnClassName
public String getColumnClassName(int column) throws SQLServerException
- Specified by:
getColumnClassName
in interfaceResultSetMetaData
- Throws:
SQLServerException
-
-