com.elasticpath.service.misc.impl
Class DatabaseServerTimeServiceImpl

java.lang.Object
  extended by com.elasticpath.service.impl.AbstractEpServiceImpl
      extended by com.elasticpath.service.impl.AbstractEpPersistenceServiceImpl
          extended by com.elasticpath.service.misc.impl.DatabaseServerTimeServiceImpl
All Implemented Interfaces:
EpPersistenceService, EpService, TimeService

public class DatabaseServerTimeServiceImpl
extends AbstractEpPersistenceServiceImpl
implements TimeService

Provides an implementation of TimeService to retrieve a timestamp from the database server.


Constructor Summary
DatabaseServerTimeServiceImpl()
           
 
Method Summary
 java.util.Date getCurrentTime()
          Returns the current time.
 ElasticPath getElasticPath()
          Returns the elastic path context.
 java.lang.Object getObject(long uid)
          Not implmented.
 void setElasticPath(ElasticPath elasticpath)
          Sets the elastic path context.
 
Methods inherited from class com.elasticpath.service.impl.AbstractEpPersistenceServiceImpl
getPersistenceEngine, setPersistenceEngine
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.elasticpath.service.EpPersistenceService
getPersistenceEngine, setPersistenceEngine
 

Constructor Detail

DatabaseServerTimeServiceImpl

public DatabaseServerTimeServiceImpl()
Method Detail

getCurrentTime

public java.util.Date getCurrentTime()
Returns the current time.

Specified by:
getCurrentTime in interface TimeService
Returns:
the current time.

getElasticPath

public ElasticPath getElasticPath()
Returns the elastic path context.

Specified by:
getElasticPath in interface EpService
Overrides:
getElasticPath in class AbstractEpServiceImpl
Returns:
the elastic path context

getObject

public java.lang.Object getObject(long uid)
                           throws EpServiceException
Not implmented.

Specified by:
getObject in interface EpPersistenceService
Parameters:
uid - not used
Returns:
never returns
Throws:
EpServiceException - when it is called

setElasticPath

public void setElasticPath(ElasticPath elasticpath)
Sets the elastic path context.

Specified by:
setElasticPath in interface EpService
Overrides:
setElasticPath in class AbstractEpServiceImpl
Parameters:
elasticpath - sets the elastic path