All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.sylinx.hbatis.ext.xmapper.xml.Sql Maven / Gradle / Ivy

The newest version!
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;
	}
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy