Package net.sf.basedb.core
Class ExtendedPropertyAccessor.GetterSetter
java.lang.Object
net.sf.basedb.core.ExtendedPropertyAccessor.GetterSetter
- All Implemented Interfaces:
Serializable
,Getter
,PropertyAccess
,Setter
- Enclosing class:
- ExtendedPropertyAccessor
static final class ExtendedPropertyAccessor.GetterSetter
extends Object
implements PropertyAccess, Getter, Setter
This class implements the Hibernate
Getter
and
Setter
interfaces. For each property of
an Extendable
item there exist one Getter
and Setter
object.-
Field Summary
Modifier and TypeFieldDescriptionprivate final Class<?>
private final String
private static final long
private final PropertyAccessStrategy
-
Constructor Summary
ConstructorDescriptionGetterSetter
(PropertyAccessStrategy strategy, Class<?> clazz, String property) Create a new getter or setter. -
Method Summary
Modifier and TypeMethodDescriptionGet the value of the extended property.getForInsert
(Object target, Map mergeMap, SharedSessionContractImplementor session) Get the value of the extended property.Always return null.Always return null.Always return null.Always return null.void
set
(Object target, Object value, SessionFactoryImplementor factory) Set the value of the extended property.
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
strategy
-
clazz
-
property
-
-
Constructor Details
-
GetterSetter
GetterSetter(PropertyAccessStrategy strategy, Class<?> clazz, String property) Create a new getter or setter.- Parameters:
clazz
- TheClass
of the itemproperty
- The name of the extended property
-
-
Method Details
-
getPropertyAccessStrategy
- Specified by:
getPropertyAccessStrategy
in interfacePropertyAccess
-
getGetter
- Specified by:
getGetter
in interfacePropertyAccess
-
getSetter
- Specified by:
getSetter
in interfacePropertyAccess
-
get
Get the value of the extended property.- Specified by:
get
in interfaceGetter
- Parameters:
target
- TheExtendableData
that holds the value- Throws:
ClassCastException
- If the target is notExtendableData
-
set
Set the value of the extended property.- Specified by:
set
in interfaceSetter
- Parameters:
target
- TheExtendable
that holds the valuevalue
- The new valuefactory
- The session factory from which this request originated.- Throws:
ClassCastException
- If the target is notExtendableData
-
getMember
Always return null. -
getReturnType
Always return null.- Specified by:
getReturnType
in interfaceGetter
-
getMethodName
Always return null.- Specified by:
getMethodName
in interfaceGetter
- Specified by:
getMethodName
in interfaceSetter
-
getMethod
Always return null.
-