java.lang.Object | |
↳ | org.hibernate.id.IdentifierGeneratorHelper |
Factory and helper methods for IdentifierGenerator
framework.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
IdentifierGeneratorHelper.BasicHolder | |||||||||||
IdentifierGeneratorHelper.BigDecimalHolder | |||||||||||
IdentifierGeneratorHelper.BigIntegerHolder |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
POST_INSERT_INDICATOR | Marker object returned from generate(SessionImplementor, Object) to indicate that the entity's identifier will
be generated as part of the datbase insertion. |
||||||||||
SHORT_CIRCUIT_INDICATOR | Marker object returned from generate(SessionImplementor, Object) to indicate that we should short-circuit any
continued generated id checking. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This method is deprecated.
Use the
holders instead.
| |||||||||||
Extract the value from the result set (which is assumed to already have been positioned to the apopriate row)
and wrp it in the appropriate Java numeric type.
| |||||||||||
Get the generated identifier when using identity columns
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Marker object returned from generate(SessionImplementor, Object)
to indicate that the entity's identifier will
be generated as part of the datbase insertion.
Marker object returned from generate(SessionImplementor, Object)
to indicate that we should short-circuit any
continued generated id checking. Currently this is only used in the case of the
foreign
generator as a way to signal that we should use the associated
entity's id value.
This method is deprecated.
Use the holders
instead.
Wrap the given value in the given Java numeric class.
value | The primitive value to wrap. |
---|---|
clazz | The Java numeric type in which to wrap the value. |
IdentifierGenerationException | Indicates an unhandled 'clazz'. |
---|
Extract the value from the result set (which is assumed to already have been positioned to the apopriate row) and wrp it in the appropriate Java numeric type.
rs | The result set from which to extract the value. |
---|---|
type | The expected type of the value. |
SQLException | Indicates problems access the result set |
---|---|
IdentifierGenerationException | Indicates an unknown type. |
Get the generated identifier when using identity columns
rs | The result set from which to extract the the generated identity. |
---|---|
type | The expected type mapping for the identity value. |
SQLException | Can be thrown while accessing the result set |
---|---|
HibernateException | Indicates a problem reading back a generated identity value. |