Package net.sf.basedb.core
Class Metadata.EntityPropertyPath<C,V>
java.lang.Object
net.sf.basedb.core.Metadata.EntityPropertyPath<C,V>
- All Implemented Interfaces:
Metadata.PropertyPath<C,
V>
Property path implementation which gets a value from an entity.
- Since:
- 2.15
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Type
private final ClassMetadata
private final String
-
Constructor Summary
ConstructorDescriptionEntityPropertyPath
(ClassMetadata metadata, String property, Type hibernateType) -
Method Summary
-
Field Details
-
metadata
-
property
-
hibernateType
-
-
Constructor Details
-
EntityPropertyPath
EntityPropertyPath(ClassMetadata metadata, String property, Type hibernateType)
-
-
Method Details
-
getValue
Description copied from interface:Metadata.PropertyPath
Get the value as defined by the implementation for the given item.- Specified by:
getValue
in interfaceMetadata.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
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,
V>
-
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 interfaceMetadata.PropertyPath<C,
V>
-
toString
-