|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.id.enhanced.OptimizerFactory.OptimizerSupport
org.hibernate.id.enhanced.OptimizerFactory.HiLoOptimizer
public static class OptimizerFactory.HiLoOptimizer
Optimizer which applies a 'hilo' algorithm in memory to achieve optimization.
| Field Summary |
|---|
| Fields inherited from class org.hibernate.id.enhanced.OptimizerFactory.OptimizerSupport |
|---|
incrementSize, returnClass |
| Constructor Summary | |
|---|---|
OptimizerFactory.HiLoOptimizer(java.lang.Class returnClass,
int incrementSize)
|
|
| Method Summary | |
|---|---|
boolean |
applyIncrementSizeToSourceValues()
Are increments to be applied to the values stored in the underlying value source? |
java.io.Serializable |
generate(AccessCallback callback)
Generate an identifier value accounting for this specific optimization. |
long |
getHiValue()
Getter for property 'hiValue'. |
long |
getLastSourceValue()
A common means to access the last value obtained from the underlying source. |
long |
getLastValue()
Getter for property 'lastValue'. |
| Methods inherited from class org.hibernate.id.enhanced.OptimizerFactory.OptimizerSupport |
|---|
getIncrementSize, getReturnClass, make |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OptimizerFactory.HiLoOptimizer(java.lang.Class returnClass,
int incrementSize)
| Method Detail |
|---|
public java.io.Serializable generate(AccessCallback callback)
callback - Callback to access the underlying value source.
public long getLastSourceValue()
public boolean applyIncrementSizeToSourceValues()
public long getLastValue()
public long getHiValue()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||