Package net.sf.basedb.core
Class Metadata.BasicItem2DataPropertyPath<C extends BasicItem,V extends BasicData>
- java.lang.Object
-
- net.sf.basedb.core.Metadata.BasicItem2DataPropertyPath<C,V>
-
- All Implemented Interfaces:
Metadata.PropertyPath<C,V>
static class Metadata.BasicItem2DataPropertyPath<C extends BasicItem,V extends BasicData> extends Object implements Metadata.PropertyPath<C,V>
Property path implementation that converts a BasicItem to a BasicData object.- Since:
- 2.15
-
-
Field Summary
Fields Modifier and Type Field Description private Class<C>
clazz
private Type
hibernateType
-
Constructor Summary
Constructors Constructor Description BasicItem2DataPropertyPath(Class<C> clazz, Type hibernateType)
-
Method Summary
All Methods Instance Methods Concrete Methods 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.String
toString()
-
-
-
Method Detail
-
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.
-
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 interfaceMetadata.PropertyPath<C extends BasicItem,V extends BasicData>
-
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.
-
-