Package org.ofbiz.entity.condition

Examples of org.ofbiz.entity.condition.EntityWhereString


    // TODO replace SQL with EntityCondition
    String whereStr = " ( ( EntityAccess.ENTITY_ID = Activity.ACCOUNT_ID AND EntityAccess.ENTITY = 'Account' ) " +
                       " OR ( EntityAccess.ENTITY_ID = Activity.LEAD_ID AND EntityAccess.ENTITY = 'Lead' )" +
                       " OR ( EntityAccess.ENTITY_ID = Activity.OPPORTUNITY_ID AND EntityAccess.ENTITY = 'Deal' ) ) ";
   
    EntityCondition whereCondition = new EntityWhereString(whereStr);
    queryInfo.addCondition( whereCondition );
        queryInfo.addCondition( "Role", "rolePath", EntityOperator.LIKE, "%" + userInfo.getRoleId() + "%");

        return STATUS_CONTINUE;
    }
View Full Code Here

TOP

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

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.