Interface PostLoaderDao
- All Known Implementing Classes:
DefaultPostLoaderDao
public interface PostLoaderDao
Utility class for working with proxied entities.
The DefaultPostLoaderDao
in core delegates functionally to
EntityManager
, while more interesting
functionality is provided by the enterprise version.
- Author:
- Nathan Moore (nathanmoore).
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
<T> T
Find the entity by primary key and class, and, if found in the persistence context, return the deproxied version.<T> T
findSandboxEntity
(Class<T> clazz, Object id) If within the context of a sandbox, return the sandbox entity by primary key and class.
-
Method Details
-
find
Find the entity by primary key and class, and, if found in the persistence context, return the deproxied version.- Parameters:
clazz
- entity classid
- primary key- Returns:
- deproxied entity or null if not found
-
findSandboxEntity
If within the context of a sandbox, return the sandbox entity by primary key and class.This purposefully uses the Entity Manager in order to trigger the hibernate filters.
- Type Parameters:
T
-- Parameters:
clazz
-id
-- Returns:
-
evict
-
evict
-