Class TableDeleteBuilderStandard
- java.lang.Object
-
- org.hibernate.sql.model.ast.builder.AbstractTableMutationBuilder<M>
-
- org.hibernate.sql.model.ast.builder.AbstractRestrictedTableMutationBuilder<JdbcDeleteMutation,TableDelete>
-
- org.hibernate.sql.model.ast.builder.TableDeleteBuilderStandard
-
- All Implemented Interfaces:
RestrictedTableMutationBuilder<JdbcDeleteMutation,TableDelete>
,TableDeleteBuilder
,TableMutationBuilder<TableDelete>
- Direct Known Subclasses:
CollectionRowDeleteBuilder
public class TableDeleteBuilderStandard extends AbstractRestrictedTableMutationBuilder<JdbcDeleteMutation,TableDelete> implements TableDeleteBuilder
Standard TableDeleteBuilder implementation used when Hibernate generates the delete statement
-
-
Field Summary
-
Fields inherited from interface org.hibernate.sql.model.ast.builder.TableMutationBuilder
NULL
-
-
Constructor Summary
Constructors Constructor Description TableDeleteBuilderStandard(MutationTarget<?> mutationTarget, MutatingTableReference tableReference, SessionFactoryImplementor sessionFactory)
TableDeleteBuilderStandard(MutationTarget<?> mutationTarget, MutatingTableReference tableReference, SessionFactoryImplementor sessionFactory, String whereFragment)
TableDeleteBuilderStandard(MutationTarget<?> mutationTarget, TableMapping table, SessionFactoryImplementor sessionFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addWhereFragment(String fragment)
TableDelete
buildMutation()
Build the mutation descriptorString
getSqlComment()
String
getWhereFragment()
void
setSqlComment(String sqlComment)
void
setWhere(String fragment)
-
Methods inherited from class org.hibernate.sql.model.ast.builder.AbstractRestrictedTableMutationBuilder
addKeyRestriction, addNullOptimisticLockRestriction, addOptimisticLockRestriction, getKeyRestrictionBindings, getOptimisticLockBindings
-
Methods inherited from class org.hibernate.sql.model.ast.builder.AbstractTableMutationBuilder
addColumn, addColumn, combine, createValueBinding, createValueBinding, getJdbcServices, getMutatingTable, getMutationTarget, getParameters, getSessionFactory, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.hibernate.sql.model.ast.builder.RestrictedTableMutationBuilder
addKeyRestriction, addKeyRestriction, addKeyRestrictionLeniently, addKeyRestrictions, addKeyRestrictionsLeniently, addNullOptimisticLockRestriction, addOptimisticLockRestriction, addOptimisticLockRestriction, addOptimisticLockRestrictions, getKeyRestrictionBindings, getOptimisticLockBindings
-
Methods inherited from interface org.hibernate.sql.model.ast.builder.TableMutationBuilder
getMutatingTable
-
-
-
-
Constructor Detail
-
TableDeleteBuilderStandard
public TableDeleteBuilderStandard(MutationTarget<?> mutationTarget, TableMapping table, SessionFactoryImplementor sessionFactory)
-
TableDeleteBuilderStandard
public TableDeleteBuilderStandard(MutationTarget<?> mutationTarget, MutatingTableReference tableReference, SessionFactoryImplementor sessionFactory)
-
TableDeleteBuilderStandard
public TableDeleteBuilderStandard(MutationTarget<?> mutationTarget, MutatingTableReference tableReference, SessionFactoryImplementor sessionFactory, String whereFragment)
-
-
Method Detail
-
getSqlComment
public String getSqlComment()
-
setSqlComment
public void setSqlComment(String sqlComment)
-
getWhereFragment
public String getWhereFragment()
-
setWhere
public void setWhere(String fragment)
- Specified by:
setWhere
in interfaceRestrictedTableMutationBuilder<JdbcDeleteMutation,TableDelete>
- Overrides:
setWhere
in classAbstractRestrictedTableMutationBuilder<JdbcDeleteMutation,TableDelete>
-
addWhereFragment
public void addWhereFragment(String fragment)
- Specified by:
addWhereFragment
in interfaceRestrictedTableMutationBuilder<JdbcDeleteMutation,TableDelete>
- Overrides:
addWhereFragment
in classAbstractRestrictedTableMutationBuilder<JdbcDeleteMutation,TableDelete>
-
buildMutation
public TableDelete buildMutation()
Description copied from interface:TableMutationBuilder
Build the mutation descriptor- Specified by:
buildMutation
in interfaceTableMutationBuilder<TableDelete>
-
-