cn.sylinx.hbatis.ext.xmapper.xml.Sql Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hbatis-xmapper Show documentation
Show all versions of hbatis-xmapper Show documentation
hbatis-xmapper is a simple orm framework, extends hbatis-core
package cn.sylinx.hbatis.ext.xmapper.xml;
/**
* 单个sql xml描述
*
*/
public class Sql {
/**
* 命名空间ID
*/
private String nameSpaceId;
/**
* sql id,单个命名空间里,保持唯一
*/
private String id;
/**
* 用法 , insert、delete、update、query
*/
private String forUse;
/**
* sql语句描述
*/
private String statement;
/**
* 主要针对查询,字段映射,仅当forUse=query时, queryMapping 不应为空
*/
private QueryMapping queryMapping;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getForUse() {
return forUse;
}
public void setForUse(String forUse) {
this.forUse = forUse;
}
public String getStatement() {
return statement;
}
public void setStatement(String statement) {
this.statement = statement;
}
public QueryMapping getQueryMapping() {
return queryMapping;
}
public void setQueryMapping(QueryMapping queryMapping) {
this.queryMapping = queryMapping;
}
public String getNameSpaceId() {
return nameSpaceId;
}
public void setNameSpaceId(String nameSpaceId) {
this.nameSpaceId = nameSpaceId;
}
}