Class EntityConfig


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

      • ENTITY_ENGINE_XML_FILENAME

        public static final java.lang.String ENTITY_ENGINE_XML_FILENAME
        See Also:
        Constant Field Values
    • Method Detail

      • createConfigFileLineNumberText

        public static java.lang.String createConfigFileLineNumberText​(org.w3c.dom.Element element)
      • getResourceLoader

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

        public java.util.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​(java.lang.String name)
        Returns the specified <delegator> child element, or null if no child element was found.
      • getDelegatorList

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

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

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

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

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

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

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

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

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

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

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

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

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

        public static java.lang.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 java.util.Map<java.lang.String,​Datasource> getDatasourceMap()
        Returns the <datasource> child elements as a Map.