public interface MultiIdentifierLoadAccess<T>
Modifier and Type | Method and Description |
---|---|
MultiIdentifierLoadAccess<T> |
enableSessionCheck(boolean enabled)
Should we 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
|
<K extends Serializable> |
multiLoad(K... ids)
Perform a load of multiple entities by identifiers
|
<K extends Serializable> |
multiLoad(List<K> ids)
Perform a load of multiple entities by identifiers
|
MultiIdentifierLoadAccess<T> |
with(CacheMode cacheMode)
Specify the
CacheMode to use when retrieving the entity. |
MultiIdentifierLoadAccess<T> |
with(LockOptions lockOptions)
Specify the
LockOptions to use when retrieving the entity. |
MultiIdentifierLoadAccess<T> |
withBatchSize(int batchSize)
Specify a batch size for loading the entities (how many at a time).
|
MultiIdentifierLoadAccess<T> with(LockOptions lockOptions)
LockOptions
to use when retrieving the entity.lockOptions
- The lock options to use.this
, for method chainingMultiIdentifierLoadAccess<T> with(CacheMode cacheMode)
CacheMode
to use when retrieving the entity.cacheMode
- The CacheMode to use.this
, for method chainingMultiIdentifierLoadAccess<T> withBatchSize(int batchSize)
batchSize
- The batch sizethis
, for method chainingMultiIdentifierLoadAccess<T> enableSessionCheck(boolean enabled)
enabled
- true
enables this checking; false
disables it.this
, for method chaining<K extends Serializable> List<T> multiLoad(K... ids)
K
- The identifier typeids
- The ids to load<K extends Serializable> List<T> multiLoad(List<K> ids)
K
- The identifier typeids
- The ids to loadCopyright © 2017 JBoss by Red Hat. All rights reserved.