public class TableRecords extends Object implements Serializable
| 限定符和类型 | 类和说明 |
|---|---|
static class |
TableRecords.EmptyTableRecords |
| 构造器和说明 |
|---|
TableRecords()
Instantiates a new Table records.
|
TableRecords(TableMeta tableMeta)
Instantiates a new Table records.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
add(Row row)
Add.
|
static TableRecords |
buildRecords(TableMeta tmeta,
ResultSet resultSet)
Build records table records.
|
static TableRecords |
empty(TableMeta tableMeta)
Empty table records.
|
List<Row> |
getRows()
Gets rows.
|
TableMeta |
getTableMeta()
Gets table meta.
|
String |
getTableName()
Gets table name.
|
static Object |
holdSerialDataType(Object data)
since there is no parameterless constructor for Blob, Clob and NClob just like mysql,
it needs to be converted to Serial_ type
|
List<Map<String,Field>> |
pkRows()
Pk rows list.
|
void |
setRows(List<Row> rows)
Sets rows.
|
void |
setTableMeta(TableMeta tableMeta)
Sets table meta.
|
void |
setTableName(String tableName)
Sets table name.
|
int |
size()
Size int.
|
public TableRecords()
public TableRecords(TableMeta tableMeta)
tableMeta - the table metapublic String getTableName()
public void setTableName(String tableName)
tableName - the table namepublic void setTableMeta(TableMeta tableMeta)
tableMeta - the table metapublic int size()
public void add(Row row)
row - the rowpublic List<Map<String,Field>> pkRows()
public TableMeta getTableMeta()
public static TableRecords empty(TableMeta tableMeta)
tableMeta - the table metapublic static TableRecords buildRecords(TableMeta tmeta, ResultSet resultSet) throws SQLException
tmeta - the tmetaresultSet - the result setSQLException - the sql exceptionpublic static Object holdSerialDataType(Object data) throws SQLException
data - the sql dataSQLException - the sql exceptionCopyright © 2022 Seata. All rights reserved.