Class ChainedPropertyAccessImpl
- java.lang.Object
-
- org.hibernate.property.access.internal.ChainedPropertyAccessImpl
-
- All Implemented Interfaces:
Serializable,Getter,PropertyAccess,Setter
public class ChainedPropertyAccessImpl extends Object implements PropertyAccess, Getter, Setter
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ChainedPropertyAccessImpl(PropertyAccess... propertyAccesses)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.GettergetGetter()Obtain the delegate for getting values for the described persistent propertyMembergetMember()Retrieve the member to which this property maps.MethodgetMethod()Retrieve the getter-method.StringgetMethodName()Retrieve the getter-method name.PropertyAccessStrategygetPropertyAccessStrategy()Access to the PropertyAccessStrategy that created this PropertyAccessTypegetReturnType()Retrieve the declared Java typeClass<?>getReturnTypeClass()Retrieve the declared Java type classSettergetSetter()Obtain the delegate for setting values for the described persistent propertyvoidset(Object target, Object value)
-
-
-
Constructor Detail
-
ChainedPropertyAccessImpl
public ChainedPropertyAccessImpl(PropertyAccess... propertyAccesses)
-
-
Method Detail
-
getPropertyAccessStrategy
public PropertyAccessStrategy getPropertyAccessStrategy()
Description copied from interface:PropertyAccessAccess to the PropertyAccessStrategy that created this PropertyAccess- Specified by:
getPropertyAccessStrategyin interfacePropertyAccess- Returns:
- The PropertyAccessStrategy that created this PropertyAccess
-
getGetter
public Getter getGetter()
Description copied from interface:PropertyAccessObtain the delegate for getting values for the described persistent property- Specified by:
getGetterin interfacePropertyAccess- Returns:
- The property getter
-
getSetter
public Setter getSetter()
Description copied from interface:PropertyAccessObtain the delegate for setting values for the described persistent property- Specified by:
getSetterin interfacePropertyAccess- Returns:
- The property setter
-
get
public Object get(Object owner)
Description copied from interface:GetterGet the property value from the given owner instance.
-
getForInsert
public Object getForInsert(Object owner, Map mergeMap, SharedSessionContractImplementor session)
Description copied from interface:GetterGet the property value from the given owner instance.- Specified by:
getForInsertin interfaceGetter- 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.
-
getReturnTypeClass
public Class<?> getReturnTypeClass()
Description copied from interface:GetterRetrieve the declared Java type class- Specified by:
getReturnTypeClassin interfaceGetter- Returns:
- The declared java type class.
-
getReturnType
public Type getReturnType()
Description copied from interface:GetterRetrieve the declared Java type- Specified by:
getReturnTypein interfaceGetter- Returns:
- The declared java type.
-
getMember
public Member getMember()
Description copied from interface: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()
Description copied from interface:GetterRetrieve the getter-method name. Optional operation (may returnnull)- Specified by:
getMethodNamein interfaceGetter- Specified by:
getMethodNamein interfaceSetter- Returns:
- The name of the getter method, or
null.
-
-