Class ModelGroupReader

  • All Implemented Interfaces:
    java.io.Serializable

    public class ModelGroupReader
    extends java.lang.Object
    implements java.io.Serializable
    Generic Entity - Entity Group Definition Reader
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ModelGroupReader​(java.lang.String delegatorName, java.lang.String modelName)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getEntityGroupName​(java.lang.String entityName, java.lang.String delegatorBaseName)
      Gets a group name based on a definition from the specified XML Entity Group descriptor file.
      java.util.Set<java.lang.String> getEntityNamesByGroup​(java.lang.String delegatorBaseName, java.lang.String groupName)
      Creates a Set with names of all of the entities for a given group
      java.util.Map<java.lang.String,​java.lang.String> getGroupCache​(java.lang.String delegatorName)  
      java.util.Set<java.lang.String> getGroupNames​(java.lang.String delegatorBaseName)
      Creates a Set with all of the groupNames defined in the specified XML Entity Group Descriptor file.
      static ModelGroupReader getModelGroupReader​(java.lang.String delegatorName)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • module

        public static final java.lang.String module
      • modelName

        public java.lang.String modelName
      • entityGroupResourceHandlers

        public java.util.List<ResourceHandler> entityGroupResourceHandlers
    • Method Detail

      • getGroupCache

        public java.util.Map<java.lang.String,​java.lang.String> getGroupCache​(java.lang.String delegatorName)
      • getEntityGroupName

        public java.lang.String getEntityGroupName​(java.lang.String entityName,
                                                   java.lang.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 java.util.Set<java.lang.String> getGroupNames​(java.lang.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 java.util.Set<java.lang.String> getEntityNamesByGroup​(java.lang.String delegatorBaseName,
                                                                     java.lang.String groupName)
        Creates a Set with names of all of the entities for a given group
        Parameters:
        groupName -
        Returns:
        A Set of entityName Strings