Class InsertSelectStatement
java.lang.Object
org.hibernate.sql.ast.tree.AbstractStatement
org.hibernate.sql.ast.tree.AbstractMutationStatement
org.hibernate.sql.ast.tree.insert.InsertSelectStatement
- All Implemented Interfaces:
CteContainer, InsertStatement, MutationStatement, SqlAstNode, Statement
todo (6.2) - Would much prefer to split insert-values and
insert-select into individual contracts - something like
`InsertStatement` and `InsertSelectStatement` e.g.
Would help alleviate much of the duplication in handling
between inserts from SQM and those from model mutation
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionInsertSelectStatement(CteContainer cteContainer, NamedTableReference targetTable, List<ColumnReference> returningColumns) Deprecated, for removal: This API element is subject to removal in a future version.InsertSelectStatement(CteContainer cteContainer, NamedTableReference targetTable, MutationTarget<?> mutationTarget, List<ColumnReference> returningColumns) InsertSelectStatement(NamedTableReference targetTable) Deprecated, for removal: This API element is subject to removal in a future version.InsertSelectStatement(NamedTableReference targetTable, List<ColumnReference> returningColumns) InsertSelectStatement(NamedTableReference targetTable, MutationTarget<?> mutationTarget) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(SqlAstWalker walker) VisitationvoidaddTargetColumnReference(ColumnReference reference) voidaddTargetColumnReferences(List<ColumnReference> references) voidaddTargetColumnReferences(ColumnReference... references) voidforEachTargetColumn(BiConsumer<Integer, ColumnReference> consumer) Iterates each target columnGet all target columnsvoidsetConflictClause(ConflictClause conflictClause) voidsetSourceSelectStatement(QueryPart sourceSelectStatement) voidsetValuesList(List<Values> valuesList) Methods inherited from class AbstractMutationStatement
getMutationTarget, getReturningColumns, getTargetTableMethods inherited from class AbstractStatement
addCteObject, addCteStatement, getCteObject, getCteObjects, getCteStatement, getCteStatementsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface InsertStatement
getNumberOfTargetColumnsMethods inherited from interface MutationStatement
getMutationTarget, getReturningColumns, getTargetTableMethods inherited from interface Statement
isSelection
-
Field Details
-
DEFAULT_ALIAS
- See Also:
-
-
Constructor Details
-
InsertSelectStatement
@Deprecated(forRemoval=true, since="7.3") public InsertSelectStatement(NamedTableReference targetTable) Deprecated, for removal: This API element is subject to removal in a future version. -
InsertSelectStatement
-
InsertSelectStatement
public InsertSelectStatement(NamedTableReference targetTable, List<ColumnReference> returningColumns) -
InsertSelectStatement
@Deprecated(forRemoval=true, since="7.3") public InsertSelectStatement(CteContainer cteContainer, NamedTableReference targetTable, List<ColumnReference> returningColumns) Deprecated, for removal: This API element is subject to removal in a future version. -
InsertSelectStatement
public InsertSelectStatement(CteContainer cteContainer, NamedTableReference targetTable, MutationTarget<?> mutationTarget, List<ColumnReference> returningColumns)
-
-
Method Details
-
getTargetColumns
Description copied from interface:InsertStatementGet all target columns- Specified by:
getTargetColumnsin interfaceInsertStatement
-
forEachTargetColumn
Description copied from interface:InsertStatementIterates each target column- Specified by:
forEachTargetColumnin interfaceInsertStatement
-
addTargetColumnReference
-
addTargetColumnReferences
-
addTargetColumnReferences
-
getSourceSelectStatement
-
setSourceSelectStatement
-
getValuesList
-
setValuesList
-
getConflictClause
-
setConflictClause
-
accept
Description copied from interface:StatementVisitation- Specified by:
acceptin interfaceSqlAstNode- Specified by:
acceptin interfaceStatement
-