org.hibernate.property
Interface Getter

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
BackrefPropertyAccessor.BackrefGetter, BasicPropertyAccessor.BasicGetter, DirectPropertyAccessor.DirectGetter, Dom4jAccessor.AttributeGetter, Dom4jAccessor.Dom4jGetter, Dom4jAccessor.ElementAttributeGetter, Dom4jAccessor.ElementGetter, Dom4jAccessor.TextGetter, EmbeddedPropertyAccessor.EmbeddedGetter, IndexPropertyAccessor.IndexGetter, MapAccessor.MapGetter

public interface Getter
extends java.io.Serializable

Gets values of a particular property

Author:
Gavin King

Method Summary
 java.lang.Object get(java.lang.Object owner)
          Get the property value from the given instance .
 java.lang.Object getForInsert(java.lang.Object owner, java.util.Map mergeMap, SessionImplementor session)
          Get the property value from the given owner instance.
 java.lang.reflect.Method getMethod()
          Optional operation (return null)
 java.lang.String getMethodName()
          Optional operation (return null)
 java.lang.Class getReturnType()
          Get the declared Java type
 

Method Detail

get

java.lang.Object get(java.lang.Object owner)
                     throws HibernateException
Get the property value from the given instance .

Parameters:
owner - The instance containing the value to be retreived.
Returns:
The extracted value.
Throws:
HibernateException

getForInsert

java.lang.Object getForInsert(java.lang.Object owner,
                              java.util.Map mergeMap,
                              SessionImplementor session)
                              throws HibernateException
Get the property value from the given owner instance.

Parameters:
owner - The instance containing the value to be retreived.
mergeMap - a map of merged persistent instances to detached instances
session - The session from which this request originated.
Returns:
The extracted value.
Throws:
HibernateException

getReturnType

java.lang.Class getReturnType()
Get the declared Java type


getMethodName

java.lang.String getMethodName()
Optional operation (return null)


getMethod

java.lang.reflect.Method getMethod()
Optional operation (return null)



Copyright © 2008 Hibernate.org. All Rights Reserved.