2.17.2: 2011-06-17

net.sf.basedb.core
Class Metadata.BasicData2ItemPropertyPath<C extends BasicData,V extends BasicItem<C>>

java.lang.Object
  extended by net.sf.basedb.core.Metadata.BasicData2ItemPropertyPath<C,V>
All Implemented Interfaces:
Metadata.PropertyPath<C,BasicItem>
Enclosing class:
Metadata<C>

static class Metadata.BasicData2ItemPropertyPath<C extends BasicData,V extends BasicItem<C>>
extends Object
implements Metadata.PropertyPath<C,BasicItem>

Property path implementation that converts a BasicData object to a BasicItem.

Since:
2.15

Field Summary
private  org.hibernate.type.Type hibernateType
           
private  Item itemType
           
 
Constructor Summary
Metadata.BasicData2ItemPropertyPath(Item itemType, org.hibernate.type.Type hibernateType)
           
 
Method Summary
 org.hibernate.type.Type getHibernateType()
          Get type information about the value that is returned by this path.
 String getPath()
          Get the path that this object represents.
 BasicItem getValue(DbControl dc, C item)
          Get the value as defined by the implementation for the given item.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

itemType

private final Item itemType

hibernateType

private final org.hibernate.type.Type hibernateType
Constructor Detail

Metadata.BasicData2ItemPropertyPath

Metadata.BasicData2ItemPropertyPath(Item itemType,
                                    org.hibernate.type.Type hibernateType)
Method Detail

getValue

public BasicItem 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 extends BasicData,BasicItem>
Parameters:
dc - A DbControl to use for database access if needed
item - 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 extends BasicData,BasicItem>

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 extends BasicData,BasicItem>

toString

public String toString()
Overrides:
toString in class Object

2.17.2: 2011-06-17