Package org.hibernate.id.insert
Contains a framework of strategies for retrieving database-generated ids.
- See Also:
InsertGeneratedIdentifierDelegate
-
Interface Summary Interface Description Binder InsertGeneratedIdentifierDelegate Each implementation defines a strategy for retrieving a primary key generated by the database from the database after execution of aninsertstatement. -
Class Summary Class Description AbstractReturningDelegate AbstractInsertGeneratedIdentifierDelegateimplementation where the underlying strategy causes the generated identifier to be returned as an effect of performing the insert statement.AbstractSelectingDelegate AbstractInsertGeneratedIdentifierDelegateimplementation where the underlying strategy requires a subsequentselectafter theinsertto determine the generated identifier.BasicSelectingDelegate Delegate for dealing withIDENTITYcolumns where the dialect requires an additional command execution to retrieve the generatedIDENTITYvalueGetGeneratedKeysDelegate Delegate for dealing withIDENTITYcolumns using the JDBC3 methodStatement.getGeneratedKeys().IdentifierGeneratingInsert Nothing more than a distinguishing subclass ofInsertused to indicate intent.InsertReturningDelegate Delegate for dealing withIDENTITYcolumns where the dialect supports returning the generatedIDENTITYvalue directly from the insert statement.InsertSelectIdentityInsert SpecializedIdentifierGeneratingInsertwhich appends the database specific clause which signifies to return generatedIDENTITYvalues to the end of the insert statement.SybaseJConnGetGeneratedKeysDelegate SpecializedIdentifierGeneratingInsertwhich appends the database specific clause which signifies to return generatedIDENTITYvalues to the end of the insert statement.TableInsertReturningBuilder UniqueKeySelectingDelegate Uses a unique key of the inserted entity to locate the newly inserted row.