PooledOptimizer which interprets the incoming database value as the lo value, rather than
the hi value.
PooledOptimizer
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final CoreMessageLogger | |
| private PooledLoOptimizer. | |
| private Map |
| Access | Constructor and Description |
|---|---|
| public | PooledLoOptimizer(Class<T>
The Java type of the values to be generated returnClass, int The increment size. incrementSize)Constructs a PooledLoOptimizer. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | applyIncrementSizeToSourceValues()
Implements org. |
| public synchronized Serializable | generate(AccessCallback
Callback to access the underlying value source. callback)Implements org. |
| public IntegralDataTypeHolder | getLastSourceValue()
Implements org. |
| private PooledLoOptimizer. | |
| private PooledLoOptimizer. |
| LOG | back to summary |
|---|---|
| private static final CoreMessageLogger LOG | |
| noTenantState | back to summary |
|---|---|
| private PooledLoOptimizer. | |
| tenantSpecificState | back to summary |
|---|---|
| private Map<String, PooledLoOptimizer. | |
| PooledLoOptimizer | back to summary |
|---|---|
| public PooledLoOptimizer(Class<T> returnClass, int incrementSize) Constructs a PooledLoOptimizer.
| |
| applyIncrementSizeToSourceValues | back to summary |
|---|---|
| public boolean applyIncrementSizeToSourceValues() Implements org. Doc from org. Are increments to be applied to the values stored in the underlying value source?
| |
| generate | back to summary |
|---|---|
| public synchronized Serializable generate(AccessCallback callback) Implements org. Doc from org. Generate an identifier value accounting for this specific optimization. All known implementors are synchronized. Consider carefully if a new implementation could drop this requirement.
| |
| getLastSourceValue | back to summary |
|---|---|
| public IntegralDataTypeHolder getLastSourceValue() Implements org. Doc from org. A common means to access the last value obtained from the underlying source. This is intended for testing purposes, since accessing the underlying database source directly is much more difficult.
| |
| locateGenerationState | back to summary |
|---|---|
| private PooledLoOptimizer. | |
| noTenantGenerationState | back to summary |
|---|---|
| private PooledLoOptimizer. | |
| Modifier and Type | Field and Description |
|---|---|
| private IntegralDataTypeHolder | |
| private IntegralDataTypeHolder | |
| private IntegralDataTypeHolder |
| Access | Constructor and Description |
|---|---|
| private |
| lastSourceValue | back to summary |
|---|---|
| private IntegralDataTypeHolder lastSourceValue | |
| upperLimitValue | back to summary |
|---|---|
| private IntegralDataTypeHolder upperLimitValue | |
| value | back to summary |
|---|---|
| private IntegralDataTypeHolder value | |
| GenerationState | back to summary |
|---|---|
| private GenerationState() | |