Package | Description |
---|---|
org.hibernate |
This package defines the central Hibernate APIs.
|
org.hibernate.engine.spi | |
org.hibernate.internal |
An internal package containing mostly implementations of central Hibernate APIs.
|
Modifier and Type | Method and Description |
---|---|
<T> MultiIdentifierLoadAccess<T> |
Session.byMultipleIds(Class<T> entityClass)
Create a
MultiIdentifierLoadAccess instance to retrieve multiple entities at once
as specified by primary key values. |
MultiIdentifierLoadAccess |
Session.byMultipleIds(String entityName)
Create a
MultiIdentifierLoadAccess instance to retrieve multiple entities at once
as specified by primary key values. |
MultiIdentifierLoadAccess<T> |
MultiIdentifierLoadAccess.enableOrderedReturn(boolean enabled)
Should the return List be ordered and positional in relation to the
incoming ids? If enabled (the default), the return List is ordered and
positional relative to the incoming ids.
|
MultiIdentifierLoadAccess<T> |
MultiIdentifierLoadAccess.enableReturnOfDeletedEntities(boolean enabled)
Should the multi-load operation be allowed to return entities that are locally
deleted? A locally deleted entity is one which has been passed to this
Session's
Session.delete(java.lang.Object) / EntityManager.remove(java.lang.Object) method, but not
yet flushed. |
MultiIdentifierLoadAccess<T> |
MultiIdentifierLoadAccess.enableSessionCheck(boolean enabled)
Specify whether we should check the Session to see whether it already contains any of the
entities to be loaded in a managed state for the purpose of not including those
ids to the batch-load SQL.
|
MultiIdentifierLoadAccess<T> |
MultiIdentifierLoadAccess.with(CacheMode cacheMode)
Specify the
CacheMode to use when retrieving the entity. |
MultiIdentifierLoadAccess<T> |
MultiIdentifierLoadAccess.with(LockOptions lockOptions)
Specify the
LockOptions to use when retrieving the entity. |
MultiIdentifierLoadAccess<T> |
MultiIdentifierLoadAccess.withBatchSize(int batchSize)
Specify a batch size for loading the entities (how many at a time).
|
Modifier and Type | Method and Description |
---|---|
<T> MultiIdentifierLoadAccess<T> |
SessionDelegatorBaseImpl.byMultipleIds(Class<T> entityClass) |
MultiIdentifierLoadAccess |
SessionDelegatorBaseImpl.byMultipleIds(String entityName) |
Modifier and Type | Method and Description |
---|---|
<T> MultiIdentifierLoadAccess<T> |
SessionImpl.byMultipleIds(Class<T> entityClass) |
MultiIdentifierLoadAccess |
SessionImpl.byMultipleIds(String entityName) |
Copyright © 2020 JBoss by Red Hat. All rights reserved.