org.openstreetmap.osmosis.core.apidb.v0_6.impl
Class TransactionDao

java.lang.Object
  extended by org.openstreetmap.osmosis.core.apidb.v0_6.impl.TransactionDao
All Implemented Interfaces:
TransactionSnapshotLoader

public class TransactionDao
extends java.lang.Object
implements TransactionSnapshotLoader

Reads active transaction ids from the database allowing up-to-current queries to be performed when extracting changesets from the history tables.


Constructor Summary
TransactionDao(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
          Creates a new instance.
 
Method Summary
 TransactionSnapshot getTransactionSnapshot()
          Obtains the current database snapshot.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionDao

public TransactionDao(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
Creates a new instance.

Parameters:
jdbcTemplate - Used to access the database.
Method Detail

getTransactionSnapshot

public TransactionSnapshot getTransactionSnapshot()
Obtains the current database snapshot.

Specified by:
getTransactionSnapshot in interface TransactionSnapshotLoader
Returns:
The transaction snapshot.