Package org.openstreetmap.osmosis.pgsnapshot.v0_6.impl

Examples of org.openstreetmap.osmosis.pgsnapshot.v0_6.impl.ChangeWriter


     * @param populateCurrentTables If true, the current tables will be populated as well as history
     *        tables.
     */
    public ApidbChangeWriter(DatabaseLoginCredentials loginCredentials, DatabasePreferences preferences,
            boolean populateCurrentTables) {
        changeWriter = new ChangeWriter(loginCredentials, populateCurrentTables);
        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));

View Full Code Here


   * @param preferences
   *            Contains preferences configuring database behaviour.
   */
  public PostgreSqlChangeWriter(DatabaseLoginCredentials loginCredentials, DatabasePreferences preferences) {
    dbCtx = new DatabaseContext(loginCredentials);
    changeWriter = new ChangeWriter(dbCtx);
    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));
   
View Full Code Here

    factoryMap.put("tp", new PostgreSqlTruncatorFactory());
    factoryMap.put("write-pgsql-dump", new PostgreSqlDumpWriterFactory());
    factoryMap.put("wpd", new PostgreSqlDumpWriterFactory());
    factoryMap.put("read-pgsql", new PostgreSqlDatasetReaderFactory());
    factoryMap.put("rp", new PostgreSqlDatasetReaderFactory());
    factoryMap.put("write-pgsql-change", new PostgreSqlChangeWriterFactory());
    factoryMap.put("wpc", new PostgreSqlChangeWriterFactory());
   
    factoryMap.put("write-pgsql-0.6", new PostgreSqlCopyWriterFactory());
    factoryMap.put("truncate-pgsql-0.6", new PostgreSqlTruncatorFactory());
    factoryMap.put("write-pgsql-dump-0.6", new PostgreSqlDumpWriterFactory());
    factoryMap.put("read-pgsql-0.6", new PostgreSqlDatasetReaderFactory());
    factoryMap.put("write-pgsql-change-0.6", new PostgreSqlChangeWriterFactory());
   
    return factoryMap;
  }
View Full Code Here

  public Map<String, TaskManagerFactory> loadTaskFactories() {
    Map<String, TaskManagerFactory> factoryMap;
   
    factoryMap = new HashMap<String, TaskManagerFactory>();
   
    factoryMap.put("write-pgsql", new PostgreSqlCopyWriterFactory());
    factoryMap.put("wp", new PostgreSqlCopyWriterFactory());
    factoryMap.put("truncate-pgsql", new PostgreSqlTruncatorFactory());
    factoryMap.put("tp", new PostgreSqlTruncatorFactory());
    factoryMap.put("write-pgsql-dump", new PostgreSqlDumpWriterFactory());
    factoryMap.put("wpd", new PostgreSqlDumpWriterFactory());
    factoryMap.put("read-pgsql", new PostgreSqlDatasetReaderFactory());
    factoryMap.put("rp", new PostgreSqlDatasetReaderFactory());
    factoryMap.put("write-pgsql-change", new PostgreSqlChangeWriterFactory());
    factoryMap.put("wpc", new PostgreSqlChangeWriterFactory());
   
    factoryMap.put("write-pgsql-0.6", new PostgreSqlCopyWriterFactory());
    factoryMap.put("truncate-pgsql-0.6", new PostgreSqlTruncatorFactory());
    factoryMap.put("write-pgsql-dump-0.6", new PostgreSqlDumpWriterFactory());
    factoryMap.put("read-pgsql-0.6", new PostgreSqlDatasetReaderFactory());
    factoryMap.put("write-pgsql-change-0.6", new PostgreSqlChangeWriterFactory());
   
View Full Code Here

    factoryMap.put("wp", new PostgreSqlCopyWriterFactory());
    factoryMap.put("truncate-pgsql", new PostgreSqlTruncatorFactory());
    factoryMap.put("tp", new PostgreSqlTruncatorFactory());
    factoryMap.put("write-pgsql-dump", new PostgreSqlDumpWriterFactory());
    factoryMap.put("wpd", new PostgreSqlDumpWriterFactory());
    factoryMap.put("read-pgsql", new PostgreSqlDatasetReaderFactory());
    factoryMap.put("rp", new PostgreSqlDatasetReaderFactory());
    factoryMap.put("write-pgsql-change", new PostgreSqlChangeWriterFactory());
    factoryMap.put("wpc", new PostgreSqlChangeWriterFactory());
   
    factoryMap.put("write-pgsql-0.6", new PostgreSqlCopyWriterFactory());
    factoryMap.put("truncate-pgsql-0.6", new PostgreSqlTruncatorFactory());
    factoryMap.put("write-pgsql-dump-0.6", new PostgreSqlDumpWriterFactory());
    factoryMap.put("read-pgsql-0.6", new PostgreSqlDatasetReaderFactory());
    factoryMap.put("write-pgsql-change-0.6", new PostgreSqlChangeWriterFactory());
   
    return factoryMap;
  }
View Full Code Here

   
    factoryMap.put("write-pgsql", new PostgreSqlCopyWriterFactory());
    factoryMap.put("wp", new PostgreSqlCopyWriterFactory());
    factoryMap.put("truncate-pgsql", new PostgreSqlTruncatorFactory());
    factoryMap.put("tp", new PostgreSqlTruncatorFactory());
    factoryMap.put("write-pgsql-dump", new PostgreSqlDumpWriterFactory());
    factoryMap.put("wpd", new PostgreSqlDumpWriterFactory());
    factoryMap.put("read-pgsql", new PostgreSqlDatasetReaderFactory());
    factoryMap.put("rp", new PostgreSqlDatasetReaderFactory());
    factoryMap.put("write-pgsql-change", new PostgreSqlChangeWriterFactory());
    factoryMap.put("wpc", new PostgreSqlChangeWriterFactory());
   
    factoryMap.put("write-pgsql-0.6", new PostgreSqlCopyWriterFactory());
    factoryMap.put("truncate-pgsql-0.6", new PostgreSqlTruncatorFactory());
    factoryMap.put("write-pgsql-dump-0.6", new PostgreSqlDumpWriterFactory());
    factoryMap.put("read-pgsql-0.6", new PostgreSqlDatasetReaderFactory());
    factoryMap.put("write-pgsql-change-0.6", new PostgreSqlChangeWriterFactory());
   
    return factoryMap;
  }
View Full Code Here

   
    factoryMap = new HashMap<String, TaskManagerFactory>();
   
    factoryMap.put("write-pgsql", new PostgreSqlCopyWriterFactory());
    factoryMap.put("wp", new PostgreSqlCopyWriterFactory());
    factoryMap.put("truncate-pgsql", new PostgreSqlTruncatorFactory());
    factoryMap.put("tp", new PostgreSqlTruncatorFactory());
    factoryMap.put("write-pgsql-dump", new PostgreSqlDumpWriterFactory());
    factoryMap.put("wpd", new PostgreSqlDumpWriterFactory());
    factoryMap.put("read-pgsql", new PostgreSqlDatasetReaderFactory());
    factoryMap.put("rp", new PostgreSqlDatasetReaderFactory());
    factoryMap.put("write-pgsql-change", new PostgreSqlChangeWriterFactory());
    factoryMap.put("wpc", new PostgreSqlChangeWriterFactory());
   
    factoryMap.put("write-pgsql-0.6", new PostgreSqlCopyWriterFactory());
    factoryMap.put("truncate-pgsql-0.6", new PostgreSqlTruncatorFactory());
    factoryMap.put("write-pgsql-dump-0.6", new PostgreSqlDumpWriterFactory());
    factoryMap.put("read-pgsql-0.6", new PostgreSqlDatasetReaderFactory());
    factoryMap.put("write-pgsql-change-0.6", new PostgreSqlChangeWriterFactory());
   
    return factoryMap;
View Full Code Here

      DatabasePreferences preferences, boolean keepInvalidWays) {
    dbCtx = new DatabaseContext(loginCredentials);
    changeWriter = new ChangeWriter(dbCtx);
    actionWriterMap = new HashMap<ChangeAction, ActionChangeWriter>();
    actionWriterMap.put(ChangeAction.Create,
        new ActionChangeWriter(changeWriter, ChangeAction.Create, keepInvalidWays));
    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

   *            database which can cause problems with postgis functions.
   */
  public PostgreSqlChangeWriter(DatabaseLoginCredentials loginCredentials,
      DatabasePreferences preferences, boolean keepInvalidWays) {
    dbCtx = new DatabaseContext(loginCredentials);
    changeWriter = new ChangeWriter(dbCtx);
    actionWriterMap = new HashMap<ChangeAction, ActionChangeWriter>();
    actionWriterMap.put(ChangeAction.Create,
        new ActionChangeWriter(changeWriter, ChangeAction.Create, keepInvalidWays));
    actionWriterMap.put(ChangeAction.Modify,
        new ActionChangeWriter(changeWriter, ChangeAction.Modify, keepInvalidWays));
View Full Code Here

    DirectoryCopyFileset copyFileset;
   
    copyFileset = new DirectoryCopyFileset(filePrefix);
   
    copyFilesetBuilder =
      new CopyFilesetBuilder(copyFileset, enableBboxBuilder, enableLinestringBuilder, storeType, keepInvalidWays);
  }
View Full Code Here

TOP

Related Classes of org.openstreetmap.osmosis.pgsnapshot.v0_6.impl.ChangeWriter

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.