public abstract class AbstractSqlManager extends Object implements SqlManager
| 构造器和说明 |
|---|
AbstractSqlManager() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addSql(String key,
String value)
增加一条 Sql
|
boolean |
contains(String key) |
int |
count() |
Sql |
create(String key)
创建一个 Sql 对象
|
List<Sql> |
createCombo(String... keys)
根据一组 Sql 的键值,创建一个 Sql 列表
|
String |
get(String key)
获取一段 Sql 的原始文本
|
String[] |
keys() |
protected void |
loadSQL(Reader reader)
执行根据字符流来加载sql内容的操作
|
void |
remove(String key)
移除一条 Sql
|
void |
saveAs(File f) |
void |
setAllowDuplicate(boolean allowDuplicate) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrefreshpublic boolean contains(String key)
public void saveAs(File f) throws IOException
IOExceptionpublic String get(String key)
SqlManagerget 在接口中 SqlManagerkey - Sql 的键值public Sql create(String key) throws SqlNotFoundException
SqlManagercreate 在接口中 SqlManagerkey - Sql 的键值SqlNotFoundExceptionpublic List<Sql> createCombo(String... keys)
SqlManagercreateCombo 在接口中 SqlManagerkeys - 键值数组public int count()
count 在接口中 SqlManagerpublic String[] keys()
keys 在接口中 SqlManagerpublic void addSql(String key, String value)
SqlManageraddSql 在接口中 SqlManagerkey - 键值value - Sql 原始字符串public void remove(String key)
SqlManagerremove 在接口中 SqlManagerkey - 键值protected void loadSQL(Reader reader) throws IOException
reader - IOExceptionpublic void setAllowDuplicate(boolean allowDuplicate)
Copyright © 2017. All rights reserved.