类 BatchFetchQueueHelper


  • public class BatchFetchQueueHelper
    extends Object
    作者:
    Gail Badner
    • 方法详细资料

      • removeNotFoundBatchLoadableEntityKeys

        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.
        参数:
        ids - - the IDs for the entities that were batch loaded
        results - - the results from loading the batch
        persister - - the entity persister for the entities in batch
        session - - the session
      • removeBatchLoadableEntityKey

        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.
        参数:
        id - - the ID for the entity to be removed
        persister - - the entity persister
        session - - the session