Class HistoricEvent
- java.lang.Object
-
- de.fraunhofer.iese.mydata.policy.event.history.HistoricEvent
-
@Entity(name="historic_event") public class HistoricEvent extends Object
-
-
Constructor Summary
Constructors Constructor Description HistoricEvent()
Default constructor for JPA.HistoricEvent(Event event, Set<HistoricEventTrackItem> trackItems)
New instance from event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addHistoricEventParameter(HistoricEventParameter historicEventParameter)
Add historic event parameter.Collection<HistoricEventParameter>
getHistoricEventParameters()
void
removeHistoricEventParameter(HistoricEventParameter historicEventParameter)
Remove historic event parameter.void
setHistoricEventParameters(Collection<HistoricEventParameter> historicEventParameters)
-
-
-
Constructor Detail
-
HistoricEvent
public HistoricEvent()
Default constructor for JPA.
-
HistoricEvent
public HistoricEvent(Event event, Set<HistoricEventTrackItem> trackItems)
New instance from event.- Parameters:
event
- event to be storedtrackItems
- parameters to be saved
-
-
Method Detail
-
addHistoricEventParameter
public void addHistoricEventParameter(HistoricEventParameter historicEventParameter)
Add historic event parameter.- Parameters:
historicEventParameter
- parameter to be added
-
removeHistoricEventParameter
public void removeHistoricEventParameter(HistoricEventParameter historicEventParameter)
Remove historic event parameter. Not used yet as it depends from the Garbage strategy TO BE DONE- Parameters:
historicEventParameter
- parameter to be removed
-
getHistoricEventParameters
public Collection<HistoricEventParameter> getHistoricEventParameters()
-
setHistoricEventParameters
public void setHistoricEventParameters(Collection<HistoricEventParameter> historicEventParameters)
-
-