| 限定符和类型 | 方法和说明 |
|---|---|
void |
AnylineDao.setRuntime(JDBCRuntime runtime) |
| 限定符和类型 | 字段和说明 |
|---|---|
protected JDBCRuntime |
DefaultDao.runtime |
| 限定符和类型 | 方法和说明 |
|---|---|
JDBCRuntime |
DefaultDao.getRuntime() |
protected JDBCRuntime |
FixDao.runtime() |
protected JDBCRuntime |
DefaultDao.runtime() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected <T> void |
DefaultDao.checkMany2ManyDependencyQuery(JDBCRuntime runtime,
String random,
EntitySet<T> set,
int dependency) |
protected <T> void |
DefaultDao.checkOne2ManyDependencyQuery(JDBCRuntime runtime,
String random,
EntitySet<T> set,
int dependency) |
void |
DefaultDao.checkSchema(JDBCRuntime runtime,
Column column) |
void |
DefaultDao.checkSchema(JDBCRuntime runtime,
Constraint constraint) |
void |
DefaultDao.checkSchema(JDBCRuntime runtime,
Function function) |
void |
DefaultDao.checkSchema(JDBCRuntime runtime,
Index index) |
void |
DefaultDao.checkSchema(JDBCRuntime runtime,
Procedure procedure) |
void |
DefaultDao.checkSchema(JDBCRuntime runtime,
Table table) |
void |
DefaultDao.checkSchema(JDBCRuntime runtime,
Trigger trigger) |
protected <T extends Column> |
DefaultDao.columns(JDBCRuntime runtime,
String random,
boolean greedy,
Table table) |
protected int |
DefaultDao.count(JDBCRuntime runtime,
String random,
boolean recover,
RunPrepare prepare,
ConfigStore configs,
String... conditions) |
protected <T> int |
DefaultDao.deletes(JDBCRuntime runtime,
String random,
boolean recover,
String table,
String key,
Collection<T> values) |
boolean |
DefaultDao.execute(JDBCRuntime runtime,
String random,
ACTION.DDL action,
List<Run> runs) |
boolean |
DefaultDao.execute(JDBCRuntime runtime,
String random,
ACTION.DDL action,
Run run) |
protected boolean |
DefaultDao.execute(JDBCRuntime runtime,
String random,
boolean recover,
Procedure procedure) |
protected int |
DefaultDao.execute(JDBCRuntime runtime,
String random,
boolean recover,
RunPrepare prepare,
ConfigStore configs,
String... conditions) |
protected int |
DefaultDao.exeDelete(JDBCRuntime runtime,
String random,
boolean recover,
Run run)
执行删除
|
protected boolean |
DefaultDao.exists(JDBCRuntime runtime,
String random,
boolean recover,
RunPrepare prepare,
ConfigStore configs,
String... conditions) |
protected int |
DefaultDao.insert(JDBCRuntime runtime,
String random,
boolean recover,
String dest,
Object data,
boolean checkPrimary,
List<String> columns) |
protected int |
DefaultDao.insert(JDBCRuntime runtime,
String random,
boolean recover,
String dest,
Object data,
String... columns) |
protected List<Map<String,Object>> |
DefaultDao.maps(JDBCRuntime runtime,
String random,
String sql,
List<Object> values)
查询
|
protected <T> EntitySet<T> |
DefaultDao.querys(JDBCRuntime runtime,
String random,
boolean recover,
Class<T> clazz,
ConfigStore configs,
String... conditions) |
protected DataSet |
DefaultDao.querys(JDBCRuntime runtime,
String random,
boolean recover,
Procedure procedure,
PageNavi navi) |
protected <T> EntitySet<T> |
DefaultDao.querys(JDBCRuntime runtime,
String random,
boolean recover,
RunPrepare prepare,
Class<T> clazz,
ConfigStore configs,
String... conditions) |
protected DataSet |
DefaultDao.querys(JDBCRuntime runtime,
String random,
boolean recover,
RunPrepare prepare,
ConfigStore configs,
String... conditions) |
boolean |
DefaultDao.rename(JDBCRuntime runtime,
MasterTable origin,
String name) |
protected boolean |
DefaultDao.rename(JDBCRuntime runtime,
String random,
PartitionTable origin,
String name) |
boolean |
DefaultDao.rename(JDBCRuntime runtime,
String random,
Table origin,
String name) |
boolean |
DefaultDao.rename(JDBCRuntime runtime,
View origin,
String name) |
protected static DataRow |
DefaultDao.row(boolean system,
JDBCRuntime runtime,
LinkedHashMap<String,Column> metadatas,
ResultSet rs)
封装查询结果
|
protected DataSet |
DefaultDao.select(JDBCRuntime runtime,
String random,
boolean system,
String table,
String sql,
List<Object> values)
查询
|
protected <T> EntitySet<T> |
DefaultDao.select(JDBCRuntime runtime,
String random,
Class<T> clazz,
String table,
String sql,
List<Object> values,
int dependency)
查询
|
protected DataSet |
DefaultDao.select(JDBCRuntime runtime,
String random,
String table,
Run run) |
protected DataSet |
DefaultDao.select(JDBCRuntime runtime,
String random,
String table,
String sql,
List<Object> values) |
void |
DefaultDao.setRuntime(JDBCRuntime runtime) |
<T extends Tag> |
DefaultDao.tags(JDBCRuntime runtime,
boolean greedy,
Table table) |
protected int |
DefaultDao.update(JDBCRuntime runtime,
String random,
boolean recover,
String dest,
Object data,
ConfigStore configs,
List<String> columns) |
| 限定符和类型 | 方法和说明 |
|---|---|
default ACTION.SWITCH |
QueryInterceptor.after(JDBCRuntime runtime,
Procedure procedure,
List<Parameter> inputs,
List<Parameter> outputs,
PageNavi navi,
boolean success,
Object result,
long millis) |
default ACTION.SWITCH |
ExecuteInterceptor.after(JDBCRuntime runtime,
Procedure procedure,
String sql,
List<Parameter> inputs,
List<Parameter> outputs,
boolean success,
boolean result,
long millis)
合计总数之前调用,到这一步SQL已创建完成
|
default ACTION.SWITCH |
ExecuteInterceptor.after(JDBCRuntime runtime,
Run run,
boolean success,
int result,
long millis)
合计总数之前调用,到这一步SQL已创建完成
|
default ACTION.SWITCH |
DeleteInterceptor.after(JDBCRuntime runtime,
Run run,
boolean success,
int result,
long millis)
合计总数之前调用,到这一步SQL已创建完成
|
ACTION.SWITCH |
CountInterceptor.after(JDBCRuntime runtime,
Run run,
boolean success,
int result,
long millis)
合计总数之前调用,到这一步SQL已创建完成
|
default ACTION.SWITCH |
QueryInterceptor.after(JDBCRuntime runtime,
Run run,
boolean success,
Object result,
PageNavi navi,
long millis)
合计总数之前调用,到这一步SQL已创建完成
|
default ACTION.SWITCH |
InsertInterceptor.after(JDBCRuntime runtime,
Run run,
String dest,
Object data,
boolean checkPrimary,
List<String> columns,
boolean success,
int result,
long millis)
合计总数之前调用,到这一步SQL已创建完成
|
default ACTION.SWITCH |
UpdateInterceptor.after(JDBCRuntime runtime,
Run run,
String dest,
Object data,
ConfigStore configs,
List<String> columns,
boolean success,
int result,
long millis)
合计总数之前调用,到这一步SQL已创建完成
|
default ACTION.SWITCH |
DDInterceptor.after(JDBCRuntime runtime,
String random,
ACTION.DDL action,
Object metadata,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
QueryInterceptor.before(JDBCRuntime runtime,
Procedure procedure,
List<Parameter> inputs,
List<Parameter> outputs,
PageNavi navi) |
default ACTION.SWITCH |
ExecuteInterceptor.before(JDBCRuntime runtime,
Procedure procedure,
String sql,
List<Parameter> inputs,
List<Parameter> outputs)
合计总数之前调用,到这一步SQL已创建完成
|
default ACTION.SWITCH |
ExecuteInterceptor.before(JDBCRuntime runtime,
Run run)
合计总数之前调用,到这一步SQL已创建完成
|
default ACTION.SWITCH |
DeleteInterceptor.before(JDBCRuntime runtime,
Run run)
合计总数之前调用,到这一步SQL已创建完成
|
ACTION.SWITCH |
CountInterceptor.before(JDBCRuntime runtime,
Run run)
合计总数之前调用,到这一步SQL已创建完成
|
default ACTION.SWITCH |
QueryInterceptor.before(JDBCRuntime runtime,
Run run,
PageNavi navi)
合计总数之后调用,行数页数等信息在navi中,到这一步SQL已创建完成
|
default ACTION.SWITCH |
InsertInterceptor.before(JDBCRuntime runtime,
Run run,
String dest,
Object data,
boolean checkPrimary,
List<String> columns)
合计总数之前调用,到这一步SQL已创建完成
|
default ACTION.SWITCH |
UpdateInterceptor.before(JDBCRuntime runtime,
Run run,
String dest,
Object data,
ConfigStore configs,
List<String> columns)
合计总数之前调用,到这一步SQL已创建完成
|
default ACTION.SWITCH |
DDInterceptor.before(JDBCRuntime runtime,
String random,
ACTION.DDL action,
Object metadata,
List<Run> runs)
在SQL执行之前触发,注意到了这一步,SQL已经创建完成不可修改
|
default ACTION.SWITCH |
ExecuteInterceptor.prepare(JDBCRuntime runtime,
Procedure procedure) |
default ACTION.SWITCH |
QueryInterceptor.prepare(JDBCRuntime runtime,
Procedure procedure,
PageNavi navi) |
default ACTION.SWITCH |
QueryInterceptor.prepare(JDBCRuntime runtime,
RunPrepare prepare,
ConfigStore configs,
String... conditions)
创建查询SQL之前,可以在这一步修改查询条件
|
default ACTION.SWITCH |
ExecuteInterceptor.prepare(JDBCRuntime runtime,
RunPrepare prepare,
ConfigStore configs,
String... conditions)
创建 SQL之前,可以在这一步修改查询条件
|
ACTION.SWITCH |
CountInterceptor.prepare(JDBCRuntime runtime,
RunPrepare prepare,
ConfigStore configs,
String... conditions)
创建COUNT SQL之前,可以在这一步修改查询条件
|
default ACTION.SWITCH |
DDInterceptor.prepare(JDBCRuntime runtime,
String random,
ACTION.DDL action,
Object metadata)
在创建SQL之前触发,如果需要影响SQL创建可以在这一步修改metadata,类型一般是org.anyline.entity.data.Table/Column等
|
default ACTION.SWITCH |
DeleteInterceptor.prepare(JDBCRuntime runtime,
String table,
ConfigStore configs,
String... conditions) |
default ACTION.SWITCH |
InsertInterceptor.prepare(JDBCRuntime runtime,
String dest,
Object data,
boolean checkPrimary,
List<String> columns)
创建update SQL之前,可以在这一步修改查询条件
|
default ACTION.SWITCH |
DeleteInterceptor.prepare(JDBCRuntime runtime,
String dest,
Object data,
boolean checkPrimary,
List<String> columns)
创建delete SQL之前,可以在这一步修改查询条件
|
default ACTION.SWITCH |
UpdateInterceptor.prepare(JDBCRuntime runtime,
String dest,
Object data,
ConfigStore configs,
List<String> columns)
创建update SQL之前,可以在这一步修改查询条件
|
default ACTION.SWITCH |
DeleteInterceptor.prepare(JDBCRuntime runtime,
String table,
Object obj,
String... columns) |
default ACTION.SWITCH |
DeleteInterceptor.prepare(JDBCRuntime runtime,
String table,
String key,
Collection values) |
| 限定符和类型 | 方法和说明 |
|---|---|
static JDBCRuntime |
RuntimeHolder.getRuntime() |
static JDBCRuntime |
RuntimeHolder.getRuntime(String datasource) |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
RuntimeHolder.reg(String key,
JDBCRuntime runtime) |
| 限定符和类型 | 方法和说明 |
|---|---|
default ACTION.SWITCH |
DDListener.afterAdd(JDBCRuntime runtime,
String random,
Column column,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterAdd(JDBCRuntime runtime,
String random,
Constraint constraint,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterAdd(JDBCRuntime runtime,
String random,
ForeignKey foreign,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterAdd(JDBCRuntime runtime,
String random,
Index index,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterAdd(JDBCRuntime runtime,
String random,
PrimaryKey primary,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterAlter(JDBCRuntime runtime,
String random,
Column column,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterAlter(JDBCRuntime runtime,
String random,
Constraint constraint,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterAlter(JDBCRuntime runtime,
String random,
ForeignKey foreign,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterAlter(JDBCRuntime runtime,
String random,
Function function,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterAlter(JDBCRuntime runtime,
String random,
Index index,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterAlter(JDBCRuntime runtime,
String random,
MasterTable table,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterAlter(JDBCRuntime runtime,
String random,
PartitionTable table,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterAlter(JDBCRuntime runtime,
String random,
PrimaryKey primary,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterAlter(JDBCRuntime runtime,
String random,
Procedure procedure,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterAlter(JDBCRuntime runtime,
String random,
Table table,
Collection<Column> columns,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterAlter(JDBCRuntime runtime,
String random,
Table table,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterAlter(JDBCRuntime runtime,
String random,
Trigger trigger,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterAlter(JDBCRuntime runtime,
String random,
View view,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterAlterColumnException(JDBCRuntime runtime,
String random,
Table table,
Column column,
Exception exception)
修改列之后触发
触发之后如果返回true dao将再执行一次 alter column
一般在此事件中处理 发生类型转换时(JDBCRuntime runtime, String random, 如String to Number) 修改表内容
|
default ACTION.SWITCH |
DDListener.afterAlterColumnException(JDBCRuntime runtime,
String random,
Table table,
Column column,
int rows,
Exception exception)
修改列之后触发
触发之后如果返回true dao将再执行一次 alter column
一般在此事件中处理 发生类型转换时(JDBCRuntime runtime, String random, 如String to Number) 修改表内容
|
default ACTION.SWITCH |
DMListener.afterCount(JDBCRuntime runtime,
String random,
Run run,
boolean success,
int result,
long millis)
count之后调用
|
default ACTION.SWITCH |
DDListener.afterCreate(JDBCRuntime runtime,
String random,
Function function,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterCreate(JDBCRuntime runtime,
String random,
MasterTable table,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterCreate(JDBCRuntime runtime,
String random,
PartitionTable table,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterCreate(JDBCRuntime runtime,
String random,
Procedure procedure,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterCreate(JDBCRuntime runtime,
String random,
Table table,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterCreate(JDBCRuntime runtime,
String random,
Trigger trigger,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterCreate(JDBCRuntime runtime,
String random,
View view,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DMListener.afterDelete(JDBCRuntime runtime,
String random,
Run run,
boolean success,
int qty,
long millis)
执行删除后调用
|
default ACTION.SWITCH |
DDListener.afterDrop(JDBCRuntime runtime,
String random,
Column column,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterDrop(JDBCRuntime runtime,
String random,
Constraint constraint,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterDrop(JDBCRuntime runtime,
String random,
ForeignKey foreign,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterDrop(JDBCRuntime runtime,
String random,
Function function,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterDrop(JDBCRuntime runtime,
String random,
Index index,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterDrop(JDBCRuntime runtime,
String random,
MasterTable table,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterDrop(JDBCRuntime runtime,
String random,
PartitionTable table,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterDrop(JDBCRuntime runtime,
String random,
PrimaryKey primary,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterDrop(JDBCRuntime runtime,
String random,
Procedure procedure,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterDrop(JDBCRuntime runtime,
String random,
Table table,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterDrop(JDBCRuntime runtime,
String random,
Trigger trigger,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterDrop(JDBCRuntime runtime,
String random,
View view,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DMListener.afterExecute(JDBCRuntime runtime,
String random,
Procedure procedure,
boolean success,
long millis)
执行存储过程之后调用
|
default ACTION.SWITCH |
DMListener.afterExecute(JDBCRuntime runtime,
String random,
Run run,
boolean success,
int qty,
long millis)
执行SQL之后调用
|
default ACTION.SWITCH |
DMListener.afterExists(JDBCRuntime runtime,
String random,
Run run,
boolean success,
boolean exists,
long millis)
判断是否存在之后调用
|
default ACTION.SWITCH |
DMListener.afterInsert(JDBCRuntime runtime,
String random,
Run run,
int count,
String dest,
Object obj,
boolean checkPrimary,
List<String> columns,
boolean success,
int qty,
long millis)
插入之后调用
|
default ACTION.SWITCH |
DMListener.afterQuery(JDBCRuntime runtime,
String random,
Procedure procedure,
boolean success,
DataSet set,
long millis)
查询存储过程之后调用
|
default ACTION.SWITCH |
DMListener.afterQuery(JDBCRuntime runtime,
String random,
Run run,
boolean success,
DataSet set,
long millis)
查询之后调用(JDBCRuntime runtime, String random, 调用service.query或service.querys)
|
default ACTION.SWITCH |
DMListener.afterQuery(JDBCRuntime runtime,
String random,
Run run,
boolean success,
EntitySet<?> maps,
long millis) |
default ACTION.SWITCH |
DMListener.afterQuery(JDBCRuntime runtime,
String random,
Run run,
boolean success,
List<?> maps,
long millis)
查询之后调用(JDBCRuntime runtime, String random, 调用service.map或service.maps)
|
default ACTION.SWITCH |
DDListener.afterRename(JDBCRuntime runtime,
String random,
Column column,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterRename(JDBCRuntime runtime,
String random,
Constraint constraint,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterRename(JDBCRuntime runtime,
String random,
ForeignKey foreign,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterRename(JDBCRuntime runtime,
String random,
Function function,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterRename(JDBCRuntime runtime,
String random,
Index index,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterRename(JDBCRuntime runtime,
String random,
MasterTable table,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterRename(JDBCRuntime runtime,
String random,
PartitionTable table,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterRename(JDBCRuntime runtime,
String random,
PrimaryKey primary,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterRename(JDBCRuntime runtime,
String random,
Procedure procedure,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterRename(JDBCRuntime runtime,
String random,
Table table,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterRename(JDBCRuntime runtime,
String random,
Trigger trigger,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DDListener.afterRename(JDBCRuntime runtime,
String random,
View view,
List<Run> runs,
boolean result,
long millis) |
default ACTION.SWITCH |
DMListener.afterTotal(JDBCRuntime runtime,
String random,
Run run,
boolean success,
int total,
long millis)
统计总记录数之后调用
|
default ACTION.SWITCH |
DMListener.afterUpdate(JDBCRuntime runtime,
String random,
Run run,
int count,
String dest,
Object obj,
List<String> columns,
boolean success,
int qty,
long millis)
更新之前调用
|
default ACTION.SWITCH |
DDListener.beforeAdd(JDBCRuntime runtime,
String random,
Column column,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeAdd(JDBCRuntime runtime,
String random,
Constraint constraint,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeAdd(JDBCRuntime runtime,
String random,
ForeignKey foreign,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeAdd(JDBCRuntime runtime,
String random,
Index index,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeAdd(JDBCRuntime runtime,
String random,
PrimaryKey primary,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeAlter(JDBCRuntime runtime,
String random,
Column column,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeAlter(JDBCRuntime runtime,
String random,
Constraint constraint,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeAlter(JDBCRuntime runtime,
String random,
ForeignKey foreign,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeAlter(JDBCRuntime runtime,
String random,
Function function,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeAlter(JDBCRuntime runtime,
String random,
Index index,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeAlter(JDBCRuntime runtime,
String random,
MasterTable table,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeAlter(JDBCRuntime runtime,
String random,
PartitionTable table,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeAlter(JDBCRuntime runtime,
String random,
PrimaryKey primary,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeAlter(JDBCRuntime runtime,
String random,
Procedure procedure,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeAlter(JDBCRuntime runtime,
String random,
Table table,
Collection<Column> columns) |
default ACTION.SWITCH |
DDListener.beforeAlter(JDBCRuntime runtime,
String random,
Table table,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeAlter(JDBCRuntime runtime,
String random,
Trigger trigger,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeAlter(JDBCRuntime runtime,
String random,
View view,
List<Run> runs) |
default ACTION.SWITCH |
DMListener.beforeCount(JDBCRuntime runtime,
String random,
Run run)
count之前调用
|
default ACTION.SWITCH |
DDListener.beforeCreate(JDBCRuntime runtime,
String random,
Function function,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeCreate(JDBCRuntime runtime,
String random,
MasterTable table,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeCreate(JDBCRuntime runtime,
String random,
PartitionTable table,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeCreate(JDBCRuntime runtime,
String random,
Procedure procedure,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeCreate(JDBCRuntime runtime,
String random,
Table table,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeCreate(JDBCRuntime runtime,
String random,
Trigger trigger,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeCreate(JDBCRuntime runtime,
String random,
View view,
List<Run> runs) |
default ACTION.SWITCH |
DMListener.beforeDelete(JDBCRuntime runtime,
String random,
Run run)
执行删除前调用
|
default ACTION.SWITCH |
DDListener.beforeDrop(JDBCRuntime runtime,
String random,
Column column,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeDrop(JDBCRuntime runtime,
String random,
Constraint constraint,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeDrop(JDBCRuntime runtime,
String random,
ForeignKey foreign,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeDrop(JDBCRuntime runtime,
String random,
Function function,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeDrop(JDBCRuntime runtime,
String random,
Index index,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeDrop(JDBCRuntime runtime,
String random,
MasterTable table,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeDrop(JDBCRuntime runtime,
String random,
PartitionTable table,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeDrop(JDBCRuntime runtime,
String random,
PrimaryKey primary,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeDrop(JDBCRuntime runtime,
String random,
Procedure procedure,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeDrop(JDBCRuntime runtime,
String random,
Table table,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeDrop(JDBCRuntime runtime,
String random,
Trigger trigger,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeDrop(JDBCRuntime runtime,
String random,
View view,
List<Run> runs) |
default ACTION.SWITCH |
DMListener.beforeExecute(JDBCRuntime runtime,
String random,
Procedure procedure) |
default ACTION.SWITCH |
DMListener.beforeExecute(JDBCRuntime runtime,
String random,
Run run)
执行SQL之前调用
|
default ACTION.SWITCH |
DMListener.beforeExists(JDBCRuntime runtime,
String random,
Run run)
判断是否存在之前调用
|
default ACTION.SWITCH |
DMListener.beforeInsert(JDBCRuntime runtime,
String random,
Run run,
String dest,
Object obj,
boolean checkPrimary,
List<String> columns)
创建insert sql之前调用
|
default ACTION.SWITCH |
DMListener.beforeQuery(JDBCRuntime runtime,
String random,
Procedure procedure)
查询存过程之前调用
|
default ACTION.SWITCH |
DMListener.beforeQuery(JDBCRuntime runtime,
String random,
Run run,
int total)
查询之前调用
不满足查询条件的不会走到这一步(JDBCRuntime runtime, String random, 如必须参数未提供) 只有确定执行查询时才会到这一步,到了这一步已经不能修改查询条件 要修改查询条件可以在prepareQuery实现 |
default ACTION.SWITCH |
DDListener.beforeRename(JDBCRuntime runtime,
String random,
Column column,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeRename(JDBCRuntime runtime,
String random,
Constraint constraint,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeRename(JDBCRuntime runtime,
String random,
ForeignKey foreign,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeRename(JDBCRuntime runtime,
String random,
Function function,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeRename(JDBCRuntime runtime,
String random,
Index index,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeRename(JDBCRuntime runtime,
String random,
MasterTable table,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeRename(JDBCRuntime runtime,
String random,
PartitionTable table,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeRename(JDBCRuntime runtime,
String random,
PrimaryKey primary,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeRename(JDBCRuntime runtime,
String random,
Procedure procedure,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeRename(JDBCRuntime runtime,
String random,
Table table,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeRename(JDBCRuntime runtime,
String random,
Trigger trigger,
List<Run> runs) |
default ACTION.SWITCH |
DDListener.beforeRename(JDBCRuntime runtime,
String random,
View view,
List<Run> runs) |
default ACTION.SWITCH |
DMListener.beforeTotal(JDBCRuntime runtime,
String random,
Run run)
统计总记录数之前调用
|
default ACTION.SWITCH |
DMListener.beforeUpdate(JDBCRuntime runtime,
String random,
Run run,
String dest,
Object obj,
List<String> columns)
更新之前调用
|
default ACTION.SWITCH |
DDListener.parepareAlter(JDBCRuntime runtime,
String random,
Table table) |
default ACTION.SWITCH |
DDListener.prepareAdd(JDBCRuntime runtime,
String random,
Column column)
准备添加列
|
default ACTION.SWITCH |
DDListener.prepareAdd(JDBCRuntime runtime,
String random,
Constraint constraint)
创建constraint之前触发
|
default ACTION.SWITCH |
DDListener.prepareAdd(JDBCRuntime runtime,
String random,
ForeignKey foreign)
创建 foreign 之前触发
|
default ACTION.SWITCH |
DDListener.prepareAdd(JDBCRuntime runtime,
String random,
Index index)
创建 index 之前触发
|
default ACTION.SWITCH |
DDListener.prepareAdd(JDBCRuntime runtime,
String random,
PrimaryKey primary)
创建 primary 之前触发
|
default ACTION.SWITCH |
DDListener.prepareAlter(JDBCRuntime runtime,
String random,
Column column) |
default ACTION.SWITCH |
DDListener.prepareAlter(JDBCRuntime runtime,
String random,
Constraint constraint) |
default ACTION.SWITCH |
DDListener.prepareAlter(JDBCRuntime runtime,
String random,
ForeignKey foreign) |
default ACTION.SWITCH |
DDListener.prepareAlter(JDBCRuntime runtime,
String random,
Function function) |
default ACTION.SWITCH |
DDListener.prepareAlter(JDBCRuntime runtime,
String random,
Index index) |
default ACTION.SWITCH |
DDListener.prepareAlter(JDBCRuntime runtime,
String random,
MasterTable table) |
default ACTION.SWITCH |
DDListener.prepareAlter(JDBCRuntime runtime,
String random,
PartitionTable table) |
default ACTION.SWITCH |
DDListener.prepareAlter(JDBCRuntime runtime,
String random,
PrimaryKey primary) |
default ACTION.SWITCH |
DDListener.prepareAlter(JDBCRuntime runtime,
String random,
Procedure procedure) |
default ACTION.SWITCH |
DDListener.prepareAlter(JDBCRuntime runtime,
String random,
Trigger trigger) |
default ACTION.SWITCH |
DDListener.prepareAlter(JDBCRuntime runtime,
String random,
View view) |
default ACTION.SWITCH |
DDListener.prepareCreate(JDBCRuntime runtime,
String random,
Function function)
创建 function 之前触发
|
default ACTION.SWITCH |
DDListener.prepareCreate(JDBCRuntime runtime,
String random,
MasterTable table)
创建 MasterTable 之前调用
|
default ACTION.SWITCH |
DDListener.prepareCreate(JDBCRuntime runtime,
String random,
PartitionTable table)
创建 PartitionTable 之前调用
|
default ACTION.SWITCH |
DDListener.prepareCreate(JDBCRuntime runtime,
String random,
Procedure procedure)
创建procedure之前触发
|
default ACTION.SWITCH |
DDListener.prepareCreate(JDBCRuntime runtime,
String random,
Table table)
创建 table 之前触发
|
default ACTION.SWITCH |
DDListener.prepareCreate(JDBCRuntime runtime,
String random,
Trigger trigger)
创建 trigger 之前触发
|
default ACTION.SWITCH |
DDListener.prepareCreate(JDBCRuntime runtime,
String random,
View view)
创建 view 之前调用
|
default ACTION.SWITCH |
DMListener.prepareDelete(JDBCRuntime runtime,
String random,
String dest,
Object obj,
String... columns)
创建删除SQL前调用(JDBCRuntime runtime, String random, 根据Entity/DataRow),修改删除条件可以在这一步实现
注意不是beforeDelete 注意prepareDelete有两个函数需要实现 service.delete(JDBCRuntime runtime, String random, DataRow/Entity){return SWITCH.CONTINUE;} |
default ACTION.SWITCH |
DMListener.prepareDelete(JDBCRuntime runtime,
String random,
String table,
String key,
Object values)
创建删除SQL前调用(JDBCRuntime runtime, String random, 根据条件),修改删除条件可以在这一步实现
注意不是beforeDelete 注意prepareDelete有两个函数需要实现 service.delete(JDBCRuntime runtime, String random, "CRM_USER", "ID", "1", "2", "3"){return SWITCH.CONTINUE;} |
default ACTION.SWITCH |
DDListener.prepareDrop(JDBCRuntime runtime,
String random,
Column column) |
default ACTION.SWITCH |
DDListener.prepareDrop(JDBCRuntime runtime,
String random,
Constraint constraint) |
default ACTION.SWITCH |
DDListener.prepareDrop(JDBCRuntime runtime,
String random,
ForeignKey foreign) |
default ACTION.SWITCH |
DDListener.prepareDrop(JDBCRuntime runtime,
String random,
Function function) |
default ACTION.SWITCH |
DDListener.prepareDrop(JDBCRuntime runtime,
String random,
Index index) |
default ACTION.SWITCH |
DDListener.prepareDrop(JDBCRuntime runtime,
String random,
MasterTable table) |
default ACTION.SWITCH |
DDListener.prepareDrop(JDBCRuntime runtime,
String random,
PartitionTable table) |
default ACTION.SWITCH |
DDListener.prepareDrop(JDBCRuntime runtime,
String random,
PrimaryKey primary) |
default ACTION.SWITCH |
DDListener.prepareDrop(JDBCRuntime runtime,
String random,
Procedure procedure) |
default ACTION.SWITCH |
DDListener.prepareDrop(JDBCRuntime runtime,
String random,
Table table) |
default ACTION.SWITCH |
DDListener.prepareDrop(JDBCRuntime runtime,
String random,
Trigger trigger) |
default ACTION.SWITCH |
DDListener.prepareDrop(JDBCRuntime runtime,
String random,
View view) |
default ACTION.SWITCH |
DMListener.prepareExecute(JDBCRuntime runtime,
String random,
Procedure procedure)
执行存储过程之前调用
|
default ACTION.SWITCH |
DMListener.prepareInsert(JDBCRuntime runtime,
String random,
String dest,
Object obj,
boolean checkPrimary,
List<String> columns)
创建插入相关的SQL之前调用
要修改插入内容可以在这一步实现,注意不是在beforeInsert |
default ACTION.SWITCH |
DMListener.prepareQuery(JDBCRuntime runtime,
String random,
RunPrepare prepare,
ConfigStore configs,
String... conditions)
创建查相关的SQL之前调用,包括slect exists count等
要修改查询条件可以在这一步实现,注意不是在beforeQuery |
default ACTION.SWITCH |
DDListener.prepareRename(JDBCRuntime runtime,
String random,
Column column) |
default ACTION.SWITCH |
DDListener.prepareRename(JDBCRuntime runtime,
String random,
Constraint constraint) |
default ACTION.SWITCH |
DDListener.prepareRename(JDBCRuntime runtime,
String random,
ForeignKey foreign) |
default ACTION.SWITCH |
DDListener.prepareRename(JDBCRuntime runtime,
String random,
Function function) |
default ACTION.SWITCH |
DDListener.prepareRename(JDBCRuntime runtime,
String random,
Index index) |
default ACTION.SWITCH |
DDListener.prepareRename(JDBCRuntime runtime,
String random,
MasterTable table) |
default ACTION.SWITCH |
DDListener.prepareRename(JDBCRuntime runtime,
String random,
PartitionTable table) |
default ACTION.SWITCH |
DDListener.prepareRename(JDBCRuntime runtime,
String random,
PrimaryKey primary) |
default ACTION.SWITCH |
DDListener.prepareRename(JDBCRuntime runtime,
String random,
Procedure procedure) |
default ACTION.SWITCH |
DDListener.prepareRename(JDBCRuntime runtime,
String random,
Table table) |
default ACTION.SWITCH |
DDListener.prepareRename(JDBCRuntime runtime,
String random,
Trigger trigger) |
default ACTION.SWITCH |
DDListener.prepareRename(JDBCRuntime runtime,
String random,
View view) |
default ACTION.SWITCH |
DMListener.prepareUpdate(JDBCRuntime runtime,
String random,
String dest,
Object obj,
ConfigStore configs,
boolean checkPrimary,
List<String> columns)
创建更新相关的SQL之前调用
要修改更新内容或条件可以在这一步实现,注意不是在beforeUpdate |
default ACTION.SWITCH |
DMListener.slow(JDBCRuntime runtime,
String random,
ACTION.DML action,
Run run,
String sql,
List inputs,
List outputs,
boolean success,
Object result,
long millis)
执行SQL时间超限时触发
|
| 限定符和类型 | 方法和说明 |
|---|---|
ACTION.SWITCH |
DefaultDDListener.afterAlterColumnException(JDBCRuntime runtime,
String random,
Table table,
Column column,
Exception exception)
ddl异常触发
|
ACTION.SWITCH |
DefaultDDListener.exeAfterException(JDBCRuntime runtime,
Table table,
Column column,
Exception exception) |
| 限定符和类型 | 方法和说明 |
|---|---|
static ACTION.SWITCH |
InterceptorProxy.after(JDBCRuntime runtime,
String random,
ACTION.DDL action,
Object metadata,
List<Run> runs,
boolean result,
long millis) |
static ACTION.SWITCH |
InterceptorProxy.afterCount(JDBCRuntime runtime,
String random,
Run run,
boolean exe,
int result,
long millis) |
static ACTION.SWITCH |
InterceptorProxy.afterDelete(JDBCRuntime runtime,
String random,
Run run,
boolean success,
int result,
long millis) |
static ACTION.SWITCH |
InterceptorProxy.afterExecute(JDBCRuntime runtime,
String random,
Procedure procedure,
String sql,
List<Parameter> inputs,
List<Parameter> outputs,
boolean success,
boolean result,
long millis) |
static ACTION.SWITCH |
InterceptorProxy.afterExecute(JDBCRuntime runtime,
String random,
Run run,
boolean success,
int result,
long millis) |
static ACTION.SWITCH |
InterceptorProxy.afterInsert(JDBCRuntime runtime,
String random,
Run run,
String dest,
Object data,
boolean checkPrimary,
List<String> columns,
boolean success,
int result,
long millis) |
static ACTION.SWITCH |
InterceptorProxy.afterQuery(JDBCRuntime runtime,
String random,
Procedure procedure,
List<Parameter> inputs,
List<Parameter> outputs,
PageNavi navi,
boolean success,
Object resutl,
long millis) |
static ACTION.SWITCH |
InterceptorProxy.afterQuery(JDBCRuntime runtime,
String random,
Run run,
boolean exe,
Object result,
PageNavi navi,
long millis) |
static ACTION.SWITCH |
InterceptorProxy.afterUpdate(JDBCRuntime runtime,
String random,
Run run,
String dest,
Object data,
ConfigStore configs,
List<String> columns,
boolean success,
int result,
long millis) |
static ACTION.SWITCH |
InterceptorProxy.before(JDBCRuntime runtime,
String random,
ACTION.DDL action,
Object metadata,
List<Run> runs) |
static ACTION.SWITCH |
InterceptorProxy.beforeCount(JDBCRuntime runtime,
String random,
Run run) |
static ACTION.SWITCH |
InterceptorProxy.beforeDelete(JDBCRuntime runtime,
String random,
Run run) |
static ACTION.SWITCH |
InterceptorProxy.beforeExecute(JDBCRuntime runtime,
String random,
Procedure procedure,
String sql,
List<Parameter> inputs,
List<Parameter> outputs) |
static ACTION.SWITCH |
InterceptorProxy.beforeExecute(JDBCRuntime runtime,
String random,
Run run) |
static ACTION.SWITCH |
InterceptorProxy.beforeInsert(JDBCRuntime runtime,
String random,
Run run,
String dest,
Object data,
boolean checkPrimary,
List<String> columns) |
static ACTION.SWITCH |
InterceptorProxy.beforeQuery(JDBCRuntime runtime,
String random,
Procedure procedure,
List<Parameter> inputs,
List<Parameter> outputs,
PageNavi navi) |
static ACTION.SWITCH |
InterceptorProxy.beforeQuery(JDBCRuntime runtime,
String random,
Run run,
PageNavi navi) |
static ACTION.SWITCH |
InterceptorProxy.beforeUpdate(JDBCRuntime runtime,
String random,
Run run,
String dest,
Object data,
ConfigStore configs,
List<String> columns) |
static ACTION.SWITCH |
InterceptorProxy.prepare(JDBCRuntime runtime,
String random,
ACTION.DDL action,
Object metadata)
DDL
|
static ACTION.SWITCH |
InterceptorProxy.prepareCount(JDBCRuntime runtime,
String random,
RunPrepare prepare,
ConfigStore configs,
String... conditions) |
static ACTION.SWITCH |
InterceptorProxy.prepareDelete(JDBCRuntime runtime,
String random,
String table,
ConfigStore configs,
String... conditions) |
static ACTION.SWITCH |
InterceptorProxy.prepareDelete(JDBCRuntime runtime,
String random,
String dest,
Object obj,
String... columns) |
static ACTION.SWITCH |
InterceptorProxy.prepareDelete(JDBCRuntime runtime,
String random,
String table,
String key,
Collection values) |
static ACTION.SWITCH |
InterceptorProxy.prepareExecute(JDBCRuntime runtime,
String random,
Procedure procedure) |
static ACTION.SWITCH |
InterceptorProxy.prepareExecute(JDBCRuntime runtime,
String random,
RunPrepare prepare,
ConfigStore configs,
String... conditions) |
static ACTION.SWITCH |
InterceptorProxy.prepareInsert(JDBCRuntime runtime,
String random,
String dest,
Object data,
boolean checkPrimary,
List<String> columns) |
static ACTION.SWITCH |
InterceptorProxy.prepareQuery(JDBCRuntime runtime,
String random,
Procedure procedure,
PageNavi navi) |
static ACTION.SWITCH |
InterceptorProxy.prepareQuery(JDBCRuntime runtime,
String random,
RunPrepare prepare,
ConfigStore configs,
String... conditions)
DML
|
static ACTION.SWITCH |
InterceptorProxy.prepareUpdate(JDBCRuntime runtime,
String random,
String dest,
Object data,
ConfigStore configs,
List<String> columns) |
Copyright © 2023. All rights reserved.