DatabasePopulator
| Modifier and Type | Field and Description |
|---|---|
| private DatabasePopulator | |
| private DatabasePopulator | |
| private DataSource | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | afterPropertiesSet()
Implements org. Use the database populator to set up the database. |
| public void | destroy()
Implements org. Use the database cleaner to clean up the database. |
| private void | |
| public void | setDatabaseCleaner(DatabasePopulator
the databaseCleaner)DatabasePopulator to use during destructionSet the |
| public void | setDatabasePopulator(DatabasePopulator
the databasePopulator)DatabasePopulator to use during initializationSet the |
| public void | setDataSource(DataSource
the DataSource dataSource)The |
| public void | setEnabled(boolean
true if the database populator and database cleaner
should be called on startup and shutdown, respectivelyFlag to explicitly enable or disable the database populator and database cleaner. |
| databaseCleaner | back to summary |
|---|---|
| private DatabasePopulator databaseCleaner
| |
| databasePopulator | back to summary |
|---|---|
| private DatabasePopulator databasePopulator
| |
| dataSource | back to summary |
|---|---|
| private DataSource dataSource
| |
| enabled | back to summary |
|---|---|
| private boolean enabled | |
| DataSourceInitializer | back to summary |
|---|---|
| public DataSourceInitializer() | |
| afterPropertiesSet | back to summary |
|---|---|
| public void afterPropertiesSet() Implements org. Use the database populator to set up the database.
| |
| destroy | back to summary |
|---|---|
| public void destroy() Implements org. Use the database cleaner to clean up the database.
| |
| execute | back to summary |
|---|---|
| private void execute(DatabasePopulator populator) | |
| setDatabaseCleaner | back to summary |
|---|---|
| public void setDatabaseCleaner(DatabasePopulator databaseCleaner) Set the
| |
| setDatabasePopulator | back to summary |
|---|---|
| public void setDatabasePopulator(DatabasePopulator databasePopulator) Set the
| |
| setDataSource | back to summary |
|---|---|
| public void setDataSource(DataSource dataSource) The This property is mandatory with no default provided.
| |
| setEnabled | back to summary |
|---|---|
| public void setEnabled(boolean enabled) Flag to explicitly enable or disable the database populator and database cleaner.
| |