Class ModelGroupReader

java.lang.Object
org.apache.ofbiz.entity.model.ModelGroupReader
All Implemented Interfaces:
Serializable

public class ModelGroupReader extends Object implements Serializable
Generic Entity - Entity Group Definition Reader
See Also:
  • Constructor Details

  • Method Details

    • getModelGroupReader

      public static ModelGroupReader getModelGroupReader(String delegatorName) throws GenericEntityConfException
      Throws:
      GenericEntityConfException
    • getGroupCache

      public Map<String,String> getGroupCache(String delegatorName)
      Gets group cache.
      Parameters:
      delegatorName - the delegator name
      Returns:
      the group cache
    • getEntityGroupName

      public String getEntityGroupName(String entityName, String delegatorBaseName)
      Gets a group name based on a definition from the specified XML Entity Group descriptor file.
      Parameters:
      entityName - The entityName of the Entity Group definition to use.
      Returns:
      A group name
    • getGroupNames

      public Set<String> getGroupNames(String delegatorBaseName)
      Creates a Set with all of the groupNames defined in the specified XML Entity Group Descriptor file.
      Returns:
      A Set of groupNames Strings
    • getEntityNamesByGroup

      public Set<String> getEntityNamesByGroup(String delegatorBaseName, String groupName)
      Creates a Set with names of all of the entities for a given group
      Parameters:
      groupName -
      Returns:
      A Set of entityName Strings