com.anasoft.os.daofusion.bitemporal
Interface ReferenceTimeProvider

All Known Implementing Classes:
ThreadLocalReferenceProvider

public interface ReferenceTimeProvider

Strategy for dealing with the reference time.

You can override the default ReferenceTimeProvider implementation TimeUtils works with by calling the setReferenceProvider method.

Author:
michal.jemala, vojtech.szocs
See Also:
TimeUtils

Method Summary
 void clearReference()
          Clears the reference time.
 org.joda.time.DateTime getReference()
          Returns the reference time, possibly null.
 void setReference(org.joda.time.DateTime dateTime)
          Sets the reference time to the specified value.
 

Method Detail

getReference

org.joda.time.DateTime getReference()
Returns the reference time, possibly null.


setReference

void setReference(org.joda.time.DateTime dateTime)
Sets the reference time to the specified value.


clearReference

void clearReference()
Clears the reference time. After clearing, getReference should return null to indicate the reference time is no longer being set.



Copyright © 2008-2009 ANASOFT and contributors. All Rights Reserved.