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

cn.vonce.sql.bean.ConditionInfo Maven / Gradle / Ivy

There is a newer version: 1.7.0-beta1
Show newest version
package cn.vonce.sql.bean;

import cn.vonce.sql.enumerate.SqlLogic;
import cn.vonce.sql.enumerate.SqlOperator;

import java.io.Serializable;

/**
 * Sql where条件形态
 *
 * @author Jovi
 * @version 1.0
 * @email [email protected]
 * @date 2018年4月16日下午7:15:10
 */
public class ConditionInfo extends SqlField implements Serializable {

    /**
     *
     */
    private static final long serialVersionUID = 1L;

    public ConditionInfo() {
        super();
    }

    public ConditionInfo(String field, Object value) {
        this(null, "", "", field, value, null);
    }

    public ConditionInfo(String tableAlias, String field, Object value) {
        this(null, "", tableAlias, field, value, null);
    }

    public ConditionInfo(String schema, String tableAlias, String field, Object value, SqlOperator sqlOperator) {
        this(null, schema, tableAlias, field, value, sqlOperator);
    }

    public ConditionInfo(SqlLogic sqlLogic, String schema, String tableAlias, String field, Object value, SqlOperator sqlOperator) {
        super(schema, tableAlias, field);
        this.sqlLogic = sqlLogic;
        this.value = value;
        this.sqlOperator = sqlOperator;
    }

    private SqlLogic sqlLogic;
    private Object value;
    private SqlOperator sqlOperator;


    public Object getValue() {
        return value;
    }

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

    public SqlOperator getSqlOperator() {
        return sqlOperator;
    }

    public void setSqlOperator(SqlOperator sqlOperator) {
        this.sqlOperator = sqlOperator;
    }

    public SqlLogic getSqlLogic() {
        return sqlLogic;
    }

    public void setSqlLogic(SqlLogic sqlLogic) {
        this.sqlLogic = sqlLogic;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy