public class GetterMethodImpl extends java.lang.Object implements Getter
Constructor and Description |
---|
GetterMethodImpl(java.lang.Class containerClass,
java.lang.String propertyName,
java.lang.reflect.Method getterMethod) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
get(java.lang.Object owner)
Get the property value from the given owner 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.Member |
getMember()
Retrieve the member to which this property maps.
|
java.lang.reflect.Method |
getMethod()
Retrieve the getter-method.
|
java.lang.String |
getMethodName()
Retrieve the getter-method name.
|
java.lang.Class |
getReturnType()
Retrieve the declared Java type
|
public GetterMethodImpl(java.lang.Class containerClass, java.lang.String propertyName, java.lang.reflect.Method getterMethod)
public java.lang.Object get(java.lang.Object owner)
Getter
public java.lang.Object getForInsert(java.lang.Object owner, java.util.Map mergeMap, SessionImplementor session)
Getter
getForInsert
in interface Getter
owner
- The instance containing the value to be retrieved.mergeMap
- a map of merged persistent instances to detached instancessession
- The session from which this request originated.public java.lang.Class getReturnType()
Getter
getReturnType
in interface Getter
public java.lang.reflect.Member getMember()
Getter
null
)public java.lang.String getMethodName()
Getter
null
)getMethodName
in interface Getter
null
.Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.