public class SQLServerMetaData extends Object
| Constructor and Description |
|---|
SQLServerMetaData(SQLServerMetaData sqlServerMetaData)
Initializes a new instance of SQLServerMetaData from another SQLServerMetaData object.
|
SQLServerMetaData(String columnName,
int sqlType)
Creates a new SQLServerMetaData
|
SQLServerMetaData(String columnName,
int sqlType,
int precision,
int scale)
creates a new SQLServerMetaData
|
SQLServerMetaData(String columnName,
int sqlType,
int precision,
int scale,
boolean useServerDefault,
boolean isUniqueKey,
SQLServerSortOrder sortOrder,
int sortOrdinal)
Creates a new SQLServerMetaData
|
| Modifier and Type | Method and Description |
|---|---|
String |
getColumName() |
int |
getPrecision() |
int |
getScale() |
SQLServerSortOrder |
getSortOrder() |
int |
getSortOrdinal() |
int |
getSqlType() |
boolean |
isUniqueKey() |
boolean |
useServerDefault() |
public SQLServerMetaData(String columnName, int sqlType)
columnName - the name of the columnsqlType - the SQL type of the columnpublic SQLServerMetaData(String columnName, int sqlType, int precision, int scale)
columnName - the name of the columnsqlType - the SQL type of the columnprecision - the precision of the columnscale - the scale of the columnpublic SQLServerMetaData(String columnName, int sqlType, int precision, int scale, boolean useServerDefault, boolean isUniqueKey, SQLServerSortOrder sortOrder, int sortOrdinal) throws SQLServerException
columnName - the name of the columnsqlType - the sql type of the columnprecision - the precision of the columnscale - the scale of the columnuseServerDefault - specifies if this column should use the default server value; Default value is false.isUniqueKey - indicates if the column in the table-valued parameter is unique; Default value is false.sortOrder - indicates the sort order for a column; Default value is SQLServerSortOrder.Unspecified.sortOrdinal - specifies ordinal of the sort column; sortOrdinal starts from 0; Default value is -1.SQLServerException - when an error occurspublic SQLServerMetaData(SQLServerMetaData sqlServerMetaData)
sqlServerMetaData - the object passed to initialize a new instance of SQLServerMetaDatapublic String getColumName()
public int getSqlType()
public int getPrecision()
public int getScale()
public boolean useServerDefault()
public boolean isUniqueKey()
public SQLServerSortOrder getSortOrder()
public int getSortOrdinal()
Copyright © 2017 Microsoft Corporation. All rights reserved.