Top Description Fields Constructors Methods
org.hibernate.hql.internal.ast.exec

public Class DeleteExecutor

extends BasicExecutor
Class Inheritance
Imports
java.util.ArrayList, .Collections, .List, org.hibernate.HibernateException, .MappingException, org.hibernate.dialect.Dialect, org.hibernate.engine.spi.QueryParameters, .SessionFactoryImplementor, .SharedSessionContractImplementor, org.hibernate.hql.internal.ast.HqlSqlWalker, .QuerySyntaxException, .SqlGenerator, org.hibernate.hql.internal.ast.tree.DeleteStatement, org.hibernate.metamodel.spi.MetamodelImplementor, org.hibernate.param.ParameterSpecification, org.hibernate.persister.collection.CollectionPersister, org.hibernate.persister.entity.Joinable, .Queryable, org.hibernate.sql.Delete, org.hibernate.type.CollectionType, .ComponentType, .Type, org.jboss.logging.Logger, antlr.RecognitionException, antlr.collections.AST

Executes HQL bulk deletes against a single table. Provides deletions in addition to the basic SQL delete statement being executed. Ex: cascading the delete into a many-to-many join table.
Author
Brett Meyer

Field Summary

Modifier and TypeField and Description
private final List<String>
private static final Logger
private final List<ParameterSpecification>
private final Queryable
private final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static void
append(String delimiter, String[] parts, StringBuilder sb)

public int
execute(QueryParameters
Essentially bind information for this processing.
parameters
,
SharedSessionContractImplementor
The session originating the request.
session
)

Overrides org.hibernate.hql.internal.ast.exec.BasicExecutor.execute.

Implements org.hibernate.hql.internal.ast.exec.StatementExecutor.execute.

Execute the sql managed by this executor using the given parameters.
public List<ParameterSpecification>
pack-priv Queryable
public String
Inherited from org.hibernate.hql.internal.ast.exec.BasicExecutor:
doExecutegetSqlStatements

Field Detail

deletesback to summary
private final List<String> deletes
LOGback to summary
private static final Logger LOG
parameterSpecificationsback to summary
private final List<ParameterSpecification> parameterSpecifications
persisterback to summary
private final Queryable persister
sqlback to summary
private final String sql

Constructor Detail

DeleteExecutorback to summary
public DeleteExecutor(HqlSqlWalker walker)

Method Detail

appendback to summary
private static void append(String delimiter, String[] parts, StringBuilder sb)
executeback to summary
public int execute(QueryParameters parameters, SharedSessionContractImplementor session) throws HibernateException

Overrides org.hibernate.hql.internal.ast.exec.BasicExecutor.execute.

Implements org.hibernate.hql.internal.ast.exec.StatementExecutor.execute.

Doc from org.hibernate.hql.internal.ast.exec.StatementExecutor.execute.

Execute the sql managed by this executor using the given parameters.

Parameters
parameters:QueryParameters

Essentially bind information for this processing.

session:SharedSessionContractImplementor

The session originating the request.

Returns:int

The number of entities updated/deleted.

Annotations
@Override
getParameterSpecificationsback to summary
public List<ParameterSpecification> getParameterSpecifications()

Implements abstract org.hibernate.hql.internal.ast.exec.BasicExecutor.getParameterSpecifications.

Annotations
@Override
getPersisterback to summary
pack-priv Queryable getPersister()

Implements abstract org.hibernate.hql.internal.ast.exec.BasicExecutor.getPersister.

Annotations
@Override
getSqlback to summary
public String getSql()

Implements abstract org.hibernate.hql.internal.ast.exec.BasicExecutor.getSql.

Annotations
@Override