com.atlassian.jira.ofbiz
Class CountedCondition

java.lang.Object
  extended by org.ofbiz.core.entity.EntityCondition
      extended by 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:
Serialized Form

Constructor Summary
CountedCondition(org.ofbiz.core.entity.EntityCondition condition, int terms)
           
 
Method Summary
 void checkCondition(org.ofbiz.core.entity.model.ModelEntity modelEntity)
           
 org.ofbiz.core.entity.EntityCondition getCondition()
           
 int getTermCount()
           
 String makeWhereString(org.ofbiz.core.entity.model.ModelEntity modelEntity, List entityConditionParams)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CountedCondition

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

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)
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


Copyright © 2002-2010 Atlassian. All Rights Reserved.