public class Column extends Object implements io.r2dbc.mssql.codec.Decodable
Decodable column within a result set.| Constructor and Description |
|---|
Column(int index,
String name,
TypeInformation type)
Creates a new
Column. |
Column(int index,
String name,
TypeInformation type,
Identifier table)
Creates a new
Column. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
getIndex()
Returns the column index.
|
String |
getName()
Returns the column name.
|
Identifier |
getTable()
Returns the
table name. |
TypeInformation |
getType()
Returns the column
type. |
int |
hashCode() |
String |
toString() |
public Column(int index,
String name,
TypeInformation type)
Column.index - the index (ordinal position) within the result set, zero-based.name - the column name.type - the associated type of this column.public Column(int index,
String name,
TypeInformation type,
@Nullable
Identifier table)
Column.index - the index (ordinal position) within the result set, zero-based.name - the column name.type - the associated type of this column.table - the optional table name.public int getIndex()
public String getName()
getName in interface io.r2dbc.mssql.codec.Decodablepublic TypeInformation getType()
type.getType in interface io.r2dbc.mssql.codec.Decodabletype.@Nullable public Identifier getTable()
table name.table name, can be null.Copyright © 2023. All rights reserved.