Package org.apache.ofbiz.entity.model
Class ModelGroupReader
- java.lang.Object
-
- org.apache.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
Fields Modifier and Type Field Description java.util.List<ResourceHandler>
entityGroupResourceHandlers
java.lang.String
modelName
static java.lang.String
module
-
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 groupjava.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)
-
-
-
Field Detail
-
module
public static final java.lang.String module
-
modelName
public java.lang.String modelName
-
entityGroupResourceHandlers
public java.util.List<ResourceHandler> entityGroupResourceHandlers
-
-
Constructor Detail
-
ModelGroupReader
public ModelGroupReader(java.lang.String delegatorName, 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(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
-
-