java.lang.Object
com.microsoft.sqlserver.jdbc.SQLServerDataTable
Represents the data table for SQL Server.
-
Constructor Summary
ConstructorDescriptionThe constant in the Java programming language, sometimes referred to as a type code, that identifies the type TVP. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addColumnMetadata
(SQLServerDataColumn column) Adds meta data for the specified column.void
addColumnMetadata
(String columnName, int sqlType) Adds meta data for the specified column.void
Adds one row of data to the data table.void
clear()
Clears this data table.boolean
Returns thejava.util.Map
object type of columnMetaData for all columns where column indexes are mapped with their respectiveSQLServerDataColumn
Java object.Returns an iterator on the rows of the data table.Returns name of TVP type set bysetTvpName(String)
.int
hashCode()
void
setTvpName
(String tvpName) Sets the TVP Name.
-
Constructor Details
-
SQLServerDataTable
The constant in the Java programming language, sometimes referred to as a type code, that identifies the type TVP.- Throws:
SQLServerException
- when an error occurs
-
-
Method Details
-
clear
public void clear()Clears this data table. -
getIterator
Returns an iterator on the rows of the data table.- Returns:
- an iterator on the rows of the data table.
-
addColumnMetadata
Adds meta data for the specified column.- Parameters:
columnName
- the name of the columnsqlType
- the sql type of the column- Throws:
SQLServerException
- when an error occurs
-
addColumnMetadata
Adds meta data for the specified column.- Parameters:
column
- the name of the column- Throws:
SQLServerException
- when an error occurs
-
addRow
Adds one row of data to the data table.- Parameters:
values
- values to be added in one row of data to the data table.- Throws:
SQLServerException
- when an error occurs
-
getColumnMetadata
Returns thejava.util.Map
object type of columnMetaData for all columns where column indexes are mapped with their respectiveSQLServerDataColumn
Java object.- Returns:
- Map
-
getTvpName
Returns name of TVP type set bysetTvpName(String)
.- Returns:
- tvpName
-
setTvpName
Sets the TVP Name.- Parameters:
tvpName
- the name of TVP
-
hashCode
public int hashCode() -
equals
-