|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Performs optimization on an optimizable identifier generator. Typically this optimization takes the form of trying to ensure we do not have to hit the database on each and every request to get an identifier value.
Optimizers work on constructor injection. They should provide a constructor with the following arguments
Method Summary | |
boolean |
applyIncrementSizeToSourceValues()
Are increments to be applied to the values stored in the underlying value source? |
Serializable |
generate(AccessCallback callback)
Generate an identifier value accounting for this specific optimization. |
int |
getIncrementSize()
Retrieves the defined increment size. |
long |
getLastSourceValue()
A common means to access the last value obtained from the underlying source. |
Method Detail |
public Serializable generate(AccessCallback callback)
callback
- Callback to access the underlying value source.
public long getLastSourceValue()
public int getIncrementSize()
public boolean applyIncrementSizeToSourceValues()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |