Package org.openstreetmap.osmosis.pgsimple.common

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


    if (dbCtx == null) {
      ActionDao actionDao;
     
      dbCtx = new DatabaseContext(loginCredentials);
     
      new SchemaVersionValidator(dbCtx, preferences).validateVersion(
          PostgreSqlVersionConstants.SCHEMA_VERSION);
     
      capabilityChecker = new DatabaseCapabilityChecker(dbCtx);
     
      actionDao = releasableContainer.add(new ActionDao(dbCtx));
View Full Code Here


      DatabaseContext dbCtx = new DatabaseContext(loginCredentials);
     
      try {
      IndexManager indexManager;
     
      new SchemaVersionValidator(dbCtx, preferences)
        .validateVersion(PostgreSqlVersionConstants.SCHEMA_VERSION);
       
        indexManager = new IndexManager(dbCtx, false, false);
       
      // Drop all constraints and indexes.
View Full Code Here

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

    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

    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

TOP

Related Classes of org.openstreetmap.osmosis.pgsimple.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.