Package net.sf.hajdbc.state.sql

Examples of net.sf.hajdbc.state.sql.SQLStateManagerFactory


  }
 
  @Test
  public void h2() throws Exception
  {
    SQLStateManagerFactory factory = new SQLStateManagerFactory();
    factory.setUrlPattern("jdbc:h2:target/h2/{0}");
    test(factory);
  }
View Full Code Here


  }
 
  @Test
  public void hsqldb() throws Exception
  {
    SQLStateManagerFactory factory = new SQLStateManagerFactory();
    factory.setUrlPattern("jdbc:hsqldb:target/hsqldb/{0}");
    test(factory);
  }
View Full Code Here

  }
 
  @Test
  public void derby() throws Exception
  {
    SQLStateManagerFactory factory = new SQLStateManagerFactory();
    factory.setUrlPattern("jdbc:derby:target/derby/{0};create=true");
    test(factory);
  }
View Full Code Here

    assertEquals(100, diffStrategy.getMaxBatchSize());
    assertNull(diffStrategy.getVersionPattern());
   
    StateManagerFactory stateManagerFactory = configuration.getStateManagerFactory();
    assertTrue(stateManagerFactory instanceof SQLStateManagerFactory);
    SQLStateManagerFactory sqlStateManagerFactory = (SQLStateManagerFactory) stateManagerFactory;
    assertEquals("jdbc:h2:{0}", sqlStateManagerFactory.getUrlPattern());
    assertNull(sqlStateManagerFactory.getUser());
    assertNull(sqlStateManagerFactory.getPassword());
   
    assertEquals(LoadBalancerFactory.class, configuration.getBalancerFactory().getClass());
    assertEquals(EagerDatabaseMetaDataCacheFactory.class, configuration.getDatabaseMetaDataCacheFactory().getClass());
    assertEquals("diff", configuration.getDefaultSynchronizationStrategy());
    assertEquals(StandardDialectFactory.class, configuration.getDialectFactory().getClass());
View Full Code Here

  }
 
  @Test
  public void h2() throws Exception
  {
    SQLStateManagerFactory factory = new SQLStateManagerFactory();
    factory.setUrlPattern("jdbc:h2:target/h2/{0}");
    this.test(factory);
  }
View Full Code Here

  }
 
  @Test
  public void hsqldb() throws Exception
  {
    SQLStateManagerFactory factory = new SQLStateManagerFactory();
    factory.setUrlPattern("jdbc:hsqldb:target/hsqldb/{0}");
    this.test(factory);
  }
View Full Code Here

 
  @Test
  @Ignore(value = "Figure out why Derby throws OutOfMemoryError on connect")
  public void derby() throws Exception
  {
    SQLStateManagerFactory factory = new SQLStateManagerFactory();
    factory.setUrlPattern("jdbc:derby:target/derby/{0};create=true");
    this.test(factory);
  }
View Full Code Here

    assertEquals(100, diffStrategy.getMaxBatchSize());
    assertNull(diffStrategy.getVersionPattern());
   
    StateManagerFactory stateManagerFactory = configuration.getStateManagerFactory();
    assertTrue(stateManagerFactory instanceof SQLStateManagerFactory);
    SQLStateManagerFactory sqlStateManagerFactory = (SQLStateManagerFactory) stateManagerFactory;
    assertEquals("jdbc:h2:{0}", sqlStateManagerFactory.getUrlPattern());
    assertNull(sqlStateManagerFactory.getUser());
    assertNull(sqlStateManagerFactory.getPassword());
   
    assertEquals(LoadBalancerFactory.class, configuration.getBalancerFactory().getClass());
    assertEquals(EagerDatabaseMetaDataCacheFactory.class, configuration.getDatabaseMetaDataCacheFactory().getClass());
    assertEquals("diff", configuration.getDefaultSynchronizationStrategy());
    assertEquals(StandardDialectFactory.class, configuration.getDialectFactory().getClass());
View Full Code Here

  }
 
  @Test
  public void h2() throws Exception
  {
    SQLStateManagerFactory factory = new SQLStateManagerFactory();
    factory.setUrlPattern("jdbc:h2:./target/h2/{0}");
    test(factory);
  }
View Full Code Here

  }
 
  @Test
  public void hsqldb() throws Exception
  {
    SQLStateManagerFactory factory = new SQLStateManagerFactory();
    factory.setUrlPattern("jdbc:hsqldb:./target/hsqldb/{0}");
    test(factory);
  }
View Full Code Here

TOP

Related Classes of net.sf.hajdbc.state.sql.SQLStateManagerFactory

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.