public class Column<T> extends Object implements Serializable
____________________________ | UserId | UserName | | 1 | Foo | | 2 | Bar | ----------------------------
The following class can be used to represent the data in the table as
> rows = new ArrayList>(); List
row1 = Lists.newArrayList(new Column("UserId", 1, Types.INTEGER), new Column("UserName", "Foo", Types.VARCHAR)) List row1 = Lists.newArrayList(new Column("UserId", 2, Types.INTEGER), new Column("UserName", "Bar", Types.VARCHAR)) rows.add(row1) rows.add(row2) ]]>
Constructor and Description |
---|
Column(String columnName,
int sqlType) |
Column(String columnName,
T val,
int sqlType) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getColumnName() |
int |
getSqlType() |
T |
getVal() |
int |
hashCode() |
String |
toString() |
Copyright © 2023 The Apache Software Foundation. All rights reserved.