Class EntityConfig

java.lang.Object
org.apache.ofbiz.entity.config.model.EntityConfig

@ThreadSafe public final class EntityConfig extends Object
A singleton class that models the <entity-config> element.
See Also:
  • entity-config.xsd
  • Field Details

  • Method Details

    • getInstance

      public static EntityConfig getInstance() throws GenericEntityConfException
      Throws:
      GenericEntityConfException
    • createConfigFileLineNumberText

      public static String createConfigFileLineNumberText(Element element)
    • getResourceLoader

      public ResourceLoader getResourceLoader(String name)
      Returns the specified <resource-loader> child element, or null if no child element was found.
    • getResourceLoaderList

      public List<ResourceLoader> getResourceLoaderList()
      Returns the <resource-loader> child elements.
    • getTransactionFactory

      public TransactionFactory getTransactionFactory()
      Returns the <transaction-factory> child element, or null if no child element was found.
    • getConnectionFactory

      public ConnectionFactory getConnectionFactory()
      Returns the <connection-factory> child element, or null if no child element was found.
    • getDebugXaResources

      public DebugXaResources getDebugXaResources()
      Returns the <debug-xa-resources> child element, or null if no child element was found.
    • getDelegator

      public DelegatorElement getDelegator(String name)
      Returns the specified <delegator> child element, or null if no child element was found.
    • getDelegatorList

      public List<DelegatorElement> getDelegatorList()
      Returns the <delegator> child elements.
    • getEntityModelReader

      public EntityModelReader getEntityModelReader(String name)
      Returns the specified <entity-model-reader> child element, or null if no child element was found.
    • getEntityModelReaderList

      public List<EntityModelReader> getEntityModelReaderList()
      Returns the <entity-model-reader> child elements.
    • getEntityGroupReader

      public EntityGroupReader getEntityGroupReader(String name)
      Returns the specified <entity-group-reader> child element, or null if no child element was found.
    • getEntityGroupReaderList

      public List<EntityGroupReader> getEntityGroupReaderList()
      Returns the <entity-group-reader> child elements.
    • getEntityEcaReader

      public EntityEcaReader getEntityEcaReader(String name)
      Returns the specified <entity-eca-reader> child element, or null if no child element was found.
    • getEntityEcaReaderList

      public List<EntityEcaReader> getEntityEcaReaderList()
      Returns the <entity-eca-reader> child elements.
    • getEntityDataReader

      public EntityDataReader getEntityDataReader(String name)
      Returns the specified <entity-data-reader> child element, or null if no child element was found.
    • getEntityDataReaderList

      public List<EntityDataReader> getEntityDataReaderList()
      Returns the <entity-data-reader> child elements.
    • getFieldType

      public FieldType getFieldType(String name)
      Returns the specified <field-type> child element, or null if no child element was found.
    • getFieldTypeList

      public List<FieldType> getFieldTypeList()
      Returns the <field-type> child elements.
    • getDatasourceList

      public List<Datasource> getDatasourceList()
      Returns the <datasource> child elements.
    • getDatasource

      public static Datasource getDatasource(String name)
      Returns the specified <datasource> child element or null if it does not exist.
    • getJdbcPassword

      public static String getJdbcPassword(InlineJdbc inlineJdbcElement) throws GenericEntityConfException
      Returns the configured JDBC password.
      Parameters:
      inlineJdbcElement -
      Returns:
      The configured JDBC password.
      Throws:
      GenericEntityConfException - If the password was not found.
      See Also:
      • entity-config.xsd
    • getDatasourceMap

      public Map<String,Datasource> getDatasourceMap()
      Returns the <datasource> child elements as a Map.