Class UpdateHandlerImpl
- java.lang.Object
-
- org.hibernate.hql.spi.id.AbstractTableBasedBulkIdHandler
-
- org.hibernate.hql.spi.id.TableBasedUpdateHandlerImpl
-
- org.hibernate.hql.spi.id.persistent.UpdateHandlerImpl
-
- All Implemented Interfaces:
MultiTableBulkIdStrategy.UpdateHandler
public class UpdateHandlerImpl extends TableBasedUpdateHandlerImpl
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.hibernate.hql.spi.id.AbstractTableBasedBulkIdHandler
AbstractTableBasedBulkIdHandler.ProcessedWhereClause
-
-
Constructor Summary
Constructors Constructor Description UpdateHandlerImpl(SessionFactoryImplementor factory, org.hibernate.hql.internal.ast.HqlSqlWalker walker, IdTableInfo idTableInfo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddAnyExtraIdSelectValues(SelectValues selectClause)Used fromAbstractTableBasedBulkIdHandler.generateIdInsertSelect(java.lang.String, org.hibernate.hql.spi.id.IdTableInfo, org.hibernate.hql.spi.id.AbstractTableBasedBulkIdHandler.ProcessedWhereClause)to allow subclasses to define any extra values to be selected (and therefore stored into the bulk-id table).protected java.lang.StringgenerateIdSubselect(Queryable persister, IdTableInfo idTableInfo)protected voidhandleAddedParametersOnUpdate(java.sql.PreparedStatement ps, SharedSessionContractImplementor session, int position)protected inthandlePrependedParametersOnIdSelection(java.sql.PreparedStatement ps, SharedSessionContractImplementor session, int pos)protected voidreleaseFromUse(Queryable persister, SharedSessionContractImplementor session)-
Methods inherited from class org.hibernate.hql.spi.id.TableBasedUpdateHandlerImpl
execute, getSqlStatements, getTargetedQueryable
-
Methods inherited from class org.hibernate.hql.spi.id.AbstractTableBasedBulkIdHandler
appendJoined, factory, generateIdInsertSelect, generateIdSelect, generateIdSubselect, getKeyColumnNames, prepareForUse, processWhereClause, walker
-
-
-
-
Constructor Detail
-
UpdateHandlerImpl
public UpdateHandlerImpl(SessionFactoryImplementor factory, org.hibernate.hql.internal.ast.HqlSqlWalker walker, IdTableInfo idTableInfo)
-
-
Method Detail
-
addAnyExtraIdSelectValues
protected void addAnyExtraIdSelectValues(SelectValues selectClause)
Description copied from class:AbstractTableBasedBulkIdHandlerUsed fromAbstractTableBasedBulkIdHandler.generateIdInsertSelect(java.lang.String, org.hibernate.hql.spi.id.IdTableInfo, org.hibernate.hql.spi.id.AbstractTableBasedBulkIdHandler.ProcessedWhereClause)to allow subclasses to define any extra values to be selected (and therefore stored into the bulk-id table). Used to store session identifier, e.g.- Overrides:
addAnyExtraIdSelectValuesin classAbstractTableBasedBulkIdHandler- Parameters:
selectClause- The SelectValues that defines the select clause of the insert statement.
-
generateIdSubselect
protected java.lang.String generateIdSubselect(Queryable persister, IdTableInfo idTableInfo)
- Overrides:
generateIdSubselectin classAbstractTableBasedBulkIdHandler
-
handlePrependedParametersOnIdSelection
protected int handlePrependedParametersOnIdSelection(java.sql.PreparedStatement ps, SharedSessionContractImplementor session, int pos) throws java.sql.SQLException- Overrides:
handlePrependedParametersOnIdSelectionin classTableBasedUpdateHandlerImpl- Throws:
java.sql.SQLException
-
handleAddedParametersOnUpdate
protected void handleAddedParametersOnUpdate(java.sql.PreparedStatement ps, SharedSessionContractImplementor session, int position) throws java.sql.SQLException- Overrides:
handleAddedParametersOnUpdatein classTableBasedUpdateHandlerImpl- Throws:
java.sql.SQLException
-
releaseFromUse
protected void releaseFromUse(Queryable persister, SharedSessionContractImplementor session)
- Overrides:
releaseFromUsein classAbstractTableBasedBulkIdHandler
-
-