Class ReactiveLoaderHelper
java.lang.Object
org.hibernate.reactive.loader.ast.internal.ReactiveLoaderHelper
- See Also:
-
LoaderHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <X> X[]createTypedArray(Class<X> elementClass, int length) Creates a typed array, as opposed to a genericObject[]that holds the typed valuesstatic <R,K> CompletionStage<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, Object entityId, Object entityInstance, org.hibernate.LockOptions lockOptions, 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).static CompletionStage<Void>upgradeLock(Object object, org.hibernate.engine.spi.EntityEntry entry, org.hibernate.LockOptions lockOptions, org.hibernate.engine.spi.SharedSessionContractImplementor session) A Reactive implementation ofLoaderHelper.upgradeLock(Object, EntityEntry, LockOptions, SharedSessionContractImplementor)
-
Constructor Details
-
ReactiveLoaderHelper
public ReactiveLoaderHelper()
-
-
Method Details
-
createTypedArray
Creates a typed array, as opposed to a genericObject[]that holds the typed values- Parameters:
elementClass- The type of the array elements. SeeClass.getComponentType()length- The length to which the array should be created. This is usually zero for Hibernate uses
-