Optimizers work on constructor injection. They should provide a constructor with the following arguments
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: True if the values in the source are to be incremented according to the defined increment size; false otherwise, in which case the increment is totally an in memory construct.Are increments to be applied to the values stored in the underlying value source? |
| public Serializable | Returns: The generated identifier value.Callback to access the underlying value source. callback)Generate an identifier value accounting for this specific optimization. |
| public int | |
| public IntegralDataTypeHolder | Returns: The last value we obtained from the underlying source; null indicates we have not yet consulted with the source.A common means to access the last value obtained from the underlying source. |
| applyIncrementSizeToSourceValues | back to summary |
|---|---|
| public boolean applyIncrementSizeToSourceValues() Are increments to be applied to the values stored in the underlying value source?
| |
| generate | back to summary |
|---|---|
| public Serializable generate(AccessCallback callback) Generate an identifier value accounting for this specific optimization.
| |
| getIncrementSize | back to summary |
|---|---|
| public int getIncrementSize() Retrieves the defined increment size.
| |
| getLastSourceValue | back to summary |
|---|---|
| public IntegralDataTypeHolder getLastSourceValue() 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.
| |