public interface SqlManager
你可以通过这个接口的实现类,将你的自定义 SQL 存放在文件或者数据库中
Dao
Modifier and Type | Method and Description |
---|---|
void |
addSql(String key,
String value)
增加一条 Sql
|
void |
clear() |
int |
count() |
Sql |
create(String key)
创建一个 Sql 对象
|
List<Sql> |
createCombo(String... keys)
根据一组 Sql 的键值,创建一个 Sql 列表
|
String |
get(String key)
获取一段 Sql 的原始文本
|
String[] |
keys() |
void |
refresh()
刷新缓存
|
void |
remove(String key)
移除一条 Sql
|
String get(String key) throws SqlNotFoundException
key
- Sql 的键值SqlNotFoundException
Sql create(String key) throws SqlNotFoundException
key
- Sql 的键值SqlNotFoundException
List<Sql> createCombo(String... keys)
keys
- 键值数组int count()
String[] keys()
void refresh()
void remove(String key)
key
- 键值void clear()
Copyright © 2017. All rights reserved.