Package org.springframework.batch.core

Examples of org.springframework.batch.core.PooledEmbeddedDataSource


  @EnableBatchProcessing
  public static class MultiListenerFaultTolerantTestConfiguration extends MultiListenerTestConfigurationSupport{

    @Bean
    public DataSource dataSource(){
      return new PooledEmbeddedDataSource(new EmbeddedDatabaseBuilder()
      .addScript("classpath:org/springframework/batch/core/schema-drop-hsqldb.sql")
      .addScript("classpath:org/springframework/batch/core/schema-hsqldb.sql")
      .setType(EmbeddedDatabaseType.HSQL)
      .build());
    }
View Full Code Here


  @EnableBatchProcessing
  public static class MultiListenerTestConfiguration extends MultiListenerTestConfigurationSupport{

    @Bean
    public DataSource dataSource(){
      return new PooledEmbeddedDataSource(new EmbeddedDatabaseBuilder()
      .addScript("classpath:org/springframework/batch/core/schema-drop-hsqldb.sql")
      .addScript("classpath:org/springframework/batch/core/schema-hsqldb.sql")
      .setType(EmbeddedDatabaseType.HSQL)
      .build());
    }
View Full Code Here

  public static class InvalidBatchConfiguration extends HsqlBatchConfiguration {

    @Bean
    DataSource dataSource2() {
      return new PooledEmbeddedDataSource(new EmbeddedDatabaseBuilder().setName("badDatabase").build());
    }
View Full Code Here

  public static class HsqlBatchConfiguration extends MapRepositoryBatchConfiguration {

    @Bean
    DataSource dataSource() {
      return new PooledEmbeddedDataSource(new EmbeddedDatabaseBuilder().
        addScript("classpath:org/springframework/batch/core/schema-drop-hsqldb.sql").
        addScript("classpath:org/springframework/batch/core/schema-hsqldb.sql").
        build());
    }
View Full Code Here

  private JsrJobParametersConverter converter;
  private static DataSource dataSource;

  @BeforeClass
  public static void setupDatabase() {
    dataSource = new PooledEmbeddedDataSource(new EmbeddedDatabaseBuilder().
        addScript("classpath:org/springframework/batch/core/schema-drop-hsqldb.sql").
        addScript("classpath:org/springframework/batch/core/schema-hsqldb.sql").
        build());
  }
View Full Code Here

TOP

Related Classes of org.springframework.batch.core.PooledEmbeddedDataSource

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.