Package org.hibernate.id.insert
Class BasicSelectingDelegate
- java.lang.Object
-
- org.hibernate.id.insert.AbstractSelectingDelegate
-
- org.hibernate.id.insert.BasicSelectingDelegate
-
- All Implemented Interfaces:
InsertGeneratedIdentifierDelegate
public class BasicSelectingDelegate extends AbstractSelectingDelegate
Delegate for dealing withIDENTITYcolumns where the dialect requires an additional command execution to retrieve the generatedIDENTITYvalue
-
-
Constructor Summary
Constructors Constructor Description BasicSelectingDelegate(PostInsertIdentityPersister persister, Dialect dialect)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description TableInsertBuildercreateTableInsertBuilder(BasicEntityIdentifierMapping identifierMapping, Expectation expectation, SessionFactoryImplementor factory)Create aTableInsertBuilderwith any specific identity handling already built in.protected StringgetSelectSQL()Get the SQL statement to be used to retrieve generated key values.IdentifierGeneratingInsertprepareIdentifierGeneratingInsert(SqlStringGenerationContext context)Deprecated.-
Methods inherited from class org.hibernate.id.insert.AbstractSelectingDelegate
bindParameters, extractGeneratedValue, performInsert, performInsert, prepareStatement
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.id.insert.InsertGeneratedIdentifierDelegate
prepareIdentifierGeneratingInsert
-
-
-
-
Constructor Detail
-
BasicSelectingDelegate
public BasicSelectingDelegate(PostInsertIdentityPersister persister, Dialect dialect)
-
-
Method Detail
-
prepareIdentifierGeneratingInsert
@Deprecated public IdentifierGeneratingInsert prepareIdentifierGeneratingInsert(SqlStringGenerationContext context)
Deprecated.Description copied from interface:InsertGeneratedIdentifierDelegateBuild an insert statement specific to the delegate's mode of handling generated key values.- Parameters:
context- A context to help generate SQL strings- Returns:
- An
IdentifierGeneratingInsert
-
createTableInsertBuilder
public TableInsertBuilder createTableInsertBuilder(BasicEntityIdentifierMapping identifierMapping, Expectation expectation, SessionFactoryImplementor factory)
Description copied from interface:InsertGeneratedIdentifierDelegateCreate aTableInsertBuilderwith any specific identity handling already built in.
-
getSelectSQL
protected String getSelectSQL()
Description copied from class:AbstractSelectingDelegateGet the SQL statement to be used to retrieve generated key values.- Specified by:
getSelectSQLin classAbstractSelectingDelegate- Returns:
- The SQL command string
-
-