| java.lang.Object org.ofbiz.entity.model.ModelReader
ModelReader | public class ModelReader (Code) | | Generic Entity - Entity Definition Reader
author: David E. Jones author: Andy Zeneski version: $Revision: 1.5 $ since: 2.0 |
Method Summary | |
public void | addEntityToResourceHandler(String entityName, String loaderName, String location) | ModelEntity | createModelEntity(Element entityElement, Element docElement, UtilTimer utilTimer, Hashtable docElementValues) | public ModelField | createModelField(String name, String type, String colName, boolean isPk) | public ModelField | createModelField(Element fieldElement, Element docElement, Hashtable docElementValues) | ModelEntity | createModelViewEntity(Element entityElement, Element docElement, UtilTimer utilTimer, Hashtable docElementValues) | public ModelRelation | createRelation(ModelEntity entity, Element relationElement) | public ModelField | findModelField(ModelEntity entity, String fieldName) | public Map | getEntityCache() | public Collection | getEntityNames() Creates a Collection with the entityName of each Entity defined in the specified XML Entity Descriptor file. | public Iterator | getEntityNamesIterator() Creates a Iterator with the entityName of each Entity defined in the specified XML Entity Descriptor file. | public ResourceHandler | getEntityResourceHandler(String entityName) | public ModelEntity | getModelEntity(String entityName) Gets an Entity object based on a definition from the specified XML Entity descriptor file.
Parameters: entityName - The entityName of the Entity definition to use. | public ModelEntity | getModelEntityNoCheck(String entityName) | public static ModelReader | getModelReader(String delegatorName) | public Collection | getResourceHandlerEntities(ResourceHandler resourceHandler) | public Iterator | getResourceHandlerEntitiesKeyIterator() | public void | rebuildResourceHandlerEntities() rebuilds the resourceHandlerEntities Map of Collections based on the current
entityResourceHandlerMap Map, must be done whenever a manual change is made to the
entityResourceHandlerMap Map after the initial load to make them consistent again. |
entityResourceHandlerMap | protected Map entityResourceHandlerMap(Code) | | for each entity contains a map to the ResourceHandler that the entity came from
|
entityResourceHandlers | protected Collection entityResourceHandlers(Code) | | collection of filenames for entity definitions
|
numEntities | protected int numEntities(Code) | | |
numFields | protected int numFields(Code) | | |
numRelations | protected int numRelations(Code) | | |
numViewEntities | protected int numViewEntities(Code) | | |
resourceHandlerEntities | protected Map resourceHandlerEntities(Code) | | contains a collection of entity names for each ResourceHandler, populated as they are loaded
|
addEntityToResourceHandler | public void addEntityToResourceHandler(String entityName, String loaderName, String location)(Code) | | |
getEntityNames | public Collection getEntityNames() throws GenericEntityException(Code) | | Creates a Collection with the entityName of each Entity defined in the specified XML Entity Descriptor file.
A Collection of entityName Strings |
getEntityNamesIterator | public Iterator getEntityNamesIterator() throws GenericEntityException(Code) | | Creates a Iterator with the entityName of each Entity defined in the specified XML Entity Descriptor file.
A Iterator of entityName Strings |
getModelEntity | public ModelEntity getModelEntity(String entityName) throws GenericEntityException(Code) | | Gets an Entity object based on a definition from the specified XML Entity descriptor file.
Parameters: entityName - The entityName of the Entity definition to use. An Entity object describing the specified entity of the specified descriptor file. |
getResourceHandlerEntitiesKeyIterator | public Iterator getResourceHandlerEntitiesKeyIterator()(Code) | | |
rebuildResourceHandlerEntities | public void rebuildResourceHandlerEntities()(Code) | | rebuilds the resourceHandlerEntities Map of Collections based on the current
entityResourceHandlerMap Map, must be done whenever a manual change is made to the
entityResourceHandlerMap Map after the initial load to make them consistent again.
|
|
|