public final class DMBP_Result extends DB_Result
┌─┐ ┌─┐
┌──┘ ┴───────┘ ┴──┐
│ │
│ ─── │
│ ─┬┘ └┬─ │
│ │
│ ─┴─ │
│ │
└───┐ ┌───┘
│ │
│ │
│ │
│ └──────────────┐
│ │
│ ├─┐
│ author:lelouch ┌─┘
│ │
└─┐ ┐ ┌───────┬──┐ ┌──┘
│ ─┤ ─┤ │ ─┤ ─┤
└──┴──┘ └──┴──┘
神兽保佑
代码无BUG!
| 限定符和类型 | 字段和说明 |
|---|---|
protected Class |
classObj |
protected DMBP_Query |
dmbp_query |
| 构造器和说明 |
|---|
DMBP_Result(DMBP_Query dmbp_query,
ResultSet rs) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected Class |
getClassObj() |
String[] |
getColomn()
获取 数据列
|
int |
getLength()
获取 数据行数
|
protected void |
setClassObj(Class classObj) |
String[] |
toArray()
获取 数组
|
Map |
toArrayMap()
获取 数组
|
<T> T |
toCustom(DBResultCustom drc)
自定义查询
|
List<Map<String,Object>> |
toCustomList(DBResultCustom drc)
自定义查询
|
Map<String,Object> |
toCustomMap(DBResultCustom drc)
自定义查询
|
List |
toList()
获取 list
|
List |
toList(Class classObj)
获取 list
|
protected static List |
toList(ResultSet rs,
Class classObj)
获取 list
|
Map<String,Object> |
toMap()
查询 Map
|
List<Map<String,Object>> |
toMapList()
查询 MapList
|
Map<String,Map<String,Object>> |
toMapResultByField(String field)
查询 MapList
|
<T> T |
toObject()
获取 对象
|
<T> T |
toObject(Class classObj)
获取 对象
|
protected static <T> T |
toObject(ResultSet rs,
Class classObj)
获取 对象
|
String |
toValue()
查询 value
|
getColomn, getLength, toArray_, toArrayMap_, toCustom, toMap, toMapList, toMapResultByField, toValueprotected DMBP_Query dmbp_query
protected Class classObj
public DMBP_Result(DMBP_Query dmbp_query, ResultSet rs)
protected Class getClassObj()
protected void setClassObj(Class classObj)
public Map<String,Map<String,Object>> toMapResultByField(String field)
toMapResultByField 在类中 DB_Resultpublic List<Map<String,Object>> toCustomList(DBResultCustom drc)
toCustomList 在类中 DB_Resultdrc - public <T> T toCustom(DBResultCustom drc)
public Map toArrayMap()
toArrayMap 在类中 DB_Resultrs - ResultSet对象public <T> T toObject(Class classObj)
classObj - 给定对象的描述public <T> T toObject()
public List toList()
public Map<String,Object> toCustomMap(DBResultCustom drc)
drc - protected static <T> T toObject(ResultSet rs, Class classObj)
rs - ResultSet对象classObj - 给定对象的描述Copyright © 2020. All rights reserved.