E
- as Entity typeTR
- as Track
typepublic abstract class TrackTransformer<E,TR> extends Object implements org.apache.commons.collections.Transformer, Chainable<E>
Modifier and Type | Field and Description |
---|---|
protected Date |
curDateTime |
protected boolean |
trustEntityTimestamp
If the entity has an update timestamp/date then should we trust that or assign
the time of tracking when this code is called.
|
Constructor and Description |
---|
TrackTransformer() |
Modifier and Type | Method and Description |
---|---|
protected Consumer<TR> |
actionOnTrack()
Define a Custom action on track object
|
boolean |
isTrustEntityTimestamp()
If the entity has an update timestamp/date then should we trust that or assign
the time of tracking when this code is called.
|
void |
setTrustEntityTimestamp(boolean trustEntityTimestamp)
If the entity has an update timestamp/date then should we trust that or assign
the time of tracking when this code is called.
|
protected abstract TR |
track(E e)
Convert Entity to Trackable Object
|
Object |
transform(Object input) |
protected boolean trustEntityTimestamp
TrackTransformer
can be called asynchronously,
the Date/Time when it was called Vs when the change actually occured can be important.protected transient Date curDateTime
protected Consumer<TR> actionOnTrack()
Consumer
of Track type public Object transform(Object input)
transform
in interface org.apache.commons.collections.Transformer
protected abstract TR track(E e)
e
- as Entity type Track
public boolean isTrustEntityTimestamp()
TrackTransformer
can be called asynchronously,
the Date/Time when it was called Vs when the change actually occured can be important.public void setTrustEntityTimestamp(boolean trustEntityTimestamp)
TrackTransformer
can be called asynchronously,
the Date/Time when it was called Vs when the change actually occured can be important.Copyright © 2018. All rights reserved.