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 class
RecordPeriod.Builder
-
Field Summary
Fields Modifier and Type Field Description static String
NOBODY
static ZonedDateTime
NOT_INACTIVATED
-
Constructor Summary
Constructors Constructor Description RecordPeriod()
-
Method Summary
Modifier and Type Method Description RecordPeriod
activate()
static RecordPeriod.Builder
builder()
BitemporalObjectState
compileState()
static RecordPeriod
createActive()
static RecordPeriod
createActive(BarbelHistoContext context)
boolean
equals(Object o)
ZonedDateTime
getCreatedAt()
String
getCreatedBy()
ZonedDateTime
getInactivatedAt()
String
getInactivatedBy()
BitemporalObjectState
getState()
int
hashCode()
RecordPeriod
inactivate(BarbelHistoContext context)
String
toString()
-
-
-
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()
-
-