Top Description Methods
org.hibernate.property

public Interface Getter

extends Serializable
Known Direct Implementers
org.hibernate.property.IndexPropertyAccessor.IndexGetter, org.hibernate.property.MapAccessor.MapGetter, org.hibernate.property.NoopAccessor.NoopGetter, org.hibernate.property.BackrefPropertyAccessor.BackrefGetter, org.hibernate.property.BasicPropertyAccessor.BasicGetter, org.hibernate.property.DirectPropertyAccessor.DirectGetter, org.hibernate.property.Dom4jAccessor.Dom4jGetter, org.hibernate.property.EmbeddedPropertyAccessor.EmbeddedGetter
Imports
java.io.Serializable, java.lang.reflect.Method, .Member, java.util.Map, org.hibernate.HibernateException, org.hibernate.engine.SessionImplementor

Gets values of a particular property
Author
Gavin King

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

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

Get the property value from the given instance .

public Object

Returns:

The extracted value.
getForInsert
(Object
The instance containing the value to be retreived.
owner
,
Map<K, V>
a map of merged persistent instances to detached instances
mergeMap
,
SessionImplementor
The session from which this request originated.
session
)

Get the property value from the given owner instance.

public Member

Returns:

The mapped member.
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) throws HibernateException

Get the property value from the given instance .

Parameters
owner:Object

The instance containing the value to be retreived.

Returns:Object

The extracted value.

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

Get the property value from the given owner instance.

Parameters
owner:Object

The instance containing the value to be retreived.

mergeMap:Map<K, V>

a map of merged persistent instances to detached instances

session:SessionImplementor

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.

Returns:Member

The mapped member.

getMethodback to summary
public Method getMethod()

Retrieve the getter-method.

Optional operation (return null)

Returns:Method

The getter method, or null.

getMethodNameback to summary
public String getMethodName()

Retrieve the getter-method name.

Optional operation (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.