Package com.jengine.orm.db.filter

Examples of com.jengine.orm.db.filter.SQLFilter$GT


        this.value = this.multiModelField.getModelField().cast(this.value);
    }

    public void setSQL(SQLQuery query) {
        Object value = this.value instanceof ModelQuery ? ((ModelQuery) this.value).toSQL() : this.value;
        query.filter(new SQLFilter(multiModelField.getSQLName(), operation, value));
    }
View Full Code Here


            if (!query.isEmptyFilter()) {
                StringBuffer expressionClause = new StringBuffer();
                if (!query.getFilters().isEmpty()) {
                    for (String field : query.getFilters().keySet()) {
                        SQLFilter filter = query.getFilters().get(field);
                        if (expressionClause.length() > 0) {
                            expressionClause.append(" AND ");
                        }
                        Object value = filter.getValue() instanceof SQLQuery ?
                                String.format("(%s)", provider.buildSelectSQL((SQLQuery) filter.getValue())) : "?";
                        expressionClause.append(filter.getOperation().getSQL(field, value));
                    }
                }
                if (!query.getStringFilters().isEmpty()) {
                    for (SQLStringFilter stringFilter : query.getStringFilters()) {
                        if (expressionClause.length() > 0) {
View Full Code Here

TOP

Related Classes of com.jengine.orm.db.filter.SQLFilter$GT

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.