Package org.hibernate.id.insert
Class InsertSelectIdentityInsert
- java.lang.Object
-
- org.hibernate.sql.Insert
-
- org.hibernate.id.insert.IdentifierGeneratingInsert
-
- org.hibernate.id.insert.InsertSelectIdentityInsert
-
public class InsertSelectIdentityInsert extends IdentifierGeneratingInsert
SpecializedIdentifierGeneratingInsert
which appends the database specific clause which signifies to return generatedIDENTITY
values to the end of the insert statement.
-
-
Constructor Summary
Constructors Constructor Description InsertSelectIdentityInsert(SessionFactoryImplementor sessionFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Insert
addGeneratedColumns(String[] columnNames, OnExecutionGenerator generator)
Insert
addIdentityColumn(String columnName)
String
toStatementString()
-
Methods inherited from class org.hibernate.sql.Insert
addColumn, addColumn, addColumns, addColumns, addColumns, getColumns, getDialect, setComment, setTableName
-
-
-
-
Field Detail
-
identityColumnName
protected String identityColumnName
-
-
Constructor Detail
-
InsertSelectIdentityInsert
public InsertSelectIdentityInsert(SessionFactoryImplementor sessionFactory)
-
-
Method Detail
-
addIdentityColumn
public Insert addIdentityColumn(String columnName)
- Overrides:
addIdentityColumn
in classInsert
-
addGeneratedColumns
public Insert addGeneratedColumns(String[] columnNames, OnExecutionGenerator generator)
- Overrides:
addGeneratedColumns
in classInsert
-
toStatementString
public String toStatementString()
- Overrides:
toStatementString
in classInsert
-
-