Package org.ofbiz.core.entity
Class EntityTypeUtil
java.lang.Object
org.ofbiz.core.entity.EntityTypeUtil
Makes it easier to deal with entities that follow the
extensibility pattern and that can be of various types as identified in the database.
- Since:
- 2.0
- Version:
- $Revision: 1.1 $
- Author:
- David E. Jones
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<GenericValue>getDescendantTypes(GenericValue typeValue) static booleanisType(Collection<GenericValue> thisCollection, String typeRelation, GenericValue targetType) static booleanisType(GenericValue thisType, GenericValue targetType) Check if thisType is the type of targetType
-
Constructor Details
-
EntityTypeUtil
public EntityTypeUtil()
-
-
Method Details
-
isType
public static boolean isType(Collection<GenericValue> thisCollection, String typeRelation, GenericValue targetType) -
getDescendantTypes
-
isType
Check if thisType is the type of targetType- Parameters:
thisType- the type to checktargetType- the type to check against
-