Class Overview
A generator which combines sequence generation with immediate retrieval
through JDBC3 getGeneratedKeys
.
In this respect it works much like ANSI-SQL IDENTITY generation.
This generator only known to work with newer Oracle drivers compiled for
JDK 1.4 (JDBC3).
Note: Due to a bug in Oracle drivers, sql comments on these insert statements
are completely disabled.
Summary
Nested Classes |
class |
SequenceIdentityGenerator.Delegate |
|
class |
SequenceIdentityGenerator.NoCommentsInsert |
|
Public Constructors
public
SequenceIdentityGenerator
()
Public Methods
public
void
configure
(Type type, Properties params, Dialect dialect)
Configure this instance, given the value of parameters
specified by the user as <param> elements.
This method is called just once, following instantiation.
Parameters
params
| param values, keyed by parameter name
|
Generate a new identifier.
Parameters
obj
| the entity or toplevel collection for which the id is being generated |