Class ReactiveLoaderHelper


  • public class ReactiveLoaderHelper
    extends java.lang.Object
    See Also:
    LoaderHelper
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <X> X[] createTypedArray​(java.lang.Class<X> elementClass, int length)
      Creates a typed array, as opposed to a generic Object[] that holds the typed values
      static <R,​K>
      java.util.concurrent.CompletionStage<java.util.List<R>>
      loadByArrayParameter​(K[] idsToInitialize, org.hibernate.sql.ast.tree.select.SelectStatement sqlAst, org.hibernate.sql.exec.spi.JdbcOperationQuerySelect jdbcOperation, org.hibernate.sql.ast.tree.expression.JdbcParameter jdbcParameter, org.hibernate.metamodel.mapping.JdbcMapping arrayJdbcMapping, java.lang.Object entityId, java.lang.Object entityInstance, org.hibernate.LockOptions lockOptions, java.lang.Boolean readOnly, org.hibernate.engine.spi.SharedSessionContractImplementor session)
      Load one or more instances of a model part (an entity or collection) based on a SQL ARRAY parameter to specify the keys (as opposed to the more traditional SQL IN predicate approach).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ReactiveLoaderHelper

        public ReactiveLoaderHelper()
    • Method Detail

      • createTypedArray

        public static <X> X[] createTypedArray​(java.lang.Class<X> elementClass,
                                               int length)
        Creates a typed array, as opposed to a generic Object[] that holds the typed values
        Parameters:
        elementClass - The type of the array elements. See Class.getComponentType()
        length - The length to which the array should be created. This is usually zero for Hibernate uses
      • loadByArrayParameter

        public static <R,​K> java.util.concurrent.CompletionStage<java.util.List<R>> loadByArrayParameter​(K[] idsToInitialize,
                                                                                                               org.hibernate.sql.ast.tree.select.SelectStatement sqlAst,
                                                                                                               org.hibernate.sql.exec.spi.JdbcOperationQuerySelect jdbcOperation,
                                                                                                               org.hibernate.sql.ast.tree.expression.JdbcParameter jdbcParameter,
                                                                                                               org.hibernate.metamodel.mapping.JdbcMapping arrayJdbcMapping,
                                                                                                               java.lang.Object entityId,
                                                                                                               java.lang.Object entityInstance,
                                                                                                               org.hibernate.LockOptions lockOptions,
                                                                                                               java.lang.Boolean readOnly,
                                                                                                               org.hibernate.engine.spi.SharedSessionContractImplementor session)
        Load one or more instances of a model part (an entity or collection) based on a SQL ARRAY parameter to specify the keys (as opposed to the more traditional SQL IN predicate approach).
        Type Parameters:
        R - The type of the model part to load
        K - The type of the keys