Top Inners Fields Constructors Methods
org.hibernate.property.access.spi

public Class GetterMethodImpl

extends Object
implements Getter
Class Inheritance
All Implemented Interfaces
org.hibernate.property.access.spi.Getter, java.io.Serializable
Annotations
@Internal
Imports
java.io.ObjectStreamException, .Serializable, java.lang.reflect.InvocationTargetException, .Member, .Method, .Type, java.util.Map, org.hibernate.Internal, .PropertyAccessException, org.hibernate.engine.spi.SharedSessionContractImplementor, org.hibernate.internal.CoreMessageLogger, org.hibernate.internal.util.ReflectHelper, org.hibernate.internal.util.collections.ArrayHelper, org.checkerframework.checker.nullness.qual.Nullable

Author
Steve Ebersole

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private final Class<?>
private final Method
private static final CoreMessageLogger
private final String

Constructor Summary

AccessConstructor and Description
public
GetterMethodImpl(Class<?> containerClass, String propertyName, Method getterMethod)

Method Summary

Modifier and TypeMethod and Description
public @Nullable Object
get(Object
The instance containing the property value to be retrieved.
owner
)

Implements org.hibernate.property.access.spi.Getter.get.

Get the property value from the given owner instance.
public @Nullable Object
getForInsert(Object
The instance containing the value to be retrieved.
owner
,
Map<K, V>
a map of merged persistent instances to detached instances
mergeMap
,
SharedSessionContractImplementor
The session from which this request originated.
session
)

Implements org.hibernate.property.access.spi.Getter.getForInsert.

Get the property value from the given owner instance.
public Member
getMember()

Implements org.hibernate.property.access.spi.Getter.getMember.

Retrieve the member to which this property maps.
public Method
getMethod()

Implements org.hibernate.property.access.spi.Getter.getMethod.

Retrieve the getter-method.
public String
getMethodName()

Implements org.hibernate.property.access.spi.Getter.getMethodName.

Retrieve the getter-method name.
public Type
getReturnType()

Implements org.hibernate.property.access.spi.Getter.getReturnType.

Retrieve the declared Java type
public Class<?>
getReturnTypeClass()

Implements org.hibernate.property.access.spi.Getter.getReturnTypeClass.

Retrieve the declared Java type class
private Object
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

containerClassback to summary
private final Class<?> containerClass
getterMethodback to summary
private final Method getterMethod
LOGback to summary
private static final CoreMessageLogger LOG
propertyNameback to summary
private final String propertyName

Constructor Detail

GetterMethodImplback to summary
public GetterMethodImpl(Class<?> containerClass, String propertyName, Method getterMethod)

Method Detail

getback to summary
public @Nullable Object get(Object owner)

Implements org.hibernate.property.access.spi.Getter.get.

Doc from org.hibernate.property.access.spi.Getter.get.

Get the property value from the given owner instance.

Parameters
owner:Object

The instance containing the property value to be retrieved.

Returns:@Nullable Object

The extracted value.

Annotations
@Override
getForInsertback to summary
public @Nullable Object getForInsert(Object owner, Map<K, V> mergeMap, SharedSessionContractImplementor session)

Implements org.hibernate.property.access.spi.Getter.getForInsert.

Doc from org.hibernate.property.access.spi.Getter.getForInsert.

Get the property value from the given owner instance.

Parameters
owner:Object

The instance containing the value to be retrieved.

mergeMap:Map<K, V>

a map of merged persistent instances to detached instances

session:SharedSessionContractImplementor

The session from which this request originated.

Returns:@Nullable Object

The extracted value.

Annotations
@SuppressWarnings:rawtypes
@Override
getMemberback to summary
public Member getMember()

Implements org.hibernate.property.access.spi.Getter.getMember.

Doc from org.hibernate.property.access.spi.Getter.getMember.

Retrieve the member to which this property maps. This might be the field or it might be the getter method.

Optional operation (may return null)

Returns:Member

The mapped member, or null.

Annotations
@Override
getMethodback to summary
public Method getMethod()

Implements org.hibernate.property.access.spi.Getter.getMethod.

Doc from org.hibernate.property.access.spi.Getter.getMethod.

Retrieve the getter-method.

Optional operation (may return null)

Returns:Method

The getter method, or null.

Annotations
@Override
getMethodNameback to summary
public String getMethodName()

Implements org.hibernate.property.access.spi.Getter.getMethodName.

Doc from org.hibernate.property.access.spi.Getter.getMethodName.

Retrieve the getter-method name.

Optional operation (may return null)

Returns:String

The name of the getter method, or null.

Annotations
@Override
getReturnTypeback to summary
public Type getReturnType()

Implements org.hibernate.property.access.spi.Getter.getReturnType.

Doc from org.hibernate.property.access.spi.Getter.getReturnType.

Retrieve the declared Java type

Returns:Type

The declared java type.

Annotations
@Override
getReturnTypeClassback to summary
public Class<?> getReturnTypeClass()

Implements org.hibernate.property.access.spi.Getter.getReturnTypeClass.

Doc from org.hibernate.property.access.spi.Getter.getReturnTypeClass.

Retrieve the declared Java type class

Returns:Class<?>

The declared java type class.

Annotations
@Override
writeReplaceback to summary
private Object writeReplace() throws ObjectStreamException
org.hibernate.property.access.spi back to summary

private Class GetterMethodImpl.SerialForm

extends Object
implements Serializable
Class Inheritance
  • java.lang.Object
  • org.hibernate.property.access.spi.GetterMethodImpl.SerialForm
All Implemented Interfaces
java.io.Serializable

Field Summary

Modifier and TypeField and Description
private final Class<?>
private final Class<?>
private final String
private final String

Constructor Summary

AccessConstructor and Description
private
SerialForm(Class<?> containerClass, String propertyName, Method method)

Method Summary

Modifier and TypeMethod and Description
private Object
private Method
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

containerClassback to summary
private final Class<?> containerClass
declaringClassback to summary
private final Class<?> declaringClass
methodNameback to summary
private final String methodName
propertyNameback to summary
private final String propertyName

Constructor Detail

SerialFormback to summary
private SerialForm(Class<?> containerClass, String propertyName, Method method)

Method Detail

readResolveback to summary
private Object readResolve()
resolveMethodback to summary
private Method resolveMethod()