public final class SQLServerDataTable extends Object
| Constructor | Description |
|---|---|
SQLServerDataTable() |
The constant in the Java programming language, sometimes referred to as a type code, that identifies the type
TVP.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
addColumnMetadata(SQLServerDataColumn column) |
Adds meta data for the specified column.
|
void |
addColumnMetadata(String columnName,
int sqlType) |
Adds meta data for the specified column.
|
void |
addRow(Object... values) |
Adds one row of data to the data table.
|
void |
clear() |
Clears this data table.
|
Map<Integer,SQLServerDataColumn> |
getColumnMetadata() |
Returns the
java.util.Map object type of columnMetaData for all columns where column indexes are
mapped with their respective SQLServerDataColumn Java object. |
Iterator<Map.Entry<Integer,Object[]>> |
getIterator() |
Returns an iterator on the rows of the data table.
|
String |
getTvpName() |
Returns name of TVP type set by
setTvpName(String). |
void |
setTvpName(String tvpName) |
Sets the TVP Name.
|
public SQLServerDataTable()
throws SQLServerException
SQLServerException - when an error occurspublic void clear()
public Iterator<Map.Entry<Integer,Object[]>> getIterator()
public void addColumnMetadata(String columnName, int sqlType) throws SQLServerException
columnName - the name of the columnsqlType - the sql type of the columnSQLServerException - when an error occurspublic void addColumnMetadata(SQLServerDataColumn column) throws SQLServerException
column - the name of the columnSQLServerException - when an error occurspublic void addRow(Object... values) throws SQLServerException
values - values to be added in one row of data to the data table.SQLServerException - when an error occurspublic Map<Integer,SQLServerDataColumn> getColumnMetadata()
java.util.Map object type of columnMetaData for all columns where column indexes are
mapped with their respective SQLServerDataColumn Java object.public String getTvpName()
setTvpName(String).public void setTvpName(String tvpName)
tvpName - the name of TVPCopyright © 2018 Microsoft Corporation. All rights reserved.