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

cn.tangjiabao.halodb.core.bean.ColumnCondition Maven / Gradle / Ivy

Go to download

Orm whitch The highest development efficiency and Efficiency is the fastest

There is a newer version: 0.17
Show newest version
package cn.tangjiabao.halodb.core.bean;

import java.util.List;

import cn.tangjiabao.halodb.core.utils.xml.XmlUtils;

/**
 * 字段条件中转实体
 * @author [email protected]
 * @date 2015-6-14 下午12:43:44
 */
public class ColumnCondition {
	private String originalKey; 
	private String  leftBracket="";
	private String  rightBracket="";
	private String andOr="and";
	private String fieldName= "";
	private String tableAs="t.";
	private String columnName="";
	private String condition="";// 条件
	private Object value;//值
	private List cookedValue;
	private String directValue="?";//值
	private String type;
	private boolean ifQuery=false;
    private Boolean tempFlag=true;//临时用于判断是模糊还是日期模糊
    private  int   parameterNum=1;//参数个数
    private  String sqlFragment;
    private  boolean xmlSqlFlag=false;
    private List values; 
  private XmlUtils xmlUtils;
	public List getValues() {
		return values;
	}

	public void setValues(List values) {
		this.values = values;
	}

	public int getParameterNum() {
		return parameterNum;
	}

	public void setParameterNum(int parameterNum) {
		this.parameterNum = parameterNum;
	}

	public Boolean getTempFlag() {
		return tempFlag;
	}

	public ColumnCondition setTempFlag(Boolean tempFlag) {
		this.tempFlag = tempFlag;
		return this;
	}

	public List getCookedValue() {
		return cookedValue;
	}

	public boolean getXmlSqlFlag() {
		return xmlSqlFlag;
	}

	public void setXmlSqlFlag(boolean xmlSqlFlag) {
		this.xmlSqlFlag = xmlSqlFlag;
	}

	public void setCookedValue(List cookedValue) {
		this.cookedValue = cookedValue;
	}

	public String getOriginalKey() {
		return originalKey;
	}

	public void setOriginalKey(String originalKey) {
		this.originalKey = originalKey;
	}

	public String getDirectValue() {
		return directValue;
	}

	public String getSqlFragment() {
		return sqlFragment;
	}

	public void setSqlFragment(String sqlFragment) {
		this.sqlFragment = sqlFragment;
	}

	public ColumnCondition setDirectValue(String directValue) {
		this.directValue = directValue;
		return this;
	}

	public String getLeftBracket() {
		return leftBracket;
	}

	public ColumnCondition setLeftBracket(String leftBracket) {
		this.leftBracket = leftBracket;
		return this;
	}

	public String getRightBracket() {
		return rightBracket;
	}

	public ColumnCondition setRightBracket(String rightBracket) {
		this.rightBracket = rightBracket;
		return this;
	}

	public String getAndOr() {
		return andOr;
	}

	public ColumnCondition setAndOr(String andOr) {
		this.andOr = andOr;
		return this;
	}



	public String getFieldName() {
		return fieldName;
	}

	public void setFieldName(String fieldName) {
		this.fieldName = fieldName;
	}

	public Object getValue() {
		return value;
	}

	public ColumnCondition setValue(Object value) {
		this.value = value;
		return this;
	}



	public String getColumnName() {
		return columnName;
	}

	public ColumnCondition setColumnName(String columnName) {
		this.columnName = columnName;
		return this;
	}

	public String getCondition() {
		return condition;
	}

	public ColumnCondition setCondition(String condition) {
		this.condition = condition;
		return this;
	}

	public String getType() {
		return type;
	}

	public ColumnCondition setType(String type) {
		this.type = type;
		return this;
	}

	public boolean getIfQuery() {
		return ifQuery;
	}

	public ColumnCondition setIfQuery(boolean ifQuery) {
		this.ifQuery = ifQuery;
		return this;
	}

	public String getTableAs() {
		return tableAs;
	}

	public void setTableAs(String tableAs) {
		this.tableAs = tableAs;
	}



	public XmlUtils getXmlUtils() {
		return xmlUtils;
	}

	public void setXmlUtils(XmlUtils xmlUtils) {
		this.xmlUtils = xmlUtils;
	}





}