Interface Getter
-
- All Superinterfaces:
java.io.Serializable
- All Known Implementing Classes:
EnhancedGetterMethodImpl
,GetterFieldImpl
,GetterMethodImpl
public interface Getter extends java.io.Serializable
The contract for getting value for a persistent property from its container/owner
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Object
get(java.lang.Object owner)
Get the property value from the given owner instance.java.lang.Object
getForInsert(java.lang.Object owner, java.util.Map mergeMap, SharedSessionContractImplementor session)
Get the property value from the given owner instance.java.lang.reflect.Member
getMember()
Retrieve the member to which this property maps.java.lang.reflect.Method
getMethod()
Retrieve the getter-method.java.lang.String
getMethodName()
Retrieve the getter-method name.java.lang.Class
getReturnType()
Retrieve the declared Java type
-
-
-
Method Detail
-
get
java.lang.Object get(java.lang.Object owner)
Get the property value from the given owner instance.- Parameters:
owner
- The instance containing the property value to be retrieved.- Returns:
- The extracted value.
- Throws:
HibernateException
-
getForInsert
java.lang.Object getForInsert(java.lang.Object owner, java.util.Map mergeMap, SharedSessionContractImplementor session)
Get the property value from the given owner instance.- Parameters:
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.- Returns:
- The extracted value.
- Throws:
HibernateException
-
getReturnType
java.lang.Class getReturnType()
Retrieve the declared Java type- Returns:
- The declared java type.
-
getMember
java.lang.reflect.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
)- Returns:
- The mapped member, or
null
.
-
getMethodName
java.lang.String getMethodName()
Retrieve the getter-method name. Optional operation (may returnnull
)- Returns:
- The name of the getter method, or
null
.
-
getMethod
java.lang.reflect.Method getMethod()
Retrieve the getter-method. Optional operation (may returnnull
)- Returns:
- The getter method, or
null
.
-
-