Top Fields Constructors Methods
org.hibernate.engine.internal

public Class BatchFetchQueueHelper

extends Object
Class Inheritance
Imports
java.io.Serializable, java.util.Arrays, .HashSet, .List, .Set, org.hibernate.engine.spi.BatchFetchQueue, .EntityKey, .SharedSessionContractImplementor, org.hibernate.internal.CoreMessageLogger, org.hibernate.persister.entity.EntityPersister, org.jboss.logging.Logger

Author
Gail Badner

Field Summary

Modifier and TypeField and Description
private static final CoreMessageLogger

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static void
removeBatchLoadableEntityKey(Serializable
- the ID for the entity to be removed
id
,
EntityPersister
- the entity persister
persister
,
SharedSessionContractImplementor
- the session
session
)

Remove the entity key with the specified id and persister from the batch loadable entities BatchFetchQueue.

public static void
removeNotFoundBatchLoadableEntityKeys(Serializable[]
- the IDs for the entities that were batch loaded
ids
,
List<?>
- the results from loading the batch
results
,
EntityPersister
- the entity persister for the entities in batch
persister
,
SharedSessionContractImplementor
- the session
session
)

Finds the IDs for entities that were not found when the batch was loaded, and removes the corresponding entity keys from the BatchFetchQueue.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

LOGback to summary
private static final CoreMessageLogger LOG

Constructor Detail

BatchFetchQueueHelperback to summary
private BatchFetchQueueHelper()

Method Detail

removeBatchLoadableEntityKeyback to summary
public static void removeBatchLoadableEntityKey(Serializable id, EntityPersister persister, SharedSessionContractImplementor session)

Remove the entity key with the specified id and persister from the batch loadable entities BatchFetchQueue.

Parameters
id:Serializable

- the ID for the entity to be removed

persister:EntityPersister

- the entity persister

session:SharedSessionContractImplementor

- the session

removeNotFoundBatchLoadableEntityKeysback to summary
public static void removeNotFoundBatchLoadableEntityKeys(Serializable[] ids, List<?> results, EntityPersister persister, SharedSessionContractImplementor session)

Finds the IDs for entities that were not found when the batch was loaded, and removes the corresponding entity keys from the BatchFetchQueue.

Parameters
ids:Serializable[]

- the IDs for the entities that were batch loaded

results:List<?>

- the results from loading the batch

persister:EntityPersister

- the entity persister for the entities in batch

session:SharedSessionContractImplementor

- the session