Package org.projectbarbel.histo.model
Class RecordPeriod
- java.lang.Object
-
- org.projectbarbel.histo.model.RecordPeriod
-
public class RecordPeriod extends Object
The abstraction for storing the record time details of a version.- Author:
- Niklas Schlimm
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRecordPeriod.Builder
-
Field Summary
Fields Modifier and Type Field Description static StringNOBODYstatic ZonedDateTimeNOT_INACTIVATED
-
Constructor Summary
Constructors Constructor Description RecordPeriod()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RecordPeriodactivate()static RecordPeriod.Builderbuilder()BitemporalObjectStatecompileState()static RecordPeriodcreateActive()static RecordPeriodcreateActive(BarbelHistoContext context)booleanequals(Object o)ZonedDateTimegetCreatedAt()StringgetCreatedBy()ZonedDateTimegetInactivatedAt()StringgetInactivatedBy()BitemporalObjectStategetState()inthashCode()RecordPeriodinactivate(BarbelHistoContext context)StringtoString()
-
-
-
Field Detail
-
NOT_INACTIVATED
public static final ZonedDateTime NOT_INACTIVATED
-
NOBODY
public static final String NOBODY
- See Also:
- Constant Field Values
-
-
Method Detail
-
createActive
public static RecordPeriod createActive(BarbelHistoContext context)
-
createActive
public static RecordPeriod createActive()
-
compileState
public BitemporalObjectState compileState()
-
inactivate
public RecordPeriod inactivate(BarbelHistoContext context)
-
activate
public RecordPeriod activate()
-
getCreatedBy
public String getCreatedBy()
-
getCreatedAt
public ZonedDateTime getCreatedAt()
-
getState
public BitemporalObjectState getState()
-
getInactivatedAt
public ZonedDateTime getInactivatedAt()
-
getInactivatedBy
public String getInactivatedBy()
-
builder
public static RecordPeriod.Builder builder()
-
-