类 GetterMethodImpl
- java.lang.Object
-
- org.hibernate.property.access.spi.GetterMethodImpl
-
- 所有已实现的接口:
Serializable,Getter
public class GetterMethodImpl extends Object implements Getter
- 作者:
- Steve Ebersole
- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 GetterMethodImpl(Class containerClass, String propertyName, Method getterMethod)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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
public Object get(Object owner)
从接口复制的说明:GetterGet the property value from the given owner instance.
-
getForInsert
public Object getForInsert(Object owner, Map mergeMap, SharedSessionContractImplementor session)
从接口复制的说明:GetterGet the property value from the given owner instance.- 指定者:
getForInsert在接口中Getter- 参数:
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.
-
getReturnType
public Class getReturnType()
从接口复制的说明:GetterRetrieve the declared Java type- 指定者:
getReturnType在接口中Getter- 返回:
- The declared java type.
-
getMember
public Member getMember()
从接口复制的说明:GetterRetrieve the member to which this property maps. This might be the field or it might be the getter method. Optional operation (may returnnull)
-
getMethodName
public String getMethodName()
从接口复制的说明:GetterRetrieve the getter-method name. Optional operation (may returnnull)- 指定者:
getMethodName在接口中Getter- 返回:
- The name of the getter method, or
null.
-
-