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

pers.clare.hisql.support.SqlReplace Maven / Gradle / Ivy

The newest version!
package pers.clare.hisql.support;

import java.util.Collection;

public interface SqlReplace {
    static SqlReplace of(String value, String sql) {
        return new StringSqlReplace(value, sql);
    }

    static SqlReplace of(String value, String sql, String emptySql) {
        return new StringSqlReplace(value, sql, emptySql);
    }

    static  SqlReplace> of(Collection value, String sql) {
        return new CollectionSqlReplace<>(value, sql);
    }

    static  SqlReplace> of(Collection value, String sql, String emptySql) {
        return new CollectionSqlReplace<>(value, sql, emptySql);
    }

    static SqlReplace of(Object value, String sql) {
        return new ObjectSqlReplace(value, sql);
    }

    static SqlReplace of(Object value, String sql, String emptySql) {
        return new ObjectSqlReplace(value, sql, emptySql);
    }

    T getValue();

    String getSql();


}