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 Type
    Method
    Description
    <T> T
    find(Class<T> clazz, Object id)
    Find the entity by primary key and class, and, if found in the persistence context, return the deproxied version.
    <T> T
    If within the context of a sandbox, return the sandbox entity by primary key and class.
  • Method Details

    • find

      <T> T find(Class<T> clazz, Object id)
      Find the entity by primary key and class, and, if found in the persistence context, return the deproxied version.
      Parameters:
      clazz - entity class
      id - primary key
      Returns:
      deproxied entity or null if not found
    • findSandboxEntity

      <T> T findSandboxEntity(Class<T> clazz, Object id)
      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: