public class FindTrackCycleTransformer extends Object implements FunctionTransformer<TrackCycle,TrackCycle>
TrackCycle
TrackCycle
is created with same
TrackInfo.getNamespace()
,
TrackInfo.getOwnerRef()
and
TrackCycle.getCycle()
as the one passed in.Cycle
TrackCycle
is found, then it is made inactive and
persisted and a new TrackCycle
is created with same
TrackInfo.getNamespace()
,
TrackInfo.getOwnerRef()
and
TrackCycle.getCycle()
as the one inactive.Constructor and Description |
---|
FindTrackCycleTransformer() |
Modifier and Type | Method and Description |
---|---|
org.apache.commons.collections.Transformer |
getPersistTrackCycleTransformer()
If an out of
Cycle TrackCycle is found, then it is made inactive and persisted |
QueryTransformer |
getQueryTrackCycleTransformer() |
protected boolean |
isTodayWithInCurrentCycle(Cycle cycle) |
void |
setPersistTrackCycleTransformer(org.apache.commons.collections.Transformer persistTrackCycleTransformer)
If an out of
Cycle TrackCycle is found, then it is made inactive and persisted |
void |
setQueryTrackCycleTransformer(QueryTransformer queryTrackCycleTransformer) |
Object |
transform(Object input) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply
public Object transform(Object input)
transform
in interface org.apache.commons.collections.Transformer
protected boolean isTodayWithInCurrentCycle(Cycle cycle)
public QueryTransformer getQueryTrackCycleTransformer()
QueryTransformer
that gets the TrackCycle
entity for the provided TrackCycle
public void setQueryTrackCycleTransformer(QueryTransformer queryTrackCycleTransformer)
queryTrackCycleTransformer
- QueryTransformer
that gets the TrackCycle
entity for the provided TrackCycle
public org.apache.commons.collections.Transformer getPersistTrackCycleTransformer()
Cycle
TrackCycle
is found, then it is made inactive and persistedTransformer
to persist a TrackCycle
public void setPersistTrackCycleTransformer(org.apache.commons.collections.Transformer persistTrackCycleTransformer)
Cycle
TrackCycle
is found, then it is made inactive and persistedpersistTrackCycleTransformer
- - Transformer
to persist a TrackCycle
Copyright © 2018. All rights reserved.