public class GeneratedCounter extends Object implements GeneratedProperty
| Constructor and Description |
|---|
GeneratedCounter(int numberType) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getInsertValue(BeanProperty prop,
Object bean)
Always returns a 1.
|
Object |
getUpdateValue(BeanProperty prop,
Object bean)
Increments the current value by one.
|
boolean |
includeInInsert()
Include this in every insert setting initial counter value to 1.
|
boolean |
includeInUpdate()
Include this in every update.
|
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.