Examples of SchemaVersionValidator


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

    dbCtx = new DatabaseContext(loginCredentials);
   
    this.enableBboxBuilder = enableBboxBuilder;
    this.enableLinestringBuilder = enableLinestringBuilder;
   
    schemaVersionValidator = new SchemaVersionValidator(dbCtx, preferences);
    indexManager = new IndexManager(dbCtx, !enableBboxBuilder, !enableLinestringBuilder);
   
    nodeBuffer = new ArrayList<Node>();
    nodeTagBuffer = new ArrayList<DbFeature<Tag>>();
    wayBuffer = new ArrayList<Way>();
View Full Code Here

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

    actionWriterMap = new HashMap<ChangeAction, ActionChangeWriter>();
    actionWriterMap.put(ChangeAction.Create, new ActionChangeWriter(changeWriter, ChangeAction.Create));
    actionWriterMap.put(ChangeAction.Modify, new ActionChangeWriter(changeWriter, ChangeAction.Modify));
    actionWriterMap.put(ChangeAction.Delete, new ActionChangeWriter(changeWriter, ChangeAction.Delete));
   
    schemaVersionValidator = new SchemaVersionValidator(dbCtx, preferences);
  }
View Full Code Here

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

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

      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

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

   *            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

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

    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
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.