简单DAO调用方法示例
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
LAPTOP-SB56SG4Q\86185 d09ec1b25d 改readme 3 years ago
lib 提交demo示例 3 years ago
src/main/java/com/tptj/demo/hg/simple/dao 提交demo示例 3 years ago
README.md 改readme 3 years ago
build.gradle 提交demo示例 3 years ago
encrypt.xml 提交demo示例 3 years ago
plugin.xml 提交demo示例 3 years ago

README.md

demo-simple-dao

简单DAO调用方法示例
需要依赖 tool-simple-dao-1.0.jar
调用方法:
1.在finedb中注册新的表实体
SimpleDatabaseCaller.getInstance().register(Class<? extends BaseEntity>... entities);
注:此方法每个插件每次启动只能调用一次,调用多次会出现 xxx表已存在的异常!所以推荐放到任意单例对象初始化中调用

2.调用任意插件申明的表实体
SimpleDatabaseCaller.getInstance().createPluginWork().add/update/delete/find/simpleFind/count/simpleCount.commit();

3.调用产品自身的表实体(注,当前只能调用定时调度以外的其他表实体)
SimpleDatabaseCaller.getInstance().createDecisionWork().add/update/delete/find/simpleFind/count/simpleCount.commit();

具体示例可以看demo中的DemoService即可