Package net.sf.basedb.core
Class Metadata.DateCopyPropertyPath
- java.lang.Object
-
- net.sf.basedb.core.Metadata.DateCopyPropertyPath
-
- All Implemented Interfaces:
Metadata.PropertyPath<Date,Date>
static class Metadata.DateCopyPropertyPath extends Object implements Metadata.PropertyPath<Date,Date>
Property path implementation clones a Date.- Since:
- 2.15
-
-
Field Summary
Fields Modifier and Type Field Description private Type
hibernateType
-
Constructor Summary
Constructors Constructor Description DateCopyPropertyPath(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.Date
getValue(DbControl dc, Date item)
Get the value as defined by the implementation for the given item.String
toString()
-
-
-
Field Detail
-
hibernateType
private final Type hibernateType
-
-
Constructor Detail
-
DateCopyPropertyPath
DateCopyPropertyPath(Type hibernateType)
-
-
Method Detail
-
getValue
public Date getValue(DbControl dc, Date item)
Description copied from interface:Metadata.PropertyPath
Get the value as defined by the implementation for the given item.- Specified by:
getValue
in interfaceMetadata.PropertyPath<Date,Date>
- 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 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<Date,Date>
-
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 interfaceMetadata.PropertyPath<Date,Date>
-
-