Package org.ofbiz.entity.condition

Examples of org.ofbiz.entity.condition.EntityFieldMap


     * @param orderBy The fields of the named entity to order the query by;
     *      optionally add a " ASC" for ascending or " DESC" for descending
     * @return List of GenericValue instances that match the query
     */
    public List findByAnd(String entityName, Map fields, List orderBy) throws GenericEntityException {
        EntityCondition ecl = new EntityFieldMap(fields, EntityOperator.AND);
        return findByCondition(entityName, ecl, null, orderBy);
    }
View Full Code Here


     * @param orderBy The fields of the named entity to order the query by;
     *      optionally add a " ASC" for ascending or " DESC" for descending
     * @return List of GenericValue instances that match the query
     */
    public List findByOr(String entityName, Map fields, List orderBy) throws GenericEntityException {
        EntityCondition ecl = new EntityFieldMap(fields, EntityOperator.OR);
        return findByCondition(entityName, ecl, null, orderBy);
    }
View Full Code Here

     *@param fields The fields of the named entity to query by with their corresponging values
     *@param orderBy The fields of the named entity to order the query by; optionally add a " ASC" for ascending or " DESC" for descending
     *@return List of GenericValue instances that match the query
     */
    public List findByAndCache(String entityName, Map fields, List orderBy) throws GenericEntityException {
        return findByConditionCache(entityName, new EntityFieldMap(fields, EntityOperator.AND), null, orderBy);
    }
View Full Code Here

        //TODO: add decrypt fields
        return eli;
    }

    public long findCountByAnd(String entityName, Map fields) throws GenericEntityException {
        return findCountByCondition(entityName, new EntityFieldMap(fields, EntityOperator.AND), null);
    }
View Full Code Here

        // get the list of orderByFields from orderByExpanderList
        List orderByFields = EntityFinderUtil.makeOrderByFieldList(this.orderByExpanderList, context);
       
        try {
            // if filterByDate, do a date filter on the results based on the now-timestamp
            EntityCondition whereEntityCondition = new EntityFieldMap(entityContext, EntityOperator.AND);
            if (filterByDate) {
                EntityCondition filterByDateCondition = EntityUtil.getFilterByDateExpr();
                if (whereEntityCondition != null) {
                    whereEntityCondition = new EntityConditionList(UtilMisc.toList(whereEntityCondition, filterByDateCondition), EntityJoinOperator.AND);
                } else {
View Full Code Here

TOP

Related Classes of org.ofbiz.entity.condition.EntityFieldMap

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.