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

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

public class TimeDao
extends java.lang.Object
implements SystemTimeLoader

A DAO providing access to the system time on the database server. This avoids relying on the clock of this system which may be different.


Constructor Summary
TimeDao(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
          Creates a new instance.
 
Method Summary
 java.util.Date getSystemTime()
          Gets the system time of the database server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeDao

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

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

getSystemTime

public java.util.Date getSystemTime()
Gets the system time of the database server.

Specified by:
getSystemTime in interface SystemTimeLoader
Returns:
The timestamp.