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

public Class CteMutationStrategy

extends Object
implements SqmMultiTableMutationStrategy
Class Inheritance
All Implemented Interfaces
org.hibernate.query.sqm.mutation.spi.SqmMultiTableMutationStrategy
Imports
java.util.Locale, org.hibernate.dialect.Dialect, 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.SqmMultiTableMutationStrategy, org.hibernate.query.sqm.tree.SqmDeleteOrUpdateStatement, org.hibernate.query.sqm.tree.delete.SqmDeleteStatement, org.hibernate.query.sqm.tree.update.SqmUpdateStatement, org.hibernate.sql.ast.tree.cte.CteTable

Author
Christian Beikov

Field Summary

Modifier and TypeField and Description
public static final String
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
CteMutationStrategy(EntityMappingType rootEntityType, RuntimeModelCreationContext runtimeModelCreationContext)

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

Deprecated as a consequence of RuntimeModelCreationContext being deprecated.

Method Summary

Modifier and TypeMethod and Description
protected void
public int
executeDelete(SqmDeleteStatement<?> sqmDelete, DomainParameterXref domainParameterXref, DomainQueryExecutionContext context)

Implements org.hibernate.query.sqm.mutation.spi.SqmMultiTableMutationStrategy.executeDelete.

Execute the multi-table update indicated by the passed SqmUpdateStatement
public int
executeUpdate(SqmUpdateStatement<?> sqmUpdate, DomainParameterXref domainParameterXref, DomainQueryExecutionContext context)

Implements org.hibernate.query.sqm.mutation.spi.SqmMultiTableMutationStrategy.executeUpdate.

Execute the multi-table update indicated by the passed SqmUpdateStatement
protected CteTable
protected EntityPersister
protected SessionFactoryImplementor
getSessionFactory()

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

Field Detail

ID_TABLE_NAMEback to summary
public static final String ID_TABLE_NAME
idCteTableback to summary
private final CteTable idCteTable
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

CteMutationStrategyback to summary
public CteMutationStrategy(EntityMappingType rootEntityType, RuntimeModelCreationContext runtimeModelCreationContext)

Deprecated

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

CteMutationStrategyback to summary
public CteMutationStrategy(EntityPersister rootDescriptor, RuntimeModelCreationContext runtimeModelCreationContext)

Deprecated

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

Method Detail

checkMatchback to summary
protected void checkMatch(SqmDeleteOrUpdateStatement<?> sqmStatement)
executeDeleteback to summary
public int executeDelete(SqmDeleteStatement<?> sqmDelete, DomainParameterXref domainParameterXref, DomainQueryExecutionContext context)

Implements org.hibernate.query.sqm.mutation.spi.SqmMultiTableMutationStrategy.executeDelete.

Doc from org.hibernate.query.sqm.mutation.spi.SqmMultiTableMutationStrategy.executeDelete.

Execute the multi-table update indicated by the passed SqmUpdateStatement

Returns:int

The number of rows affected

Annotations
@Override
executeUpdateback to summary
public int executeUpdate(SqmUpdateStatement<?> sqmUpdate, DomainParameterXref domainParameterXref, DomainQueryExecutionContext context)

Implements org.hibernate.query.sqm.mutation.spi.SqmMultiTableMutationStrategy.executeUpdate.

Doc from org.hibernate.query.sqm.mutation.spi.SqmMultiTableMutationStrategy.executeUpdate.

Execute the multi-table update indicated by the passed SqmUpdateStatement

Returns:int

The number of rows affected

Annotations
@Override
getIdCteTableback to summary
protected CteTable getIdCteTable()
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.