Deprecated
See deprecation discussion on SequenceGenerator
| Modifier and Type | Field and Description |
|---|---|
| private LegacyHiLoAlgorithmOptimizer | |
| public static final String | |
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | configure(Type
The id property type descriptor type, Properties param values, keyed by parameter name params, ServiceRegistry Access to service that may be needed. serviceRegistry)Overrides org. Overrides default org. |
| public synchronized Serializable | generate(final SharedSessionContractImplementor
The session from which the request originates session, Object the entity or collection (idbag) for which the id is being generated obj)Overrides org. Implements org. |
| pack-priv LegacyHiLoAlgorithmOptimizer |
| hiloOptimizer | back to summary |
|---|---|
| private LegacyHiLoAlgorithmOptimizer hiloOptimizer | |
| MAX_LO | back to summary |
|---|---|
| public static final String MAX_LO | |
| maxLo | back to summary |
|---|---|
| private int maxLo | |
| SequenceHiLoGenerator | back to summary |
|---|---|
| public SequenceHiLoGenerator() | |
| configure | back to summary |
|---|---|
| public void configure(Type type, Properties params, ServiceRegistry serviceRegistry) throws MappingException Overrides org. Overrides default org. Doc from org. Configure this instance, given the value of parameters specified by the user as <param> elements.
This method is called just once, following instantiation, and before
| |
| generate | back to summary |
|---|---|
| public synchronized Serializable generate(final SharedSessionContractImplementor session, Object obj) Overrides org. Implements org. Doc from org. Generate a new identifier.
| |
| getHiloOptimizer | back to summary |
|---|---|
| pack-priv LegacyHiLoAlgorithmOptimizer getHiloOptimizer() For testing/assertion purposes
| |