ru.curs.celesta.dbutils.term.IsNull 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;
/**
* Comparision of a field with null.
*/
public final class IsNull extends WhereTerm {
// quoted column name
private final String fieldName;
public IsNull(String fieldName) {
this.fieldName = fieldName;
}
@Override
public String getWhere() {
return String.format("(%s is null)", fieldName);
}
@Override
public void programParams(List program, QueryBuildingHelper queryBuildingHelper) {
// do nothing - no parameters
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy