cn.sylinx.hbatis.ext.res.ClasspathSqlResource 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
The newest version!
package cn.sylinx.hbatis.ext.res;
public class ClasspathSqlResource {
private String sqlpath;
private StatementHandler statementHandler;
private boolean format = true;
public ClasspathSqlResource() {
}
public ClasspathSqlResource(String sqlpath) {
this.sqlpath = sqlpath;
}
public StatementHandler getStatementHandler() {
return statementHandler;
}
public void setStatementHandler(StatementHandler statementHandler) {
this.statementHandler = statementHandler;
}
public SqlResourceType getSqlResourceType() {
return SqlResourceType.CLASSPATHSQL;
}
public String getSqlResource() {
return getSqlpath();
}
public String getSqlpath() {
return sqlpath;
}
public void setSqlpath(String sqlpath) {
this.sqlpath = sqlpath;
}
public boolean isFormat() {
return format;
}
public void setFormat(boolean format) {
this.format = format;
}
}