Package org.apache.ofbiz.common
Class CommonWorkers
java.lang.Object
org.apache.ofbiz.common.CommonWorkers
Common Workers
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<GenericValue>
getAssociatedStateList
(Delegator delegator, String country) static List<GenericValue>
getCountryList
(Delegator delegator) static List<GenericValue>
getStateList
(Delegator delegator) static boolean
hasParentType
(Delegator delegator, String entityName, String primaryKey, String childType, String parentTypeField, String parentType) Deprecated.
-
Method Details
-
getCountryList
-
getStateList
-
getAssociatedStateList
-
hasParentType
@Deprecated public static boolean hasParentType(Delegator delegator, String entityName, String primaryKey, String childType, String parentTypeField, 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.
-
EntityTypeUtil