static final class ExtendedPropertyAccessor.GetterSetter extends Object implements Getter, Setter
Getter
and
Setter
interfaces. For each property of
an Extendable
item there exist one Getter
and Setter
object.Modifier and Type | Field and Description |
---|---|
private Class<?> |
clazz |
private String |
property |
private static long |
serialVersionUID |
Modifier | Constructor and Description |
---|---|
private |
GetterSetter(Class<?> clazz,
String property)
Create a new getter or setter.
|
Modifier and Type | Method and Description |
---|---|
Object |
get(Object target)
Get the value of the extended property.
|
Object |
getForInsert(Object target,
Map mergeMap,
SessionImplementor session)
Get the value of the extended property.
|
Member |
getMember()
Always return null.
|
Method |
getMethod()
Always return null.
|
String |
getMethodName()
Always return null.
|
Class |
getReturnType()
Always return null.
|
void |
set(Object target,
Object value,
SessionFactoryImplementor factory)
Set the value of the extended property.
|
private static final long serialVersionUID
private final Class<?> clazz
private final String property
public Object get(Object target)
get
in interface Getter
target
- The ExtendableData
that holds the valueClassCastException
- If the target is not
ExtendableData
public Object getForInsert(Object target, Map mergeMap, SessionImplementor session)
getForInsert
in interface Getter
target
- The ExtendableData
that holds the valuemergeMap
- A map of merged persistent instances to detached instances, whatever
that means...session
- The session from which this request originated.ClassCastException
- If the target is not
ExtendableData
public void set(Object target, Object value, SessionFactoryImplementor factory)
set
in interface Setter
target
- The Extendable
that holds the valuevalue
- The new valuefactory
- The session factory from which this request originated.ClassCastException
- If the target is not
ExtendableData
public Class getReturnType()
getReturnType
in interface Getter
public String getMethodName()
getMethodName
in interface Getter
getMethodName
in interface Setter