public class GeneratedInsertDate extends Object implements GeneratedProperty
| Constructor and Description |
|---|
GeneratedInsertDate() |
| Modifier and Type | Method and Description |
|---|---|
Object |
getInsertValue(BeanProperty prop,
Object bean)
Return the current time as a Timestamp.
|
Object |
getUpdateValue(BeanProperty prop,
Object bean)
Just returns the beans original insert timestamp value.
|
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.
|
public Object getInsertValue(BeanProperty prop, Object bean)
getInsertValue in interface GeneratedPropertypublic Object getUpdateValue(BeanProperty prop, Object bean)
getUpdateValue in interface GeneratedPropertypublic boolean includeInUpdate()
includeInUpdate in interface GeneratedPropertypublic boolean includeInInsert()
includeInInsert in interface GeneratedPropertypublic boolean isDDLNotNullable()
GeneratedPropertyisDDLNotNullable in interface GeneratedPropertyCopyright © 2014. All Rights Reserved.