|
|
|
@ -5,12 +5,12 @@
|
|
|
|
|
调用方法:\ |
|
|
|
|
1.在finedb中注册新的表实体\ |
|
|
|
|
SimpleDatabaseCaller.getInstance().register(Class<? extends BaseEntity>... entities);\ |
|
|
|
|
注:此方法每个插件每次启动只能调用一次,调用多次会出现 xxx表已存在的异常!所以推荐放到任意单例对象初始化中调用\ |
|
|
|
|
注:此方法每个插件每次启动只能调用一次,调用多次会出现 xxx表已存在的异常!所以推荐放到任意单例对象初始化中调用 |
|
|
|
|
|
|
|
|
|
2.调用任意插件申明的表实体\ |
|
|
|
|
SimpleDatabaseCaller.getInstance().createPluginWork().add/update/delete/find/simpleFind/count/simpleCount.commit();\ |
|
|
|
|
SimpleDatabaseCaller.getInstance().createPluginWork().add/update/delete/find/simpleFind/count/simpleCount.commit(); |
|
|
|
|
|
|
|
|
|
3.调用产品自身的表实体(注,当前只能调用定时调度以外的其他表实体)\ |
|
|
|
|
SimpleDatabaseCaller.getInstance().createDecisionWork().add/update/delete/find/simpleFind/count/simpleCount.commit();\ |
|
|
|
|
SimpleDatabaseCaller.getInstance().createDecisionWork().add/update/delete/find/simpleFind/count/simpleCount.commit(); |
|
|
|
|
|
|
|
|
|
具体示例可以看demo中的DemoService即可 |