public class GeneratedCounterInteger extends Object implements GeneratedProperty
Constructor and Description |
---|
GeneratedCounterInteger() |
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 GeneratedProperty
public Object getUpdateValue(BeanProperty prop, Object bean)
getUpdateValue
in interface GeneratedProperty
public boolean includeInUpdate()
includeInUpdate
in interface GeneratedProperty
public boolean includeInInsert()
includeInInsert
in interface GeneratedProperty
public boolean isDDLNotNullable()
GeneratedProperty
isDDLNotNullable
in interface GeneratedProperty
Copyright © 2015. All Rights Reserved.