public interface SQLLoader
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addSQL(SqlId id,
SQLSource source)
新增一个指定标识的SQL资源
|
boolean |
exist(SqlId id)
判断一个sql是否存在
|
boolean |
existNamespace(SqlId id)
检测是否存在sqlId的namespace,如文件
|
DBStyle |
getDbStyle()
获取数据库方言配置
|
BeetlSQLException |
getException(SqlId id) |
String |
getPathBySqlId(SqlId id)
返回
SqlId 表示的SQL资源路径 |
boolean |
isModified(SqlId id)
判断一个sql是否修改过
|
boolean |
isProduct()
是否是生产配置
|
SQLSource |
queryAutoSQL(SqlId id)
查询自动生成,或者Java提供的Sql
|
SQLSource |
querySQL(SqlId id)
从缓存中取得SQLSource,抛出错误 BeetlSQLException.CANNOT_GET_SQL
|
void |
refresh() |
void |
setDbStyle(DBStyle dbs) |
void |
setProduct(boolean product) |
SQLSource querySQL(SqlId id)
id - boolean isModified(SqlId id)
id - boolean exist(SqlId id)
id - boolean existNamespace(SqlId id)
id - DBStyle getDbStyle()
void setDbStyle(DBStyle dbs)
boolean isProduct()
void setProduct(boolean product)
BeetlSQLException getException(SqlId id)
void refresh()
Copyright © 2022. All rights reserved.