Examples of ConfigurationReader


Examples of org.hivedb.hibernate.ConfigurationReader

  public SingletonHiveSessionFactoryBuilder(Hive hive, List<Class<?>> persistableClasses, ShardAccessStrategy accessStrategy, Properties overrides) {
    this.hive = hive;
    this.persistableClasses = persistableClasses;
    this.overrides = overrides;
    this.accessStrategy = accessStrategy;
    this.hiveConfig = new ConfigurationReader(this.persistableClasses).getHiveConfiguration();
  }
View Full Code Here

Examples of org.hivedb.hibernate.ConfigurationReader

  }

  @Test
  public void testOnSaveInsertReadOnlyFailure() throws Exception {
    Hive hive = getHive();
    ConfigurationReader reader = new ConfigurationReader(Continent.class, WeatherReport.class);
    EntityHiveConfig config = reader.getHiveConfiguration();
    HiveInterceptorDecorator interceptor = new HiveInterceptorDecorator(config, hive);

    WeatherReport report = generateInstance();
    hive.directory().insertPrimaryIndexKey(report.getContinent());
    hive.updateHiveStatus(Lockable.Status.readOnly);
View Full Code Here

Examples of org.hivedb.hibernate.ConfigurationReader

  }

  @Test
  public void testOnDelete() throws Exception{
    Hive hive = getHive();
    ConfigurationReader reader = new ConfigurationReader(Continent.class, WeatherReport.class);
    EntityHiveConfig config = reader.getHiveConfiguration();
    HiveInterceptorDecorator interceptor = new HiveInterceptorDecorator(config, hive);

    WeatherReport report = generateInstance();
    Continent asia = new AsiaticContinent();
    hive.directory().insertPrimaryIndexKey(report.getContinent());
View Full Code Here

Examples of org.hivedb.hibernate.ConfigurationReader

  }

  @Test
  public void fullyInstalledHive() throws Exception {
    new HiveConfigurationSchemaInstaller(getConnectString(HIVE)).run();
    new ConfigurationReader(getPersistedClasses()).install(getConnectString(HIVE));
    barrenHiveDb();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.