<reponame>srhojo/fenix-warehouse
package com.hojo.fenix.warehouse.utils.ql.specfications;

public class SearchCriteria {
    private String key;
    private SearchOperation operation;
    private Object value;
    private boolean orPredicate;

    public SearchCriteria() {
    }

    public SearchCriteria(final String key, final SearchOperation operation, final Object value) {
        super();
        this.key = key;
        this.operation = operation;
        this.value = value;
    }

    /**
     * @return the key
     */
    public String getKey() {
        return key;
    }

    /**
     * @param key the key to set
     */
    public void setKey(final String key) {
        this.key = key;
    }

    /**
     * @return the operation
     */
    public SearchOperation getOperation() {
        return operation;
    }

    /**
     * @param operation the operation to set
     */
    public void setOperation(final SearchOperation operation) {
        this.operation = operation;
    }

    /**
     * @return the value
     */
    public Object getValue() {
        return value;
    }

    /**
     * @param value the value to set
     */
    public void setValue(final Object value) {
        this.value = value;
    }

    /**
     * @return the orPredicate
     */
    public boolean isOrPredicate() {
        return orPredicate;
    }

    /**
     * @param orPredicate the orPredicate to set
     */
    public void setOrPredicate(final boolean orPredicate) {
        this.orPredicate = orPredicate;
    }

}
