public class Record extends Object implements Serializable
| 构造器和说明 |
|---|
Record() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
clear() |
Object |
get(int index)
通过索引获取值
|
<T> T |
get(int index,
Class<T> clz)
获取值
|
Object |
get(String column)
获取列值
|
<T> T |
get(String column,
Class<T> clz)
获取值
|
BigDecimal |
getBigDecimal(int index)
获取java.math.BigDecimal
|
BigDecimal |
getBigDecimal(String column)
获取java.math.BigDecimal
|
BigInteger |
getBigInteger(int index)
获取BigInteger
|
BigInteger |
getBigInteger(String column)
获取BigInteger
|
Boolean |
getBoolean(int index)
获取Boolean
|
Boolean |
getBoolean(String column)
获取Boolean
|
Byte |
getByte(int index)
获取byte
|
Byte |
getByte(String column)
获取byte
|
byte[] |
getBytes(int index)
获取byte[]
|
byte[] |
getBytes(String column)
获取byte[]
|
Date |
getDate(int index)
获取java.util.Date
|
Date |
getDate(String column)
获取java.util.Date
|
Double |
getDouble(int index)
获取Double
|
Double |
getDouble(String column)
获取Double
|
Float |
getFloat(int index)
获取Float
|
Float |
getFloat(String column)
获取Float
|
HashMap<Integer,String> |
getIndexMap() |
Integer |
getInteger(int index)
获取Integer
|
Integer |
getInteger(String column)
获取Integer
|
Long |
getLong(int index)
获取Long
|
Long |
getLong(String column)
获取Long
|
Number |
getNumber(int index)
获取Number
|
Number |
getNumber(String column)
获取Number
|
HashMap<String,Object> |
getResult() |
String |
getString(int index)
获取String
|
String |
getString(String column)
获取String
|
Time |
getTime(int index)
获取java.sql.Time
|
Time |
getTime(String column)
获取java.sql.Time
|
Timestamp |
getTimestamp(int index)
获取java.sql.Timestamp
|
Timestamp |
getTimestamp(String column)
获取java.sql.Timestamp
|
void |
put(String column,
Integer index,
Object value)
存放值
|
void |
put(String column,
Object value)
存放值
|
void |
setIndexMap(HashMap<Integer,String> indexMap) |
void |
setResult(HashMap<String,Object> result) |
String |
toString() |
public Object get(int index)
index - 从1开始public String getString(int index)
index - public Integer getInteger(int index)
index - public Long getLong(int index)
index - public BigInteger getBigInteger(String column)
column - 列public BigInteger getBigInteger(int index)
index - public Date getDate(int index)
index - public Time getTime(int index)
index - public Timestamp getTimestamp(String column)
column - 列public Timestamp getTimestamp(int index)
index - public Double getDouble(int index)
index - public Float getFloat(int index)
index - public Boolean getBoolean(int index)
index - public Byte getByte(int index)
index - public <T> T get(int index,
Class<T> clz)
index - clz - public BigDecimal getBigDecimal(String column)
column - 列public BigDecimal getBigDecimal(int index)
index - public byte[] getBytes(String column)
column - 列public byte[] getBytes(int index)
index - public Number getNumber(int index)
index - public void clear()
Copyright © 2023. All rights reserved.