Package org.projectbarbel.histo.model
Class DefaultDocument
- java.lang.Object
-
- org.projectbarbel.histo.model.DefaultDocument
-
- All Implemented Interfaces:
Bitemporal
public class DefaultDocument extends Object implements Bitemporal
A fully equipped example implementation for business classes managed byBarbelHisto
. Notice that the interfaceBitemporal
is only required inBarbelMode.BITEMPORAL
and thePersistenceConfig
is only required withDiskPersistence
andOffHeapPersistence
.- Author:
- Niklas Schlimm
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DefaultDocument.Builder
Builder to buildDefaultDocument
.
-
Constructor Summary
Constructors Constructor Description DefaultDocument()
DefaultDocument(String id, String data)
DefaultDocument(String objectId, BitemporalStamp bitemporalStamp, String data)
DefaultDocument(BitemporalStamp stamp, String data)
DefaultDocument(DefaultDocument template)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DefaultDocument.Builder
builder()
Creates builder to buildDefaultDocument
.boolean
equals(Object obj)
BitemporalStamp
getBitemporalStamp()
String
getData()
String
getId()
int
hashCode()
void
setBitemporalStamp(BitemporalStamp stamp)
void
setData(String data)
void
setId(String id)
String
toString()
-
-
-
Constructor Detail
-
DefaultDocument
public DefaultDocument()
-
DefaultDocument
public DefaultDocument(String objectId, BitemporalStamp bitemporalStamp, String data)
-
DefaultDocument
public DefaultDocument(BitemporalStamp stamp, String data)
-
DefaultDocument
public DefaultDocument(DefaultDocument template)
-
-
Method Detail
-
getBitemporalStamp
public BitemporalStamp getBitemporalStamp()
- Specified by:
getBitemporalStamp
in interfaceBitemporal
-
setBitemporalStamp
public void setBitemporalStamp(BitemporalStamp stamp)
- Specified by:
setBitemporalStamp
in interfaceBitemporal
-
setData
public void setData(String data)
-
getId
public String getId()
-
setId
public void setId(String id)
-
getData
public String getData()
-
builder
public static DefaultDocument.Builder builder()
Creates builder to buildDefaultDocument
.- Returns:
- created builder
-
-