org.hibernate.property
Class BackrefPropertyAccessor.BackrefGetter

java.lang.Object
  extended by org.hibernate.property.BackrefPropertyAccessor.BackrefGetter
All Implemented Interfaces:
Serializable, Getter
Enclosing class:
BackrefPropertyAccessor

public class BackrefPropertyAccessor.BackrefGetter
extends Object
implements Getter

Internal implementation of a property getter specific to these back-ref properties.

See Also:
Serialized Form

Constructor Summary
BackrefPropertyAccessor.BackrefGetter()
           
 
Method Summary
 Object get(Object target)
          Get the property value from the given instance .
 Object getForInsert(Object target, Map mergeMap, SessionImplementor session)
          Get the property value from the given owner instance.
 Method getMethod()
          Optional operation (return null)
 String getMethodName()
          Optional operation (return null)
 Class getReturnType()
          Get the declared Java type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BackrefPropertyAccessor.BackrefGetter

public BackrefPropertyAccessor.BackrefGetter()
Method Detail

getForInsert

public Object getForInsert(Object target,
                           Map mergeMap,
                           SessionImplementor session)
Get the property value from the given owner instance.

Specified by:
getForInsert in interface Getter
Parameters:
target - 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.

get

public Object get(Object target)
Get the property value from the given instance .

Specified by:
get in interface Getter
Parameters:
target - The instance containing the value to be retreived.
Returns:
The extracted value.

getMethod

public Method getMethod()
Optional operation (return null)

Specified by:
getMethod in interface Getter

getMethodName

public String getMethodName()
Optional operation (return null)

Specified by:
getMethodName in interface Getter

getReturnType

public Class getReturnType()
Get the declared Java type

Specified by:
getReturnType in interface Getter


Copyright © 2009 Hibernate.org. All Rights Reserved.