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 withIDENTITY
columns where the dialect requires an additional command execution to retrieve the generatedIDENTITY
value
-
-
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 TableInsertBuilder
createTableInsertBuilder(BasicEntityIdentifierMapping identifierMapping, Expectation expectation, SessionFactoryImplementor factory)
Create aTableInsertBuilder
with any specific identity handling already built in.protected String
getSelectSQL()
Get the SQL statement to be used to retrieve generated key values.IdentifierGeneratingInsert
prepareIdentifierGeneratingInsert(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:InsertGeneratedIdentifierDelegate
Build 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:InsertGeneratedIdentifierDelegate
Create aTableInsertBuilder
with any specific identity handling already built in.
-
getSelectSQL
protected String getSelectSQL()
Description copied from class:AbstractSelectingDelegate
Get the SQL statement to be used to retrieve generated key values.- Specified by:
getSelectSQL
in classAbstractSelectingDelegate
- Returns:
- The SQL command string
-
-