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 interfaceBitemporalis only required inBarbelMode.BITEMPORALand thePersistenceConfigis only required withDiskPersistenceandOffHeapPersistence.- Author:
- Niklas Schlimm
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDefaultDocument.BuilderBuilder 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.Builderbuilder()Creates builder to buildDefaultDocument.booleanequals(Object obj)BitemporalStampgetBitemporalStamp()StringgetData()StringgetId()inthashCode()voidsetBitemporalStamp(BitemporalStamp stamp)voidsetData(String data)voidsetId(String id)StringtoString()
-
-
-
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:
getBitemporalStampin interfaceBitemporal
-
setBitemporalStamp
public void setBitemporalStamp(BitemporalStamp stamp)
- Specified by:
setBitemporalStampin 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
-
-