Package io.ebean
Class Version<T>
java.lang.Object
io.ebean.Version<T>
public class Version<T> extends Object
Wraps a version of a @History bean.
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description TgetBean()Return the bean instance for this version.Map<String,ValuePair>getDiff()Return the map of differences from this bean to the prior version.TimestampgetEnd()Return the effective end date time of this version.TimestampgetStart()Return the effective start date time of this version.voidsetBean(T bean)Set the bean instance for this version.voidsetDiff(Map<String,ValuePair> diff)Set the map of differences from this bean to the prior version.voidsetEnd(Timestamp end)Set the effective end date time of this version.voidsetStart(Timestamp start)Set the effective start date time of this version.
-
Constructor Details
-
Version
Construct with bean and an effective date time range. -
Version
public Version()Default constructor - useful for JSON tools such as Jackson.
-
-
Method Details
-
getBean
Return the bean instance for this version. -
setBean
Set the bean instance for this version. -
getStart
Return the effective start date time of this version. -
setStart
Set the effective start date time of this version. -
getEnd
Return the effective end date time of this version. -
setEnd
Set the effective end date time of this version. -
setDiff
Set the map of differences from this bean to the prior version. -
getDiff
Return the map of differences from this bean to the prior version.
-