net.sf.basedb.core
Class Metadata.CombinedPropertyPath<C,V>
java.lang.Object
net.sf.basedb.core.Metadata.CombinedPropertyPath<C,V>
- All Implemented Interfaces:
- Metadata.PropertyPath<C,V>
- Enclosing class:
- Metadata<C>
static class Metadata.CombinedPropertyPath<C,V>
- extends Object
- implements Metadata.PropertyPath<C,V>
Property path implementation that combines a list of property paths
to create a long chain. The return value of the first entry is used
as the argument to the next and so on.
- Since:
- 2.15
path
private final List<Metadata.PropertyPath> path
Metadata.CombinedPropertyPath
public Metadata.CombinedPropertyPath(List<Metadata.PropertyPath> path)
getValue
public V 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,V>
- Parameters:
dc
- A DbControl to use for database access if neededitem
- The item that owns the value
- Returns:
- The value from the item
getHibernateType
public org.hibernate.type.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,V>
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,V>
toString
public String toString()
- Overrides:
toString
in class Object