org.n3r.eql.parser.IsNotEmptyPart Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of eql Show documentation
Show all versions of eql Show documentation
a simple wrapper framework for jdbc to seperate sql and java code
package org.n3r.eql.parser;
import org.n3r.eql.map.EqlRun;
public class IsNotEmptyPart extends IsEmptyPart {
public IsNotEmptyPart(String expr, MultiPart multiPart, MultiPart elsePart) {
super(expr, multiPart, elsePart);
}
@Override
public String evalSql(EqlRun eqlRun) {
return (!isEmpty(eqlRun) ? multiPart : elsePart).evalSql(eqlRun);
}
}