Examples of AllEntityDao


Examples of org.openstreetmap.osmosis.apidb.v0_6.impl.AllEntityDao

    SystemTimeLoader systemTimeLoader;
   
    new SchemaVersionValidator(loginCredentials, preferences)
        .validateVersion(ApidbVersionConstants.SCHEMA_MIGRATIONS);
   
    source = new AllEntityDao(dbCtx.getJdbcTemplate());
    txnSnapshotLoader = new TransactionDao(dbCtx);
    systemTimeLoader = new TimeDao(dbCtx.getJdbcTemplate());
   
    replicator = new Replicator(source, changeSink, txnSnapshotLoader, systemTimeLoader, iterations, minInterval,
        maxInterval);
View Full Code Here

Examples of org.openstreetmap.osmosis.apidb.v0_6.impl.AllEntityDao

   * @param dbCtx
   *            Used to access the database.
   */
    protected void runImpl(DatabaseContext2 dbCtx) {
      try {
        AllEntityDao entityDao;
        ReleasableIterator<EntityContainer> reader;
       
        sink.initialize(Collections.<String, Object>emptyMap());
       
          new SchemaVersionValidator(loginCredentials, preferences)
                  .validateVersion(ApidbVersionConstants.SCHEMA_MIGRATIONS);
         
          entityDao = new AllEntityDao(dbCtx.getJdbcTemplate());
         
          sink.process(new BoundContainer(new Bound("Osmosis " + OsmosisConstants.VERSION)));
          reader = entityDao.getCurrent();
          try {
            while (reader.hasNext()) {
              sink.process(reader.next());
            }
           
View Full Code Here

Examples of org.openstreetmap.osmosis.apidb.v0_6.impl.AllEntityDao

   * @param dbCtx
   *            Used to access the database.
   */
    protected void runImpl(DatabaseContext2 dbCtx) {
      try {
        AllEntityDao entityDao;
        ReleasableIterator<ChangeContainer> reader;
       
        changeSink.initialize(Collections.<String, Object>emptyMap());
       
          new SchemaVersionValidator(loginCredentials, preferences)
                  .validateVersion(ApidbVersionConstants.SCHEMA_MIGRATIONS);
         
          entityDao = new AllEntityDao(dbCtx.getJdbcTemplate());
         
          reader = entityDao.getHistory(intervalBegin, intervalEnd);
          if (!fullHistory) {
            reader = new DeltaToDiffReader(reader);
          }
          try {
            while (reader.hasNext()) {
View Full Code Here

Examples of org.openstreetmap.osmosis.apidb.v0_6.impl.AllEntityDao

   * @param dbCtx
   *            Used to access the database.
   */
    protected void runImpl(DatabaseContext2 dbCtx) {
      try {
        AllEntityDao entityDao;
        ReleasableIterator<EntityContainer> reader;
       
        sink.initialize(Collections.<String, Object>emptyMap());
       
          new SchemaVersionValidator(loginCredentials, preferences)
                  .validateVersion(ApidbVersionConstants.SCHEMA_MIGRATIONS);
         
          entityDao = new AllEntityDao(dbCtx.getJdbcTemplate());

          sink.process(new BoundContainer(new Bound("Osmosis " + OsmosisConstants.VERSION)));
          reader = new EntitySnapshotReader(entityDao.getHistory(), snapshotInstant);
          try {
            while (reader.hasNext()) {
              sink.process(reader.next());
            }
           
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.