com.anasoft.os.daofusion.bitemporal
Interface ValueAccessor<V,T extends Bitemporal>

Type Parameters:
V - Value wrapped by the Bitemporal object.
T - Bitemporal object implementation that wraps the given value type.
All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
WrappedValueAccessor

public interface ValueAccessor<V,T extends Bitemporal>
extends java.io.Serializable

Simple strategy to access the value in a Bitemporal object.

Author:
Erwin Vervaet, Christophe Vanfleteren
See Also:
Bitemporal

Method Summary
 V extractValue(T bitemporalObject)
          Extract the value from the given Bitemporal object.
 T wrapValue(V value, org.joda.time.Interval validityInterval)
          Create a Bitemporal object wrapping given value, valid for the specified interval.
 

Method Detail

extractValue

V extractValue(T bitemporalObject)
Extract the value from the given Bitemporal object.


wrapValue

T wrapValue(V value,
            org.joda.time.Interval validityInterval)
Create a Bitemporal object wrapping given value, valid for the specified interval.



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