| Constructor and Description |
|---|
SQLRowImpl(SQLRows sqlRows,
int rowIndex) |
| Modifier and Type | Method and Description |
|---|---|
Object |
get(int columnIndex)
根据列游标获取数据对象。
|
Object |
get(String name)
根据列名获取数据对象。
|
ByteBuffer |
getBinary(int columnIndex)
根据列游标获取 Binary 类型的值。
|
ByteBuffer |
getBinary(String name)
根据列名获取 BINARY 类型的值。
|
Boolean |
getBoolean(int columnIndex)
根据列游标获取布尔类型的值。
|
Boolean |
getBoolean(String name)
根据列名获取布尔类型的值。
|
java.time.LocalDate |
getDate(int columnIndex)
根据列游标获取日期类型的值。
|
java.time.LocalDate |
getDate(String name)
根据列名获取日期类型的值。
|
java.time.ZonedDateTime |
getDateTime(int columnIndex)
根据列游标获取时间类型的值。
|
java.time.ZonedDateTime |
getDateTime(String name)
根据列名获取时间类型的值。
|
Double |
getDouble(int columnIndex)
根据列游标获取浮点数类型的值。
|
Double |
getDouble(String name)
根据列名获取浮点数类型的值。
|
Long |
getLong(int columnIndex)
根据列游标获取整型的值。
|
Long |
getLong(String name)
根据列名获取整型的值。
|
String |
getString(int columnIndex)
根据列游标获取字符串类型的值。
|
String |
getString(String name)
根据列名获取字符串类型的值。
|
java.time.Duration |
getTime(int columnIndex)
根据列游标获取时间间隔类型的值。
|
java.time.Duration |
getTime(String name)
根据列名获取时间间隔类型的值。
|
String |
toDebugString()
建议只用于 Debug 和 测试使用
格式化输出该行的数据,按"columnA: valueA, columnB: valueB"的格式
|
public SQLRowImpl(SQLRows sqlRows, int rowIndex)
public String getString(int columnIndex)
SQLRow当前仅当数据类型为ColumnType.STRING才能获取到值。
public String getString(String name)
SQLRow当前仅当数据类型为ColumnType.STRING才能获取到值。
public Long getLong(int columnIndex)
SQLRow当前仅当数据类型为ColumnType.INTEGER才能获取到值。
public Long getLong(String name)
SQLRow当前仅当数据类型为ColumnType.INTEGER才能获取到值。
public Boolean getBoolean(int columnIndex)
SQLRow当前仅当数据类型为ColumnType.BOOLEAN才能获取到值。
getBoolean in interface SQLRowcolumnIndex - 列游标public Boolean getBoolean(String name)
SQLRow当前仅当数据类型为ColumnType.BOOLEAN才能获取到值。
getBoolean in interface SQLRowname - 列名public Double getDouble(int columnIndex)
SQLRow当前仅当数据类型为ColumnType.DOUBLE才能获取到值。
public Double getDouble(String name)
SQLRow当前仅当数据类型为ColumnType.DOUBLE才能获取到值。
public java.time.ZonedDateTime getDateTime(int columnIndex)
SQLRow当前仅当数据类型为ColumnType.DATETIME才能获取到值。
getDateTime in interface SQLRowcolumnIndex - 列游标public java.time.ZonedDateTime getDateTime(String name)
SQLRow当前仅当数据类型为ColumnType.DATETIME才能获取到值。
getDateTime in interface SQLRowname - 列名public java.time.Duration getTime(int columnIndex)
SQLRow当前仅当数据类型为ColumnType.TIME才能获取到值。
public java.time.Duration getTime(String name)
SQLRow当前仅当数据类型为ColumnType.TIME才能获取到值。
public java.time.LocalDate getDate(int columnIndex)
SQLRow当前仅当数据类型为ColumnType.DATE才能获取到值。
public java.time.LocalDate getDate(String name)
SQLRow当前仅当数据类型为ColumnType.DATE才能获取到值。
public ByteBuffer getBinary(int columnIndex)
SQLRow当前仅当数据类型为ColumnType.BINARY才能获取到值。
public ByteBuffer getBinary(String name)
SQLRow当前仅当数据类型为ColumnType.BINARY才能获取到值。
public String toDebugString()
SQLRowtoDebugString in interface SQLRowCopyright © 2024. All Rights Reserved.