Package org.openstreetmap.osmosis.pgsnapshot.common

Examples of org.openstreetmap.osmosis.pgsnapshot.common.SchemaVersionValidator


      dbCtx = new DatabaseContext(loginCredentials);
      jdbcTemplate = dbCtx.getJdbcTemplate();
     
      dbCtx.beginTransaction();
     
      new SchemaVersionValidator(jdbcTemplate, preferences).validateVersion(
          PostgreSqlVersionConstants.SCHEMA_VERSION);
     
      capabilityChecker = new DatabaseCapabilityChecker(dbCtx);
     
      actionDao = new ActionDao(dbCtx);
View Full Code Here


      String[] wayColumns;
     
      dbCtx.beginTransaction();
     
      capabilityChecker = new DatabaseCapabilityChecker(dbCtx);
      new SchemaVersionValidator(dbCtx.getJdbcTemplate(), preferences)
        .validateVersion(PostgreSqlVersionConstants.SCHEMA_VERSION);
     
      wayColumns = WAY_COLUMNS;
      if (capabilityChecker.isWayBboxSupported()) {
        wayColumns = appendColumn(wayColumns, "bbox");
View Full Code Here

   *            Contains preferences configuring database behaviour.
   */
  public PostgreSqlTruncator(DatabaseLoginCredentials loginCredentials, DatabasePreferences preferences) {
    dbCtx = new DatabaseContext(loginCredentials);
   
    schemaVersionValidator = new SchemaVersionValidator(dbCtx.getJdbcTemplate(), preferences);
  }
View Full Code Here

    actionWriterMap.put(ChangeAction.Modify,
        new ActionChangeWriter(changeWriter, ChangeAction.Modify, keepInvalidWays));
    actionWriterMap.put(ChangeAction.Delete,
        new ActionChangeWriter(changeWriter, ChangeAction.Delete, keepInvalidWays));
   
    schemaVersionValidator = new SchemaVersionValidator(dbCtx.getJdbcTemplate(), preferences);
   
    initialized = false;
  }
View Full Code Here

TOP

Related Classes of org.openstreetmap.osmosis.pgsnapshot.common.SchemaVersionValidator

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.