cn.sylinx.hbatis.plugin.statement.StatementHandlerPlugin Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hbatis-core Show documentation
Show all versions of hbatis-core Show documentation
hbatis is a simple orm framework
package cn.sylinx.hbatis.plugin.statement;
import cn.sylinx.hbatis.plugin.IPlugin;
public class StatementHandlerPlugin implements IPlugin {
// sql语句处理器
private String statementHandlerClass;
public void setStatementHandlerClass(String statementHandlerClass) {
this.statementHandlerClass = statementHandlerClass;
}
@Override
public boolean start(Object... objects) {
StatementHandlerManager.get().init(statementHandlerClass);
return true;
}
@Override
public boolean stop() {
return true;
}
}