| Modifier and Type | Class and Description |
|---|---|
| public static enum | |
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| public static final CacheEntityLoaderHelper | |
| private static final CoreMessageLogger |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private Object | convertCacheEntryToEntity(CacheEntry entry, Object entityId, EventSource source, EntityPersister persister, Object instanceToLoad, EntityKey entityKey)
|
| private Object | convertCacheReferenceEntryToEntity(ReferenceCacheEntryImpl referenceCacheEntry, SharedSessionContractImplementor session, EntityKey entityKey)
|
| private Object | getFromSharedCache(final Object entityId, final EntityPersister persister, SessionImplementor source)
|
| public Object | Returns: The entity from the second-level cache, or null.The load event event, final EntityPersister The persister for the entity being requested for load persister, final EntityKey The entity key entityKey)Attempts to load the entity from the second-level cache. |
| public Object | Returns: The entity from the second-level cache, or null.The source source, final Object The entity entity, final LockMode The lock mode lockMode, final EntityPersister The persister for the entity being requested for load persister, final EntityKey The entity key entityKey)Attempts to load the entity from the second-level cache. |
| public CacheEntityLoaderHelper. | loadFromSessionCache(EntityKey keyToLoad, LoadEventListener.
|
| public CacheEntityLoaderHelper. | Returns: The entity from the session-level cache, or null.The load event event, final EntityKey The EntityKey representing the entity to be loaded. keyToLoad, final LoadEventListener.The load options. optionsAttempts to locate the entity in the session-level cache. |
| public static CacheEntityLoaderHelper. | Returns: The entity from the session-level cache, or null.The load event event, final EntityKey The EntityKey representing the entity to be loaded. keyToLoad, final LoadEventListener.The load options. optionsAttempts to locate the entity in the session-level cache. |
| private void | makeEntityCircularReferenceSafe(ReferenceCacheEntryImpl referenceCacheEntry, SharedSessionContractImplementor session, Object entity, EntityKey entityKey)
|
| private Object | processCachedEntry(final Object instanceToLoad, final EntityPersister persister, final Object ce, final EventSource source, final EntityKey entityKey)
|
| INSTANCE | back to summary |
|---|---|
| public static final CacheEntityLoaderHelper INSTANCE | |
| LOG | back to summary |
|---|---|
| private static final CoreMessageLogger LOG | |
| CacheEntityLoaderHelper | back to summary |
|---|---|
| private CacheEntityLoaderHelper() | |
| convertCacheEntryToEntity | back to summary |
|---|---|
| private Object convertCacheEntryToEntity(CacheEntry entry, Object entityId, EventSource source, EntityPersister persister, Object instanceToLoad, EntityKey entityKey) | |
| convertCacheReferenceEntryToEntity | back to summary |
|---|---|
| private Object convertCacheReferenceEntryToEntity(ReferenceCacheEntryImpl referenceCacheEntry, SharedSessionContractImplementor session, EntityKey entityKey) | |
| getFromSharedCache | back to summary |
|---|---|
| private Object getFromSharedCache(final Object entityId, final EntityPersister persister, SessionImplementor source) | |
| loadFromSecondLevelCache | back to summary |
|---|---|
| public Object loadFromSecondLevelCache(final LoadEvent event, final EntityPersister persister, final EntityKey entityKey) Attempts to load the entity from the second-level cache.
| |
| loadFromSecondLevelCache | back to summary |
|---|---|
| public Object loadFromSecondLevelCache(final EventSource source, final Object entity, final LockMode lockMode, final EntityPersister persister, final EntityKey entityKey) Attempts to load the entity from the second-level cache.
| |
| loadFromSessionCache | back to summary |
|---|---|
public CacheEntityLoaderHelper.
| |
| loadFromSessionCache | back to summary |
|---|---|
| public CacheEntityLoaderHelper. Attempts to locate the entity in the session-level cache. If allowed to return nulls, then if the entity happens to be found in the session cache, we check the entity type for proper handling of entity hierarchies. If checkDeleted was set to true, then if the entity is found in the session-level cache, its current status within the session cache is checked to see if it has previously been scheduled for deletion.
| |
| loadFromSessionCacheStatic | back to summary |
|---|---|
| public static CacheEntityLoaderHelper. Attempts to locate the entity in the session-level cache. If allowed to return nulls, then if the entity happens to be found in the session cache, we check the entity type for proper handling of entity hierarchies. If checkDeleted was set to true, then if the entity is found in the session-level cache, its current status within the session cache is checked to see if it has previously been scheduled for deletion.
| |
| makeEntityCircularReferenceSafe | back to summary |
|---|---|
| private void makeEntityCircularReferenceSafe(ReferenceCacheEntryImpl referenceCacheEntry, SharedSessionContractImplementor session, Object entity, EntityKey entityKey) | |
| processCachedEntry | back to summary |
|---|---|
| private Object processCachedEntry(final Object instanceToLoad, final EntityPersister persister, final Object ce, final EventSource source, final EntityKey entityKey) | |
| Modifier and Type | Field and Description |
|---|---|
| public static final CacheEntityLoaderHelper. | |
| public static final CacheEntityLoaderHelper. | |
| public static final CacheEntityLoaderHelper. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static CacheEntityLoaderHelper. | |
| public static CacheEntityLoaderHelper. |
| INCONSISTENT_RTN_CLASS_MARKER | back to summary |
|---|---|
| public static final CacheEntityLoaderHelper. | |
| MANAGED | back to summary |
|---|---|
| public static final CacheEntityLoaderHelper. | |
| REMOVED_ENTITY_MARKER | back to summary |
|---|---|
| public static final CacheEntityLoaderHelper. | |
| EntityStatus | back to summary |
|---|---|
| private EntityStatus() | |
| valueOf | back to summary |
|---|---|
| public static CacheEntityLoaderHelper. | |
| values | back to summary |
|---|---|
| public static CacheEntityLoaderHelper. | |
| Modifier and Type | Field and Description |
|---|---|
| private final Object | |
| private final CacheEntityLoaderHelper. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object | |
| public CacheEntityLoaderHelper. | |
| public boolean |
| entity | back to summary |
|---|---|
| private final Object entity | |
| status | back to summary |
|---|---|
| private final CacheEntityLoaderHelper. | |
| PersistenceContextEntry | back to summary |
|---|---|
| public PersistenceContextEntry(Object entity, CacheEntityLoaderHelper. | |
| getEntity | back to summary |
|---|---|
| public Object getEntity() | |
| getStatus | back to summary |
|---|---|
| public CacheEntityLoaderHelper. | |
| isManaged | back to summary |
|---|---|
| public boolean isManaged() | |