Top Fields Constructors Methods
org.hibernate.query.sqm.mutation.internal.cte

public Class CteInsertStrategy

extends Object
implements SqmMultiTableInsertStrategy
Class Inheritance
All Implemented Interfaces
org.hibernate.query.sqm.mutation.spi.SqmMultiTableInsertStrategy
Imports
org.hibernate.boot.model.naming.Identifier, org.hibernate.dialect.Dialect, org.hibernate.dialect.temptable.TemporaryTable, org.hibernate.engine.spi.SessionFactoryImplementor, org.hibernate.metamodel.mapping.EntityMappingType, org.hibernate.metamodel.spi.RuntimeModelCreationContext, org.hibernate.persister.entity.EntityPersister, org.hibernate.query.spi.DomainQueryExecutionContext, org.hibernate.query.sqm.internal.DomainParameterXref, org.hibernate.query.sqm.mutation.spi.SqmMultiTableInsertStrategy, org.hibernate.query.sqm.tree.insert.SqmInsertStatement, org.hibernate.sql.ast.tree.cte.CteTable

Author
Christian Beikov

Field Summary

Modifier and TypeField and Description
private final CteTable
private final EntityPersister
private final SessionFactoryImplementor
sessionFactory

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
public static final String

Constructor Summary

AccessConstructor and Description
public
CteInsertStrategy(EntityMappingType rootEntityType, RuntimeModelCreationContext runtimeModelCreationContext)

Deprecated as a consequence of RuntimeModelCreationContext being deprecated.
public
CteInsertStrategy(EntityPersister rootDescriptor, RuntimeModelCreationContext runtimeModelCreationContext)

Deprecated as a consequence of RuntimeModelCreationContext being deprecated.

Method Summary

Modifier and TypeMethod and Description
public int
executeInsert(SqmInsertStatement<?> sqmInsertStatement, DomainParameterXref domainParameterXref, DomainQueryExecutionContext context)

Implements org.hibernate.query.sqm.mutation.spi.SqmMultiTableInsertStrategy.executeInsert.

Execute the multi-table insert indicated by the passed SqmInsertStatement
protected CteTable
protected EntityPersister
protected SessionFactoryImplementor
getSessionFactory()

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

entityCteTableback to summary
private final CteTable entityCteTable
rootDescriptorback to summary
private final EntityPersister rootDescriptor
sessionFactoryback to summary
private final SessionFactoryImplementor sessionFactory

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

SHORT_NAMEback to summary
public static final String SHORT_NAME

Constructor Detail

CteInsertStrategyback to summary
public CteInsertStrategy(EntityMappingType rootEntityType, RuntimeModelCreationContext runtimeModelCreationContext)

Deprecated

as a consequence of RuntimeModelCreationContext being deprecated. See corresponding docs for further information.

CteInsertStrategyback to summary
public CteInsertStrategy(EntityPersister rootDescriptor, RuntimeModelCreationContext runtimeModelCreationContext)

Deprecated

as a consequence of RuntimeModelCreationContext being deprecated. See corresponding docs for further information.

Method Detail

executeInsertback to summary
public int executeInsert(SqmInsertStatement<?> sqmInsertStatement, DomainParameterXref domainParameterXref, DomainQueryExecutionContext context)

Implements org.hibernate.query.sqm.mutation.spi.SqmMultiTableInsertStrategy.executeInsert.

Doc from org.hibernate.query.sqm.mutation.spi.SqmMultiTableInsertStrategy.executeInsert.

Execute the multi-table insert indicated by the passed SqmInsertStatement

Returns:int

The number of rows affected

Annotations
@Override
getEntityCteTableback to summary
protected CteTable getEntityCteTable()
getRootDescriptorback to summary
protected EntityPersister getRootDescriptor()
getSessionFactoryback to summary
protected SessionFactoryImplementor getSessionFactory()

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.