Top Description Methods
org.hibernate.property.access.spi

public Interface Getter

extends Serializable
Known Direct Implementers
org.hibernate.property.access.spi.GetterFieldImpl, org.hibernate.property.access.spi.GetterMethodImpl, org.hibernate.property.access.internal.PropertyAccessEmbeddedImpl.GetterImpl, org.hibernate.property.access.internal.PropertyAccessMapImpl.GetterImpl, org.hibernate.property.access.internal.PropertyAccessStrategyBackRefImpl.GetterImpl, org.hibernate.property.access.internal.PropertyAccessStrategyIndexBackRefImpl.GetterImpl, org.hibernate.property.access.internal.PropertyAccessStrategyNoopImpl.GetterImpl, org.hibernate.property.access.spi.EnhancedGetterMethodImpl
Imports
java.io.Serializable, java.lang.reflect.Member, .Method, java.util.Map, org.hibernate.engine.spi.SharedSessionContractImplementor

The contract for getting value for a persistent property from its container/owner
Authors
Gavin King, Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

The extracted value.
get
(Object
The instance containing the property value to be retrieved.
owner
)

Get the property value from the given owner instance.

public Object

Returns:

The extracted value.
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
)

Get the property value from the given owner instance.

public Member

Returns:

The mapped member, or null.
getMember
()

Retrieve the member to which this property maps.

public Method

Returns:

The getter method, or null.
getMethod
()

Retrieve the getter-method.

public String

Returns:

The name of the getter method, or null.
getMethodName
()

Retrieve the getter-method name.

public Class<T>

Returns:

The declared java type.
getReturnType
()

Retrieve the declared Java type

Method Detail

getback to summary
public Object get(Object owner)

Get the property value from the given owner instance.

Parameters
owner:Object

The instance containing the property value to be retrieved.

Returns:Object

The extracted value.

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

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:Object

The extracted value.

getMemberback to summary
public Member 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.

getMethodback to summary
public Method getMethod()

Retrieve the getter-method.

Optional operation (may return null)

Returns:Method

The getter method, or null.

getMethodNameback to summary
public String getMethodName()

Retrieve the getter-method name.

Optional operation (may return null)

Returns:String

The name of the getter method, or null.

getReturnTypeback to summary
public Class<T> getReturnType()

Retrieve the declared Java type

Returns:Class<T>

The declared java type.