public class DB_Result extends Object
┌─┐ ┌─┐
┌──┘ ┴───────┘ ┴──┐
│ │
│ ─── │
│ ─┬┘ └┬─ │
│ │
│ ─┴─ │
│ │
└───┐ ┌───┘
│ │
│ │
│ │
│ └──────────────┐
│ │
│ ├─┐
│ author:lelouch ┌─┘
│ │
└─┐ ┐ ┌───────┬──┐ ┌──┘
│ ─┤ ─┤ │ ─┤ ─┤
└──┴──┘ └──┴──┘
神兽保佑
代码无BUG!
| 限定符和类型 | 方法和说明 |
|---|---|
String[] |
getColomn()
获取 数据列
|
protected static String[] |
getColomn(ResultSet rs)
获取 数据列
|
int |
getLength()
获取 数据行数
|
protected static int |
getLength(ResultSet rs)
获取 数据行数
|
protected static String[] |
toArray_(ResultSet rs)
获取 数组
|
String[] |
toArray()
获取 数组
|
protected static Map |
toArrayMap_(ResultSet rs)
获取数组
|
Map |
toArrayMap()
获取 数组
|
<T> T |
toCustom(DBResultCustom drc)
自定义查询
|
protected static <T> T |
toCustom(ResultSet rs,
DBResultCustom drc)
自定义查询
|
List<Map<String,Object>> |
toCustomList(DBResultCustom drc)
自定义查询
|
Map<String,Object> |
toMap()
查询 Map
|
protected static Map<String,Object> |
toMap(ResultSet rs)
查询 Map
|
List<Map<String,Object>> |
toMapList()
查询 MapList
|
protected static List<Map<String,Object>> |
toMapList(ResultSet rs)
查询 MapList
|
protected static Map<String,Map<String,Object>> |
toMapResultByField(ResultSet rs,
String field)
查询 MapList
|
Map<String,Map<String,Object>> |
toMapResultByField(String field)
查询 MapList
|
String |
toValue()
查询 value
|
protected static String |
toValue(ResultSet rs)
查询 value
|
protected ResultSet rs
public static boolean debug
public DB_Result(ResultSet rs)
public String toValue()
public Map<String,Map<String,Object>> toMapResultByField(String field)
public int getLength()
public String[] getColomn()
public List<Map<String,Object>> toCustomList(DBResultCustom drc)
drc - public <T> T toCustom(DBResultCustom drc)
drc - public String[] toArray()
rs - ResultSet对象public Map toArrayMap()
rs - ResultSet对象protected static List<Map<String,Object>> toMapList(ResultSet rs)
rs - ResultSet对象protected static Map<String,Map<String,Object>> toMapResultByField(ResultSet rs, String field)
rs - ResultSet对象field - protected static <T> T toCustom(ResultSet rs, DBResultCustom drc)
rs - ResultSet对象drc - protected static int getLength(ResultSet rs)
rs - ResultSet对象Copyright © 2020. All rights reserved.