Deprecated
See deprecation discussion on SequenceGenerator
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.
| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final CoreMessageLogger |
| 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 Serializable | generate(SharedSessionContractImplementor
The session from which the request originates s, Object the entity or collection (idbag) for which the id is being generated obj)Overrides org. Implements org. |
| public InsertGeneratedIdentifierDelegate | getInsertGeneratedIdentifierDelegate(PostInsertIdentityPersister persister, Dialect dialect, boolean isGetGeneratedKeysEnabled)
Implements org. |
| LOG | back to summary |
|---|---|
| private static final CoreMessageLogger LOG | |
| SequenceIdentityGenerator | back to summary |
|---|---|
| public SequenceIdentityGenerator() | |
| 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 Serializable generate(SharedSessionContractImplementor s, Object obj) Overrides org. Implements org. Doc from org. Generate a new identifier.
| |
| getInsertGeneratedIdentifierDelegate | back to summary |
|---|---|
| public InsertGeneratedIdentifierDelegate getInsertGeneratedIdentifierDelegate(PostInsertIdentityPersister persister, Dialect dialect, boolean isGetGeneratedKeysEnabled) throws HibernateException Implements org.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final String[] | |
| private final QualifiedName |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected Serializable | executeAndExtract(PreparedStatement insert, SharedSessionContractImplementor session)
Implements abstract org. |
| protected PreparedStatement | prepare(String insertSQL, SharedSessionContractImplementor session)
Implements abstract org. |
| public IdentifierGeneratingInsert | prepareIdentifierGeneratingInsert(SqlStringGenerationContext
A context to help generate SQL strings context)Overrides default org. org. specific to the delegate's mode
of handling generated key values.
|
| keyColumns | back to summary |
|---|---|
| private final String[] keyColumns | |
| physicalSequenceName | back to summary |
|---|---|
| private final QualifiedName physicalSequenceName | |
| Delegate | back to summary |
|---|---|
| public Delegate(PostInsertIdentityPersister persister, QualifiedName physicalSequenceName) | |
| executeAndExtract | back to summary |
|---|---|
| protected Serializable executeAndExtract(PreparedStatement insert, SharedSessionContractImplementor session) throws SQLException Implements abstract org.
| |
| prepare | back to summary |
|---|---|
| protected PreparedStatement prepare(String insertSQL, SharedSessionContractImplementor session) throws SQLException Implements abstract org.
| |
| prepareIdentifierGeneratingInsert | back to summary |
|---|---|
| public IdentifierGeneratingInsert prepareIdentifierGeneratingInsert(SqlStringGenerationContext context) Overrides default org. Doc from org. Build a
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Insert |
| NoCommentsInsert | back to summary |
|---|---|
| public NoCommentsInsert(Dialect dialect) | |
| setComment | back to summary |
|---|---|
| public Insert setComment(String comment) Overrides org.
| |