数据访问Dao的基类
成员函数:
ExecHash
执行传入的sql语句,并返回hash结构
参数:
名称 | 类型 | 说明 |
---|---|---|
sql | String | sql语句 |
返回值:
ZmHash hash结构
ExecHashList
执行传入的sql语句,并返回HashList结构
参数:
名称 | 类型 | 说明 |
---|---|---|
sql | String | sql语句 |
返回值:
ZmHashList HashList结构
ExecHsHash
执行传入的sql语句,并返回hash结构
参数:
名称 | 类型 | 说明 |
---|---|---|
sql | String | sql语句 |
返回值:
ZmHash hash结构
ExecHsHashList
执行传入的sql语句,并返回HashList结构
参数:
名称 | 类型 | 说明 |
---|---|---|
sql | String | sql语句 |
返回值:
ZmHashList HashList结构
InsertIdentity
插入含有自增列主键的表,并范围该主键值
参数:
名称 | 类型 | 说明 |
---|---|---|
sql | String | sql语句 |
返回值:
Int 主键值
ExecNonQuery
直接操作数据库
参数:
名称 | 类型 | 说明 |
---|---|---|
commandText | String | sql语句 |
返回值:
Int 影响记录条数
SearchList
根据相应的表数据,条件数据,分页数据,排序数据查询数据库,获得ZmHashList对象
参数:
名称 | 类型 | 说明 |
---|---|---|
mainTable | ZmQueryTable | 表数据 |
subTables | ZmQueryTableList | 关联表数据 |
queryCondition | ZmQueryConditionList | 查询条件 |
Pager | ZmPager | 分页数据 |
Sorter | ZmSorter | 排序数据 |
返回值:
ZmHashList 查询出的内容,ZmHashList对象
SetCache
设置数据缓存
参数:
名称 | 类型 | 说明 |
---|---|---|
key | String | 缓存的键key |
val | Object | 缓存的值 |
GetCacheString
获取缓存的字符串数据
参数:
名称 | 类型 | 说明 |
---|---|---|
key | String | 缓存的键key |
返回值:
String 缓存的字符串数据
GetCacheInt
获取缓存的整数数据
参数:
名称 | 类型 | 说明 |
---|---|---|
key | String | 缓存的键key |
返回值:
Int 缓存的整数数据
GetCacheHashList
获取缓存的HashList数据
参数:
名称 | 类型 | 说明 |
---|---|---|
key | String | 缓存的键key |
返回值:
ZmHashList 缓存的HashList数据
GetCacheHash
获取缓存的Hash数据
参数:
名称 | 类型 | 说明 |
---|---|---|
key | String | 缓存的键key |
返回值:
ZmHash 缓存的Hash数据
RemoveCache
根据缓存的键key删除数据缓存
参数:
名称 | 类型 | 说明 |
---|---|---|
key | String | 缓存的键key |
其它说明:
无