Class CountedCondition

java.lang.Object
org.ofbiz.core.entity.EntityCondition
com.atlassian.jira.ofbiz.CountedCondition
All Implemented Interfaces:
Serializable

public class CountedCondition extends org.ofbiz.core.entity.EntityCondition
This class is used to track how many clauses are in an EntityCondition. It doesn't inspect the condition but rather is a glorified tuple to allow methods to return a Condition and a count of where clauses.
Since:
v3.13
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    CountedCondition(org.ofbiz.core.entity.EntityCondition condition, int terms)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    checkCondition(org.ofbiz.core.entity.model.ModelEntity modelEntity)
     
    org.ofbiz.core.entity.EntityCondition
     
    int
     
    makeWhereString(org.ofbiz.core.entity.model.ModelEntity modelEntity, List entityConditionParams, org.ofbiz.core.entity.jdbc.sql.escape.SqlEscapeHelper sqlEscapeHelper)
     
     

    Methods inherited from class org.ofbiz.core.entity.EntityCondition

    getParameterCount

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • CountedCondition

      public CountedCondition(org.ofbiz.core.entity.EntityCondition condition, int terms)
  • Method Details

    • getCondition

      public org.ofbiz.core.entity.EntityCondition getCondition()
    • getTermCount

      public int getTermCount()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • makeWhereString

      public String makeWhereString(org.ofbiz.core.entity.model.ModelEntity modelEntity, List entityConditionParams, org.ofbiz.core.entity.jdbc.sql.escape.SqlEscapeHelper sqlEscapeHelper)
      Specified by:
      makeWhereString in class org.ofbiz.core.entity.EntityCondition
    • checkCondition

      public void checkCondition(org.ofbiz.core.entity.model.ModelEntity modelEntity) throws org.ofbiz.core.entity.GenericModelException
      Specified by:
      checkCondition in class org.ofbiz.core.entity.EntityCondition
      Throws:
      org.ofbiz.core.entity.GenericModelException