Package org.projectbarbel.histo.model
Class BitemporalStamp
- java.lang.Object
-
- org.projectbarbel.histo.model.BitemporalStamp
-
public final class BitemporalStamp extends Object
Abstraction to carry the bitemporal data for each individual version.- Author:
- Niklas Schlimm
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BitemporalStamp.Builder
Builder to buildBitemporalStamp
.
-
Field Summary
Fields Modifier and Type Field Description protected String
activity
protected Object
documentId
protected EffectivePeriod
effectiveTime
protected RecordPeriod
recordTime
protected String
versionId
-
Constructor Summary
Constructors Constructor Description BitemporalStamp()
-
Method Summary
Modifier and Type Method Description static BitemporalStamp.Builder
builder()
Creates builder to buildBitemporalStamp
.static BitemporalStamp
createActive()
static BitemporalStamp
createActive(Object id)
static BitemporalStamp
createActive(BarbelHistoContext context, Object documentId, EffectivePeriod period)
boolean
equals(Object obj)
String
getActivity()
Object
getDocumentId()
EffectivePeriod
getEffectiveTime()
RecordPeriod
getRecordTime()
String
getVersionId()
int
hashCode()
BitemporalStamp
inactivatedCopy(BarbelHistoContext context)
boolean
isActive()
static BitemporalStamp
of(String activity, Object documentId, EffectivePeriod effectiveTime, RecordPeriod recordTime)
String
toString()
-
-
-
Field Detail
-
versionId
protected String versionId
-
documentId
protected Object documentId
-
activity
protected String activity
-
effectiveTime
protected EffectivePeriod effectiveTime
-
recordTime
protected RecordPeriod recordTime
-
-
Method Detail
-
createActive
public static BitemporalStamp createActive()
-
createActive
public static BitemporalStamp createActive(Object id)
-
createActive
public static BitemporalStamp createActive(BarbelHistoContext context, Object documentId, EffectivePeriod period)
-
of
public static BitemporalStamp of(String activity, Object documentId, EffectivePeriod effectiveTime, RecordPeriod recordTime)
-
getVersionId
public String getVersionId()
-
getEffectiveTime
public EffectivePeriod getEffectiveTime()
-
getRecordTime
public RecordPeriod getRecordTime()
-
getDocumentId
public Object getDocumentId()
-
getActivity
public String getActivity()
-
inactivatedCopy
public BitemporalStamp inactivatedCopy(BarbelHistoContext context)
-
isActive
public boolean isActive()
-
builder
public static BitemporalStamp.Builder builder()
Creates builder to buildBitemporalStamp
.- Returns:
- created builder
-
-