Class GeneratedInsertLong
- java.lang.Object
-
- io.ebeaninternal.server.deploy.generatedproperty.GeneratedInsertLong
-
- All Implemented Interfaces:
GeneratedProperty
public class GeneratedInsertLong extends Object implements GeneratedProperty
Used to generate a (Long) timestamp when a bean is inserted.
-
-
Constructor Summary
Constructors Constructor Description GeneratedInsertLong()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getInsertValue(BeanProperty prop, EntityBean bean, long now)
Return the current time as a Timestamp.Object
getUpdateValue(BeanProperty prop, EntityBean bean, long now)
Just returns the beans original insert timestamp value.boolean
includeInAllUpdates()
Return true if the property should be included in an update even if it is not loaded (ie.boolean
includeInInsert()
Return true.boolean
includeInUpdate()
Return false.boolean
isDDLNotNullable()
Return true if the GeneratedProperty implies the DDL to create the DB column should have a not null constraint.
-
-
-
Constructor Detail
-
GeneratedInsertLong
public GeneratedInsertLong()
-
-
Method Detail
-
getInsertValue
public Object getInsertValue(BeanProperty prop, EntityBean bean, long now)
Return the current time as a Timestamp.- Specified by:
getInsertValue
in interfaceGeneratedProperty
-
getUpdateValue
public Object getUpdateValue(BeanProperty prop, EntityBean bean, long now)
Just returns the beans original insert timestamp value.- Specified by:
getUpdateValue
in interfaceGeneratedProperty
-
includeInUpdate
public boolean includeInUpdate()
Return false.- Specified by:
includeInUpdate
in interfaceGeneratedProperty
-
includeInAllUpdates
public boolean includeInAllUpdates()
Description copied from interface:GeneratedProperty
Return true if the property should be included in an update even if it is not loaded (ie. Last Updated Timestamp).- Specified by:
includeInAllUpdates
in interfaceGeneratedProperty
-
includeInInsert
public boolean includeInInsert()
Return true.- Specified by:
includeInInsert
in interfaceGeneratedProperty
-
isDDLNotNullable
public boolean isDDLNotNullable()
Description copied from interface:GeneratedProperty
Return true if the GeneratedProperty implies the DDL to create the DB column should have a not null constraint.- Specified by:
isDDLNotNullable
in interfaceGeneratedProperty
-
-