org.springframework.beans.factory.xml.BeanDefinitionParser that
parses an embedded-database element and creates a BeanDefinition
for an EmbeddedDatabaseFactoryBean.
Picks up nested script elements and configures a
ResourceDatabasePopulator for each of them.
DatabasePopulatorConfigUtils
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final String | DB_NAME_ATTRIBUTE
Constant for the "database-name" attribute. |
| pack-priv static final String | GENERATE_NAME_ATTRIBUTE
Constant for the "generate-name" attribute. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected AbstractBeanDefinition | parseInternal(Element
the element that is to be parsed into one or more element, ParserContext BeanDefinitionsthe object encapsulating the current state of the parsing process;
provides access to a parserContext)org.Implements abstract org. Element
into one or more BeanDefinitions.
|
| private void | |
| private void | |
| private void | |
| protected boolean | shouldGenerateIdAsFallback()
Overrides org. Element does not
specify an "id" attribute explicitly?
|
| DB_NAME_ATTRIBUTE | back to summary |
|---|---|
| pack-priv static final String DB_NAME_ATTRIBUTE Constant for the "database-name" attribute. | |
| GENERATE_NAME_ATTRIBUTE | back to summary |
|---|---|
| pack-priv static final String GENERATE_NAME_ATTRIBUTE Constant for the "generate-name" attribute. | |
| EmbeddedDatabaseBeanDefinitionParser | back to summary |
|---|---|
| pack-priv EmbeddedDatabaseBeanDefinitionParser() | |
| parseInternal | back to summary |
|---|---|
| protected AbstractBeanDefinition parseInternal(Element element, ParserContext parserContext) Implements abstract org. Doc from org. Central template method to actually parse the supplied
| |
| setDatabaseName | back to summary |
|---|---|
| private void setDatabaseName(Element element, BeanDefinitionBuilder builder) | |
| setDatabaseType | back to summary |
|---|---|
| private void setDatabaseType(Element element, BeanDefinitionBuilder builder) | |
| setGenerateUniqueDatabaseNameFlag | back to summary |
|---|---|
| private void setGenerateUniqueDatabaseNameFlag(Element element, BeanDefinitionBuilder builder) | |
| shouldGenerateIdAsFallback | back to summary |
|---|---|
| protected boolean shouldGenerateIdAsFallback() Overrides org. Doc from org. Should an ID be generated instead if the passed in Disabled by default; subclasses can override this to enable ID generation as fallback: The parser will first check for an "id" attribute in this case, only falling back to a generated ID if no value was specified.
| |