org.ujoframework.hibernateSupport
Class UjoPropertyGetter

java.lang.Object
  extended by org.ujoframework.hibernateSupport.UjoPropertyGetter
All Implemented Interfaces:
java.io.Serializable, org.hibernate.property.Getter

public final class UjoPropertyGetter
extends java.lang.Object
implements org.hibernate.property.Getter

A support for the Hibernate framework. See the description for more information.

Author:
hampl
See Also:
Serialized Form

Constructor Summary
UjoPropertyGetter(java.lang.String propertyName, java.lang.Class theClass)
          Create the new UjoPropertyGetter for an Ujo object.
 
Method Summary
 java.lang.Object get(java.lang.Object target)
           
 java.lang.Object getForInsert(java.lang.Object owner, java.util.Map mergeMap, org.hibernate.engine.SessionImplementor session)
          inspired from BasicPropertyAccessor
 java.lang.reflect.Method getMethod()
          inspired from BackrefPropertyAccessor
 java.lang.String getMethodName()
          inspired from BackrefPropertyAccessor
 java.lang.Class getReturnType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UjoPropertyGetter

public UjoPropertyGetter(java.lang.String propertyName,
                         java.lang.Class theClass)
Create the new UjoPropertyGetter for an Ujo object.

Parameters:
propertyName - The name of UjoProperty.
theClass - Class type of Ujo.
Method Detail

get

public final java.lang.Object get(java.lang.Object target)
                           throws org.hibernate.HibernateException
Specified by:
get in interface org.hibernate.property.Getter
Parameters:
target - BO
Returns:
actual value of property
Throws:
org.hibernate.HibernateException

getForInsert

public java.lang.Object getForInsert(java.lang.Object owner,
                                     java.util.Map mergeMap,
                                     org.hibernate.engine.SessionImplementor session)
                              throws org.hibernate.HibernateException
inspired from BasicPropertyAccessor

Specified by:
getForInsert in interface org.hibernate.property.Getter
Throws:
org.hibernate.HibernateException

getReturnType

public java.lang.Class getReturnType()
Specified by:
getReturnType in interface org.hibernate.property.Getter

getMethodName

public java.lang.String getMethodName()
inspired from BackrefPropertyAccessor

Specified by:
getMethodName in interface org.hibernate.property.Getter

getMethod

public java.lang.reflect.Method getMethod()
inspired from BackrefPropertyAccessor

Specified by:
getMethod in interface org.hibernate.property.Getter


Copyright © 2010. All Rights Reserved.