Package net.sf.basedb.core
Class Metadata.IdentifierPropertyPath
java.lang.Object
net.sf.basedb.core.Metadata.IdentifierPropertyPath
- All Implemented Interfaces:
Metadata.PropertyPath<IdentifiableData,
Integer>
static class Metadata.IdentifierPropertyPath
extends Object
implements Metadata.PropertyPath<IdentifiableData,Integer>
Property path implementation which gets the id from an entity.
- Since:
- 2.15
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet type information about the value that is returned by this path.getPath()
Get the path that this object represents.getValue
(DbControl dc, IdentifiableData item) Get the value as defined by the implementation for the given item.toString()
-
Field Details
-
hibernateType
-
-
Constructor Details
-
IdentifierPropertyPath
IdentifierPropertyPath(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<IdentifiableData,
Integer> - 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<IdentifiableData,
Integer>
-
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<IdentifiableData,
Integer>
-
toString
-