package com.sbiger.qbe;

/**
 * Created by sbiger on 2016-11-24.
 */
public interface CriteriaExample<T> {
    enum LogicType{
        AND,
        OR
    }

    CriteriaExample<T> asc();

    CriteriaExample<T> desc();

    CriteriaExample<T> avg();

    CriteriaExample<T> sum();

    CriteriaExample<T> sumAsLong();

    CriteriaExample<T> sumAsDouble();

    CriteriaExample<T> max();

    CriteriaExample<T> in();

    CriteriaExample<T> greatest();

    CriteriaExample<T> least();

    CriteriaExample<T> count();

    CriteriaExample<T> countDistinct();

    CriteriaExample<T> exists();

    CriteriaExample<T> all();

    CriteriaExample<T> some();

    CriteriaExample<T> any();

    CriteriaExample<T> and();

    CriteriaExample<T> or();

    CriteriaExample<T> not();

    CriteriaExample<T> isTrue();

    CriteriaExample<T> isFalse();

    CriteriaExample<T> isNull();

    CriteriaExample<T> isNotNull();

    CriteriaExample<T> equal();

    CriteriaExample<T> notEqual();

    CriteriaExample<T> greaterThan();

    CriteriaExample<T> greaterThanOrEqualTo();

    CriteriaExample<T> lessThan();

    CriteriaExample<T> lessThanOrEqualTo();

    CriteriaExample<T> between();

    CriteriaExample<T> gt();

    CriteriaExample<T> ge();

    CriteriaExample<T> lt();

    CriteriaExample<T> le();

    CriteriaExample<T> neg();

    CriteriaExample<T> prod();

    CriteriaExample<T> diff();

    CriteriaExample<T> quot();

    CriteriaExample<T> mod();

    CriteriaExample<T> sqrt();

    CriteriaExample<T> toLong();

    CriteriaExample<T> toInteger();

    CriteriaExample<T> toFloat();

    CriteriaExample<T> toDouble();

    CriteriaExample<T> toBigDecimal();

    CriteriaExample<T> toBigInteger();

    CriteriaExample<T> isEmpty();

    CriteriaExample<T> isNotEmpty();

    CriteriaExample<T> size();

    CriteriaExample<T> isMember();

    CriteriaExample<T> isNotMember();

    CriteriaExample<T> like();

    CriteriaExample<T> notLike();

    CriteriaExample<T> concat();

    CriteriaExample<T> substring();

    CriteriaExample<T> trim();

    CriteriaExample<T> lower();

    CriteriaExample<T> upper();

    CriteriaExample<T> length();

    CriteriaExample<T> locate();

    CriteriaExample<T> currentDate();

    CriteriaExample<T> currentTimestamp();

    CriteriaExample<T> currentTime();

    CriteriaExample<T> coalesce();

    CriteriaExample<T> nullif();

    CriteriaExample<T> selectCase();
}

@@ -210,24 +210,59 @@
 T%3E desc();%0A%0A
+    CriteriaExample%3CT%3E orderby();%0A%0A
     Criteria

order by(interface)