接口 Getter
-
- 所有超级接口:
Serializable
- 所有已知实现类:
EnhancedGetterMethodImpl,GetterFieldImpl,GetterMethodImpl,PropertyAccessMapImpl.GetterImpl
public interface Getter extends Serializable
The contract for getting value for a persistent property from its container/owner- 作者:
- Gavin King, Steve Ebersole
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 Objectget(Object owner)Get the property value from the given owner instance.ObjectgetForInsert(Object owner, Map mergeMap, SharedSessionContractImplementor session)Get the property value from the given owner instance.MembergetMember()Retrieve the member to which this property maps.MethodgetMethod()Retrieve the getter-method.StringgetMethodName()Retrieve the getter-method name.ClassgetReturnType()Retrieve the declared Java type
-
-
-
方法详细资料
-
get
Object get(Object owner)
Get the property value from the given owner instance.- 参数:
owner- The instance containing the property value to be retrieved.- 返回:
- The extracted value.
- 抛出:
HibernateException
-
getForInsert
Object getForInsert(Object owner, Map mergeMap, SharedSessionContractImplementor session)
Get the property value from the given owner instance.- 参数:
owner- 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.- 返回:
- The extracted value.
- 抛出:
HibernateException
-
getReturnType
Class getReturnType()
Retrieve the declared Java type- 返回:
- The declared java type.
-
getMember
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 returnnull)- 返回:
- The mapped member, or
null.
-
getMethodName
String getMethodName()
Retrieve the getter-method name. Optional operation (may returnnull)- 返回:
- The name of the getter method, or
null.
-
getMethod
Method getMethod()
Retrieve the getter-method. Optional operation (may returnnull)- 返回:
- The getter method, or
null.
-
-