Deprecated
as a consequence of AbstractPostInsertGenerator being deprecated. See corresponding docs for further information.
| Modifier and Type | Class and Description |
|---|---|
| public static class | IdentityGenerator.BasicDelegate
Delegate for dealing with IDENTITY columns where the dialect requires an additional command execution to retrieve the generated IDENTITY value |
| public static class | IdentityGenerator.InsertSelectDelegate
Delegate for dealing with IDENTITY columns where the dialect supports returning the generated IDENTITY value directly from the insert statement. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public InsertGeneratedIdentifierDelegate | getInsertGeneratedIdentifierDelegate(PostInsertIdentityPersister persister, Dialect dialect, boolean isGetGeneratedKeysEnabled)
Implements org. |
| IdentityGenerator | back to summary |
|---|---|
| public IdentityGenerator() | |
| 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 Dialect | |
| private final PostInsertIdentityPersister |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected Serializable | getResult(SharedSessionContractImplementor
The session session, ResultSet The result set containing the generated primay key values. rs, Object The entity being saved. object)Implements abstract org. |
| protected String | getSelectSQL()
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.
|
| dialect | back to summary |
|---|---|
| private final Dialect dialect | |
| persister | back to summary |
|---|---|
| private final PostInsertIdentityPersister persister Hides org. | |
| BasicDelegate | back to summary |
|---|---|
| public BasicDelegate(PostInsertIdentityPersister persister, Dialect dialect) | |
| getResult | back to summary |
|---|---|
| protected Serializable getResult(SharedSessionContractImplementor session, ResultSet rs, Object object) throws SQLException Implements abstract org. Doc from org. Extract the generated key value from the given result set.
| |
| getSelectSQL | back to summary |
|---|---|
| protected String getSelectSQL() Implements abstract org. Doc from org. Get the SQL statement to be used to retrieve generated key values. | |
| prepareIdentifierGeneratingInsert | back to summary |
|---|---|
| public IdentifierGeneratingInsert prepareIdentifierGeneratingInsert(SqlStringGenerationContext context) Overrides default org. Doc from org. Build a
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Dialect | |
| private final PostInsertIdentityPersister |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Serializable | |
| public 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.
|
| dialect | back to summary |
|---|---|
| private final Dialect dialect | |
| persister | back to summary |
|---|---|
| private final PostInsertIdentityPersister persister Hides org. | |
| InsertSelectDelegate | back to summary |
|---|---|
| public InsertSelectDelegate(PostInsertIdentityPersister persister, Dialect dialect) | |
| determineGeneratedIdentifier | back to summary |
|---|---|
| public Serializable determineGeneratedIdentifier(SharedSessionContractImplementor session, Object entity) | |
| executeAndExtract | back to summary |
|---|---|
| public 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
| |