org.ofbiz.entity.model
Class ModelGroupReader

java.lang.Object
  extended by org.ofbiz.entity.model.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

Field Summary
 java.util.List<ResourceHandler> entityGroupResourceHandlers
           
 java.lang.String modelName
           
static java.lang.String module
           
static UtilCache<java.lang.String,ModelGroupReader> readers
           
 
Constructor Summary
ModelGroupReader(java.lang.String modelName)
           
 
Method Summary
 java.lang.String getEntityGroupName(java.lang.String entityName, java.lang.String delegatorName)
          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 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.util.Set<java.lang.String> getGroupNames(java.lang.String delegatorName)
          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

readers

public static UtilCache<java.lang.String,ModelGroupReader> readers

modelName

public java.lang.String modelName

entityGroupResourceHandlers

public java.util.List<ResourceHandler> entityGroupResourceHandlers
Constructor Detail

ModelGroupReader

public ModelGroupReader(java.lang.String modelName)
                 throws GenericEntityConfException
Throws:
GenericEntityConfException
Method Detail

getModelGroupReader

public static ModelGroupReader getModelGroupReader(java.lang.String delegatorName)
                                            throws GenericEntityConfException
Throws:
GenericEntityConfException

getGroupCache

public java.util.Map<java.lang.String,java.lang.String> getGroupCache()

getEntityGroupName

public java.lang.String getEntityGroupName(java.lang.String entityName,
                                           java.lang.String delegatorName)
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 delegatorName)
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 groupName)
Creates a Set with names of all of the entities for a given group

Parameters:
groupName -
Returns:
A Set of entityName Strings