- java.lang.Object
-
- io.ebean.Version<T>
-
public class Version<T> extends Object
Wraps a version of a @History bean.
-
-
Field Summary
Fields Modifier and Type Field Description protected TbeanThe version of the bean.protected Map<String,ValuePair>diffThe map of changed properties.protected TimestampendThe effective end date time of this version.protected TimestampstartThe effective start date time of this version.
-
Method Summary
All Methods Instance Methods Concrete Methods 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.StringtoString()
-
-
-
Method Detail
-
getBean
public T getBean()
Return the bean instance for this version.
-
setBean
public void setBean(T bean)
Set the bean instance for this version.
-
getStart
public Timestamp getStart()
Return the effective start date time of this version.
-
setStart
public void setStart(Timestamp start)
Set the effective start date time of this version.
-
getEnd
public Timestamp getEnd()
Return the effective end date time of this version.
-
setEnd
public void setEnd(Timestamp end)
Set the effective end date time of this version.
-
setDiff
public void setDiff(Map<String,ValuePair> diff)
Set the map of differences from this bean to the prior version.
-
getDiff
public Map<String,ValuePair> getDiff()
Return the map of differences from this bean to the prior version.
-
-