
sf.database.template.enjoy.ext.InDirective Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sorm Show documentation
Show all versions of sorm Show documentation
java jpa tool for spring
The newest version!
package sf.database.template.enjoy.ext;
import com.jfinal.template.Directive;
import com.jfinal.template.Env;
import com.jfinal.template.TemplateException;
import com.jfinal.template.expr.ast.Expr;
import com.jfinal.template.io.Writer;
import com.jfinal.template.stat.Scope;
import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
public class InDirective extends Directive {
@Override
public void exec(Env env, Scope scope, Writer writer) {
SqlPara sqlPara = (SqlPara) scope.get(SqlKit.SQL_PARA_KEY);
if (sqlPara == null) {
throw new TemplateException("#para directive invoked by getSqlPara(...) method only", location);
}
if (exprList.length() == 1) {
Expr expr = exprList.getExpr(0);
Object o = expr.eval(scope);
if (o != null) {
List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy