Class Metadata.EvictPropertyPath<C>

java.lang.Object
net.sf.basedb.core.Metadata.EvictPropertyPath<C>
All Implemented Interfaces:
Metadata.PropertyPath<C,​C>
Enclosing class:
Metadata<C>

static class Metadata.EvictPropertyPath<C>
extends Object
implements Metadata.PropertyPath<C,​C>
Property path implementation that evicts the selected item from the Hibernate first-level cache. Used with BatchableData classes which are returned as is to the client.
Since:
2.15
  • Field Details

    • hibernateType

      private final Type hibernateType
  • Constructor Details

    • EvictPropertyPath

      EvictPropertyPath​(Type hibernateType)
  • Method Details

    • getValue

      public C getValue​(DbControl dc, C item)
      Description copied from interface: Metadata.PropertyPath
      Get the value as defined by the implementation for the given item.
      Specified by:
      getValue in interface Metadata.PropertyPath<C,​C>
      Parameters:
      dc - A DbControl to use for database access if needed
      item - The item that owns the value
      Returns:
      The value from the item
    • getHibernateType

      public Type getHibernateType()
      Description copied from interface: Metadata.PropertyPath
      Get type information about the value that is returned by this path.
      Specified by:
      getHibernateType in interface Metadata.PropertyPath<C,​C>
    • getPath

      public String getPath()
      Description copied from interface: Metadata.PropertyPath
      Get the path that this object represents. Implementors may return null if the path is an "invisible" transition, eg from BasicItem to BasicData or a cloned Date, etc.
      Specified by:
      getPath in interface Metadata.PropertyPath<C,​C>
    • toString

      public String toString()
      Overrides:
      toString in class Object