Class EntityConfig
- java.lang.Object
-
- org.apache.ofbiz.entity.config.model.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 Summary
Fields Modifier and Type Field Description static java.lang.String
ENTITY_ENGINE_XML_FILENAME
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.String
createConfigFileLineNumberText(org.w3c.dom.Element element)
ConnectionFactory
getConnectionFactory()
Returns the<connection-factory>
child element, ornull
if no child element was found.static Datasource
getDatasource(java.lang.String name)
Returns the specified<datasource>
child element ornull
if it does not exist.java.util.List<Datasource>
getDatasourceList()
Returns the<datasource>
child elements.java.util.Map<java.lang.String,Datasource>
getDatasourceMap()
Returns the<datasource>
child elements as aMap
.DebugXaResources
getDebugXaResources()
Returns the<debug-xa-resources>
child element, ornull
if no child element was found.DelegatorElement
getDelegator(java.lang.String name)
Returns the specified<delegator>
child element, ornull
if no child element was found.java.util.List<DelegatorElement>
getDelegatorList()
Returns the<delegator>
child elements.EntityDataReader
getEntityDataReader(java.lang.String name)
Returns the specified<entity-data-reader>
child element, ornull
if no child element was found.java.util.List<EntityDataReader>
getEntityDataReaderList()
Returns the<entity-data-reader>
child elements.EntityEcaReader
getEntityEcaReader(java.lang.String name)
Returns the specified<entity-eca-reader>
child element, ornull
if no child element was found.java.util.List<EntityEcaReader>
getEntityEcaReaderList()
Returns the<entity-eca-reader>
child elements.EntityGroupReader
getEntityGroupReader(java.lang.String name)
Returns the specified<entity-group-reader>
child element, ornull
if no child element was found.java.util.List<EntityGroupReader>
getEntityGroupReaderList()
Returns the<entity-group-reader>
child elements.EntityModelReader
getEntityModelReader(java.lang.String name)
Returns the specified<entity-model-reader>
child element, ornull
if no child element was found.java.util.List<EntityModelReader>
getEntityModelReaderList()
Returns the<entity-model-reader>
child elements.FieldType
getFieldType(java.lang.String name)
Returns the specified<field-type>
child element, ornull
if no child element was found.java.util.List<FieldType>
getFieldTypeList()
Returns the<field-type>
child elements.static EntityConfig
getInstance()
static java.lang.String
getJdbcPassword(InlineJdbc inlineJdbcElement)
Returns the configured JDBC password.ResourceLoader
getResourceLoader(java.lang.String name)
Returns the specified<resource-loader>
child element, ornull
if no child element was found.java.util.List<ResourceLoader>
getResourceLoaderList()
Returns the<resource-loader>
child elements.TransactionFactory
getTransactionFactory()
Returns the<transaction-factory>
child element, ornull
if no child element was found.
-
-
-
Field Detail
-
ENTITY_ENGINE_XML_FILENAME
public static final java.lang.String ENTITY_ENGINE_XML_FILENAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static EntityConfig getInstance() throws GenericEntityConfException
- Throws:
GenericEntityConfException
-
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, ornull
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, ornull
if no child element was found.
-
getConnectionFactory
public ConnectionFactory getConnectionFactory()
Returns the<connection-factory>
child element, ornull
if no child element was found.
-
getDebugXaResources
public DebugXaResources getDebugXaResources()
Returns the<debug-xa-resources>
child element, ornull
if no child element was found.
-
getDelegator
public DelegatorElement getDelegator(java.lang.String name)
Returns the specified<delegator>
child element, ornull
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, ornull
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, ornull
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, ornull
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, ornull
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, ornull
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 ornull
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 aMap
.
-
-