public class GetterMethodImpl extends Object implements Getter
| Constructor and Description |
|---|
GetterMethodImpl(Class containerClass,
String propertyName,
Method getterMethod) |
| Modifier and Type | Method and Description |
|---|---|
Object |
get(Object owner)
Get the property value from the given owner instance.
|
Object |
getForInsert(Object owner,
Map mergeMap,
SharedSessionContractImplementor session)
Get the property value from the given owner instance.
|
Member |
getMember()
Retrieve the member to which this property maps.
|
Method |
getMethod()
Retrieve the getter-method.
|
String |
getMethodName()
Retrieve the getter-method name.
|
Class |
getReturnType()
Retrieve the declared Java type
|
public Object get(Object owner)
GetterGet the property value from the given owner instance.
public Object getForInsert(Object owner, Map mergeMap, SharedSessionContractImplementor session)
GetterGet the property value from the given owner instance.
getForInsert in interface Getterowner - 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 Class getReturnType()
GetterRetrieve the declared Java type
getReturnType in interface Getterpublic Member getMember()
GetterRetrieve the member to which this property maps. This might be the
field or it might be the getter method.
<p/>
Optional operation (may return null)
public String getMethodName()
GetterRetrieve the getter-method name.
<p/>
Optional operation (may return null)
getMethodName in interface Getternull.Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.