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 @Nullable Object
get(Object owner)
Get the property value from the given owner instance.@Nullable Object
getForInsert(Object owner, Map mergeMap, SharedSessionContractImplementor session)
Get the property value from the given owner instance.Getter
getGetter()
Obtain the delegate for getting values of the persistent attribute.@Nullable Member
getMember()
Retrieve the member to which this property maps.@Nullable Method
getMethod()
Retrieve the getter-method.@Nullable String
getMethodName()
Retrieve the getter-method name.PropertyAccessStrategy
getPropertyAccessStrategy()
Access to thePropertyAccessStrategy
that created this instance.Type
getReturnType()
Retrieve the declared Java typeClass<?>
getReturnTypeClass()
Retrieve the declared Java type classSetter
getSetter()
Obtain the delegate for setting values of the persistent attribute.void
set(Object target, @Nullable Object value)
-
-
-
Constructor Detail
-
ChainedPropertyAccessImpl
public ChainedPropertyAccessImpl(PropertyAccess... propertyAccesses)
-
-
Method Detail
-
getPropertyAccessStrategy
public PropertyAccessStrategy getPropertyAccessStrategy()
Description copied from interface:PropertyAccess
Access to thePropertyAccessStrategy
that created this instance.- Specified by:
getPropertyAccessStrategy
in interfacePropertyAccess
- Returns:
- The
PropertyAccessStrategy
-
getGetter
public Getter getGetter()
Description copied from interface:PropertyAccess
Obtain the delegate for getting values of the persistent attribute.- Specified by:
getGetter
in interfacePropertyAccess
- Returns:
- The property getter
-
getSetter
public Setter getSetter()
Description copied from interface:PropertyAccess
Obtain the delegate for setting values of the persistent attribute.- Specified by:
getSetter
in interfacePropertyAccess
- Returns:
- The property setter
-
get
public @Nullable Object get(Object owner)
Description copied from interface:Getter
Get the property value from the given owner instance.
-
getForInsert
public @Nullable Object getForInsert(Object owner, Map mergeMap, SharedSessionContractImplementor session)
Description copied from interface:Getter
Get the property value from the given owner instance.- Specified by:
getForInsert
in 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:Getter
Retrieve the declared Java type class- Specified by:
getReturnTypeClass
in interfaceGetter
- Returns:
- The declared java type class.
-
getReturnType
public Type getReturnType()
Description copied from interface:Getter
Retrieve the declared Java type- Specified by:
getReturnType
in interfaceGetter
- Returns:
- The declared java type.
-
getMember
public @Nullable Member getMember()
Description copied from interface:Getter
Retrieve the member to which this property maps. This might be the field or it might be the getter method.Optional operation (may return
null
)
-
getMethodName
public @Nullable String getMethodName()
Description copied from interface:Getter
Retrieve the getter-method name.Optional operation (may return
null
)- Specified by:
getMethodName
in interfaceGetter
- Specified by:
getMethodName
in interfaceSetter
- Returns:
- The name of the getter method, or
null
.
-
-