站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Hibernate 3.2.3 正式版 API 英文文档

Getter (Hibernate API Documentation) - Hibernate 3.2.3 正式版 API 英文文档


org.hibernate.property
Interface Getter

All Superinterfaces:
Serializable
All Known Implementing Classes:
BackrefPropertyAccessor.BackrefGetter, BasicPropertyAccessor.BasicGetter, DirectPropertyAccessor.DirectGetter, Dom4jAccessor.Dom4jGetter, EmbeddedPropertyAccessor.EmbeddedGetter, IndexPropertyAccessor.IndexGetter, MapAccessor.MapGetter

public interface Getter
extends Serializable

Gets values of a particular property

Author:
Gavin King

Method Summary
 Object get(Object owner)
          Get the property value from the given instance .
 Object getForInsert(Object owner, Map mergeMap, SessionImplementor session)
          Get the property value from the given owner instance.
 Method getMethod()
          Optional operation (return null)
 String getMethodName()
          Optional operation (return null)
 Class getReturnType()
          Get the declared Java type
 

Method Detail

get

public Object get(Object owner)
           throws HibernateException
Get the property value from the given instance .

Parameters:
owner - The instance containing the value to be retreived.
Returns:
The extracted value.
Throws:
HibernateException

getForInsert

public Object getForInsert(Object owner,
                           Map mergeMap,
                           SessionImplementor session)
                    throws HibernateException
Get the property value from the given owner instance.

Parameters:
owner - The instance containing the value to be retreived.
mergeMap - a map of merged persistent instances to detached instances
session - The session from which this request originated.
Returns:
The extracted value.
Throws:
HibernateException

getReturnType

public Class getReturnType()
Get the declared Java type


getMethodName

public String getMethodName()
Optional operation (return null)


getMethod

public Method getMethod()
Optional operation (return null)