Top Description Inners Methods
org.hibernate.hql.spi.id

public Interface MultiTableBulkIdStrategy

Known Direct Implementers
org.hibernate.hql.spi.id.cte.CteValuesListBulkIdStrategy, org.hibernate.hql.spi.id.global.GlobalTemporaryTableBulkIdStrategy, org.hibernate.hql.spi.id.inline.InlineIdsInClauseBulkIdStrategy, org.hibernate.hql.spi.id.inline.InlineIdsOrClauseBulkIdStrategy, org.hibernate.hql.spi.id.inline.InlineIdsSubSelectValueListBulkIdStrategy, org.hibernate.hql.spi.id.local.LocalTemporaryTableBulkIdStrategy, org.hibernate.hql.spi.id.persistent.PersistentTableBulkIdStrategy, org.hibernate.hql.spi.id.AbstractMultiTableBulkIdStrategyImpl
Imports
org.hibernate.boot.model.relational.SqlStringGenerationContext, org.hibernate.boot.spi.MetadataImplementor, .SessionFactoryOptions, org.hibernate.engine.jdbc.connections.spi.JdbcConnectionAccess, org.hibernate.engine.jdbc.spi.JdbcServices, org.hibernate.engine.spi.QueryParameters, .SessionFactoryImplementor, .SharedSessionContractImplementor, org.hibernate.hql.internal.ast.HqlSqlWalker, org.hibernate.persister.entity.Queryable

Generalized strategy contract for handling multi-table bulk HQL operations.
Author
Steve Ebersole

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface
MultiTableBulkIdStrategy.DeleteHandler

Handler for dealing with multi-table HQL bulk delete statements.

public static interface
MultiTableBulkIdStrategy.UpdateHandler

Handler for dealing with multi-table HQL bulk update statements.

Method Summary

Modifier and TypeMethod and Description
public MultiTableBulkIdStrategy.DeleteHandler

Returns:

The handler
buildDeleteHandler
(SessionFactoryImplementor
The SessionFactory
factory
,
HqlSqlWalker
The AST walker, representing the delete query
walker
)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
Build a handler capable of handling the bulk delete indicated by the given walker.
public MultiTableBulkIdStrategy.UpdateHandler

Returns:

The handler
buildUpdateHandler
(SessionFactoryImplementor
The SessionFactory
factory
,
HqlSqlWalker
The AST walker, representing the update query
walker
)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
Build a handler capable of handling the bulk update indicated by the given walker.
public default void
prepare(JdbcServices
The JdbcService object
jdbcServices
,
JdbcConnectionAccess
Access to the JDBC Connection
connectionAccess
,
MetadataImplementor
Access to the O/RM mapping information
metadata
,
SessionFactoryOptions sessionFactoryOptions)

Deprecated Will be removed in favor of the variant accepting a SqlStringGenerationContext
Prepare the strategy.
public default void
prepare(JdbcServices
The JdbcService object
jdbcServices
,
JdbcConnectionAccess
Access to the JDBC Connection
connectionAccess
,
MetadataImplementor
Access to the O/RM mapping information
metadata
,
SessionFactoryOptions sessionFactoryOptions, SqlStringGenerationContext sqlStringGenerationContext)

Prepare the strategy.

public void
release(JdbcServices
The JdbcService object
jdbcServices
,
JdbcConnectionAccess
Access to the JDBC Connection
connectionAccess
)

Release the strategy.

Method Detail

buildDeleteHandlerback to summary
public MultiTableBulkIdStrategy.DeleteHandler buildDeleteHandler(SessionFactoryImplementor factory, HqlSqlWalker walker)

Deprecated

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

Build a handler capable of handling the bulk delete indicated by the given walker.

Parameters
factory:SessionFactoryImplementor

The SessionFactory

walker:HqlSqlWalker

The AST walker, representing the delete query

Returns:MultiTableBulkIdStrategy.DeleteHandler

The handler

buildUpdateHandlerback to summary
public MultiTableBulkIdStrategy.UpdateHandler buildUpdateHandler(SessionFactoryImplementor factory, HqlSqlWalker walker)

Deprecated

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

Build a handler capable of handling the bulk update indicated by the given walker.

Parameters
factory:SessionFactoryImplementor

The SessionFactory

walker:HqlSqlWalker

The AST walker, representing the update query

Returns:MultiTableBulkIdStrategy.UpdateHandler

The handler

prepareback to summary
public default void prepare(JdbcServices jdbcServices, JdbcConnectionAccess connectionAccess, MetadataImplementor metadata, SessionFactoryOptions sessionFactoryOptions)

Deprecated

Will be removed in favor of the variant accepting a SqlStringGenerationContext

Prepare 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
Parameters
jdbcServices:JdbcServices

The JdbcService object

connectionAccess:JdbcConnectionAccess

Access to the JDBC Connection

metadata:MetadataImplementor

Access to the O/RM mapping information

Annotations
@Deprecated
See Also
prepare(JdbcServices, JdbcConnectionAccess, MetadataImplementor, SessionFactoryOptions, SqlStringGenerationContext)
prepareback to summary
public default void prepare(JdbcServices jdbcServices, JdbcConnectionAccess connectionAccess, MetadataImplementor metadata, SessionFactoryOptions sessionFactoryOptions, SqlStringGenerationContext sqlStringGenerationContext)

Prepare 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
Parameters
jdbcServices:JdbcServices

The JdbcService object

connectionAccess:JdbcConnectionAccess

Access to the JDBC Connection

metadata:MetadataImplementor

Access to the O/RM mapping information

releaseback to summary
public void release(JdbcServices jdbcServices, JdbcConnectionAccess connectionAccess)

Release the strategy. Called as the SessionFactory is being shut down.

Parameters
jdbcServices:JdbcServices

The JdbcService object

connectionAccess:JdbcConnectionAccess

Access to the JDBC Connection

org.hibernate.hql.spi.id back to summary

public Interface MultiTableBulkIdStrategy.DeleteHandler

Known Direct Implementers
org.hibernate.hql.spi.id.TableBasedDeleteHandlerImpl, org.hibernate.hql.spi.id.cte.CteValuesListDeleteHandlerImpl, org.hibernate.hql.spi.id.inline.AbstractInlineIdsDeleteHandlerImpl, org.hibernate.hql.spi.id.inline.InlineIdsIdsInClauseDeleteHandlerImpl, org.hibernate.hql.spi.id.inline.InlineIdsIdsOrClauseDeleteHandlerImpl, org.hibernate.hql.spi.id.inline.InlineIdsSubSelectValuesListDeleteHandlerImpl, org.hibernate.hql.spi.id.inline.InlineIdsSubSelectValuesListUpdateHandlerImpl

Handler for dealing with multi-table HQL bulk delete statements.

Method Summary

Modifier and TypeMethod and Description
public int
public String[]
public Queryable

Method Detail

executeback to summary
public int execute(SharedSessionContractImplementor session, QueryParameters queryParameters)
getSqlStatementsback to summary
public String[] getSqlStatements()
getTargetedQueryableback to summary
public Queryable getTargetedQueryable()
org.hibernate.hql.spi.id back to summary

public Interface MultiTableBulkIdStrategy.UpdateHandler

Known Direct Implementers
org.hibernate.hql.spi.id.TableBasedUpdateHandlerImpl, org.hibernate.hql.spi.id.cte.CteValuesListUpdateHandlerImpl, org.hibernate.hql.spi.id.inline.AbstractInlineIdsUpdateHandlerImpl, org.hibernate.hql.spi.id.inline.InlineIdsInClauseUpdateHandlerImpl, org.hibernate.hql.spi.id.inline.InlineIdsOrClauseUpdateHandlerImpl

Handler for dealing with multi-table HQL bulk update statements.

Method Summary

Modifier and TypeMethod and Description
public int
public String[]
public Queryable

Method Detail

executeback to summary
public int execute(SharedSessionContractImplementor session, QueryParameters queryParameters)
getSqlStatementsback to summary
public String[] getSqlStatements()
getTargetedQueryableback to summary
public Queryable getTargetedQueryable()