Interface Metadata.PropertyPath<C,​V>

All Known Implementing Classes:
Metadata.BasicData2ItemPropertyPath, Metadata.BasicItem2DataPropertyPath, Metadata.CollectionPropertyPath, Metadata.CombinedPropertyPath, Metadata.ComponentPropertyPath, Metadata.DateCopyPropertyPath, Metadata.EntityPropertyPath, Metadata.EvictPropertyPath, Metadata.IdentifierPropertyPath, Metadata.MapPropertyPath, Metadata.NoopPropertyPath, Metadata.ReporterScore2DataPropertyPath
Enclosing class:
Metadata<C>

public static interface Metadata.PropertyPath<C,​V>
Contract for getting the value of a specific property for an item.
Since:
2.15
  • Method Summary

    Modifier and Type Method Description
    Type getHibernateType()
    Get type information about the value that is returned by this path.
    String getPath()
    Get the path that this object represents.
    V getValue​(DbControl dc, C item)
    Get the value as defined by the implementation for the given item.
  • Method Details

    • getValue

      V getValue​(DbControl dc, C item)
      Get the value as defined by the implementation for the given item.
      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

      Type getHibernateType()
      Get type information about the value that is returned by this path.
    • getPath

      String getPath()
      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.