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

ru.curs.celesta.dbutils.term.AlwaysTrue Maven / Gradle / Ivy

The newest version!
package ru.curs.celesta.dbutils.term;

import ru.curs.celesta.dbutils.QueryBuildingHelper;
import ru.curs.celesta.dbutils.stmt.ParameterSetter;

import java.util.List;

/**
 * TRUE constant.
 */
public final class AlwaysTrue extends WhereTerm {

    /**
     * TRUE constant singleton.
     */
    public static final AlwaysTrue TRUE = new AlwaysTrue();

    private AlwaysTrue() {
    }

    @Override
    public String getWhere() {
        return "(1 = 1)";
    }

    @Override
    public void programParams(List program, QueryBuildingHelper queryBuildingHelper) {
        // do nothing, no parameters
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy