Package org.apache.ofbiz.common
Class CommonWorkers
- java.lang.Object
-
- org.apache.ofbiz.common.CommonWorkers
-
public final class CommonWorkers extends java.lang.Object
Common Workers
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
module
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static java.util.List<GenericValue>
getAssociatedStateList(Delegator delegator, java.lang.String country)
static java.util.List<GenericValue>
getAssociatedStateList(Delegator delegator, java.lang.String country, java.lang.String listOrderBy)
Returns a list of regional geo associations.static java.util.List<GenericValue>
getCountryList(Delegator delegator)
static java.util.List<GenericValue>
getStateList(Delegator delegator)
static boolean
hasParentType(Delegator delegator, java.lang.String entityName, java.lang.String primaryKey, java.lang.String childType, java.lang.String parentTypeField, java.lang.String parentType)
Deprecated.Moved toEntityTypeUtil
-
-
-
Method Detail
-
getCountryList
public static java.util.List<GenericValue> getCountryList(Delegator delegator)
-
getStateList
public static java.util.List<GenericValue> getStateList(Delegator delegator)
-
getAssociatedStateList
public static java.util.List<GenericValue> getAssociatedStateList(Delegator delegator, java.lang.String country)
-
getAssociatedStateList
public static java.util.List<GenericValue> getAssociatedStateList(Delegator delegator, java.lang.String country, java.lang.String listOrderBy)
Returns a list of regional geo associations.
-
hasParentType
@Deprecated public static boolean hasParentType(Delegator delegator, java.lang.String entityName, java.lang.String primaryKey, java.lang.String childType, java.lang.String parentTypeField, java.lang.String parentType)
Deprecated.Moved toEntityTypeUtil
A generic method to be used on Type enities, e.g. ProductType. Recurse to the root level in the type hierarchy and checks if the specified type childType has parentType as its parent somewhere in the hierarchy.- Parameters:
delegator
- The Delegator object.entityName
- Name of the Type entity on which check is performed.primaryKey
- Primary Key field of the Type entity.childType
- Type value for which the check is performed.parentTypeField
- Field in Type entity which stores the parent type.parentType
- Value of the parent type against which check is performed.- Returns:
- boolean value based on the check results.
-
-