public final class SQLServerDataTable
extends java.lang.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(java.lang.String columnName,
int sqlType) |
Adds meta data for the specified column
|
void |
addRow(java.lang.Object... values) |
Adds one row of data to the data table.
|
void |
clear() |
Clears this data table.
|
java.util.Map<java.lang.Integer,SQLServerDataColumn> |
getColumnMetadata() |
|
java.util.Iterator<java.util.Map.Entry<java.lang.Integer,java.lang.Object[]>> |
getIterator() |
Retrieves an iterator on the rows of the data table.
|
java.lang.String |
getTvpName() |
|
void |
setTvpName(java.lang.String tvpName) |
Retrieves the column meta data of this data table.
|
public SQLServerDataTable()
throws SQLServerException
SQLServerException - when an error occurspublic void clear()
public java.util.Iterator<java.util.Map.Entry<java.lang.Integer,java.lang.Object[]>> getIterator()
public void addColumnMetadata(java.lang.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(java.lang.Object... values)
throws SQLServerException
values - values to be added in one row of data to the data table.SQLServerException - when an error occurspublic java.util.Map<java.lang.Integer,SQLServerDataColumn> getColumnMetadata()
public java.lang.String getTvpName()
public void setTvpName(java.lang.String tvpName)
tvpName - the name of TVPCopyright © 2018 Microsoft Corporation. All rights reserved.