Class GeneratedWhoModified
- java.lang.Object
-
- io.ebeaninternal.server.deploy.generatedproperty.GeneratedWhoModified
-
- All Implemented Interfaces:
GeneratedProperty
public class GeneratedWhoModified extends Object implements GeneratedProperty
Used to populate @WhoModified bean properties.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getInsertValue(BeanProperty prop, EntityBean bean, long now)
Get the generated insert value for a specific property of a bean.Object
getUpdateValue(BeanProperty prop, EntityBean bean, long now)
Get the generated update value for a specific property of a bean.boolean
includeInAllUpdates()
Return true if the property should be included in an update even if it is not loaded (ie.boolean
includeInInsert()
Return true if this should be included in insert statements.boolean
includeInUpdate()
Return true if this should always be includes in an update statement.boolean
isDDLNotNullable()
Return true if the GeneratedProperty implies the DDL to create the DB column should have a not null constraint.
-
-
-
Method Detail
-
getInsertValue
public Object getInsertValue(BeanProperty prop, EntityBean bean, long now)
Description copied from interface:GeneratedProperty
Get the generated insert value for a specific property of a bean.- Specified by:
getInsertValue
in interfaceGeneratedProperty
-
getUpdateValue
public Object getUpdateValue(BeanProperty prop, EntityBean bean, long now)
Description copied from interface:GeneratedProperty
Get the generated update value for a specific property of a bean.- Specified by:
getUpdateValue
in interfaceGeneratedProperty
-
includeInUpdate
public boolean includeInUpdate()
Description copied from interface:GeneratedProperty
Return true if this should always be includes in an update statement.Used to include GeneratedUpdateTimestamp in dynamic table updates.
- 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()
Description copied from interface:GeneratedProperty
Return true if this should be included in insert statements.- 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
-
-