org.hibernate.id.enhanced.Optimizer |
Known Indirect Subclasses |
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 argumentsPublic Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Are increments to be applied to the values stored in the underlying
value source?
| |||||||||||
Generate an identifier value accounting for this specific optimization.
| |||||||||||
Retrieves the defined increment size.
| |||||||||||
A common means to access the last value obtained from the underlying
source.
|
Are increments to be applied to the values stored in the underlying value source?
Generate an identifier value accounting for this specific optimization.
callback | Callback to access the underlying value source. |
---|
Retrieves the defined increment size.
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.