Package org.hibernate.hql.spi.id.inline
Class InlineIdsInClauseBulkIdStrategy
- java.lang.Object
-
- org.hibernate.hql.spi.id.inline.InlineIdsInClauseBulkIdStrategy
-
- All Implemented Interfaces:
MultiTableBulkIdStrategy
public class InlineIdsInClauseBulkIdStrategy extends java.lang.Object implements MultiTableBulkIdStrategy
This bulk-id strategy inlines identifiers of the rows that need to be updated or deleted using an IN clause:delete from Doctor where ( id ) in ( ( 1 ), ( 2 ), ( 3 ), ( 4 ) )
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.hibernate.hql.spi.id.MultiTableBulkIdStrategy
MultiTableBulkIdStrategy.DeleteHandler, MultiTableBulkIdStrategy.UpdateHandler
-
-
Field Summary
Fields Modifier and Type Field Description static InlineIdsInClauseBulkIdStrategyINSTANCE
-
Constructor Summary
Constructors Constructor Description InlineIdsInClauseBulkIdStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MultiTableBulkIdStrategy.DeleteHandlerbuildDeleteHandler(SessionFactoryImplementor factory, org.hibernate.hql.internal.ast.HqlSqlWalker walker)Build a handler capable of handling the bulk delete indicated by the given walker.MultiTableBulkIdStrategy.UpdateHandlerbuildUpdateHandler(SessionFactoryImplementor factory, org.hibernate.hql.internal.ast.HqlSqlWalker walker)Build a handler capable of handling the bulk update indicated by the given walker.voidprepare(JdbcServices jdbcServices, JdbcConnectionAccess jdbcConnectionAccess, MetadataImplementor metadataImplementor, SessionFactoryOptions sessionFactoryOptions, SqlStringGenerationContext sqlStringGenerationContext)Prepare the strategy.voidrelease(JdbcServices jdbcServices, JdbcConnectionAccess connectionAccess)Release the strategy.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.hql.spi.id.MultiTableBulkIdStrategy
prepare
-
-
-
-
Field Detail
-
INSTANCE
public static final InlineIdsInClauseBulkIdStrategy INSTANCE
-
-
Method Detail
-
prepare
public void prepare(JdbcServices jdbcServices, JdbcConnectionAccess jdbcConnectionAccess, MetadataImplementor metadataImplementor, SessionFactoryOptions sessionFactoryOptions, SqlStringGenerationContext sqlStringGenerationContext)
Description copied from interface:MultiTableBulkIdStrategyPrepare the strategy. Called as the SessionFactory is being built. Intended patterns here include:- Adding tables to the passed Mappings, to be picked by by "schema management tools"
- Manually creating the tables immediately through the passed JDBC Connection access
- Specified by:
preparein interfaceMultiTableBulkIdStrategy- Parameters:
jdbcServices- The JdbcService objectjdbcConnectionAccess- Access to the JDBC ConnectionmetadataImplementor- Access to the O/RM mapping information
-
release
public void release(JdbcServices jdbcServices, JdbcConnectionAccess connectionAccess)
Description copied from interface:MultiTableBulkIdStrategyRelease the strategy. Called as the SessionFactory is being shut down.- Specified by:
releasein interfaceMultiTableBulkIdStrategy- Parameters:
jdbcServices- The JdbcService objectconnectionAccess- Access to the JDBC Connection
-
buildUpdateHandler
public MultiTableBulkIdStrategy.UpdateHandler buildUpdateHandler(SessionFactoryImplementor factory, org.hibernate.hql.internal.ast.HqlSqlWalker walker)
Description copied from interface:MultiTableBulkIdStrategyBuild a handler capable of handling the bulk update indicated by the given walker.- Specified by:
buildUpdateHandlerin interfaceMultiTableBulkIdStrategy- Parameters:
factory- The SessionFactorywalker- The AST walker, representing the update query- Returns:
- The handler
-
buildDeleteHandler
public MultiTableBulkIdStrategy.DeleteHandler buildDeleteHandler(SessionFactoryImplementor factory, org.hibernate.hql.internal.ast.HqlSqlWalker walker)
Description copied from interface:MultiTableBulkIdStrategyBuild a handler capable of handling the bulk delete indicated by the given walker.- Specified by:
buildDeleteHandlerin interfaceMultiTableBulkIdStrategy- Parameters:
factory- The SessionFactorywalker- The AST walker, representing the delete query- Returns:
- The handler
-
-