com.agfa.hap.sdo.mapper
Class BeanPropertyAccessor
java.lang.Object
com.agfa.hap.sdo.mapper.BeanPropertyAccessor
- All Implemented Interfaces:
- PropertyAccessor
- Direct Known Subclasses:
- ManyValuedBeanPropertyAccessor
public class BeanPropertyAccessor
- extends java.lang.Object
- implements PropertyAccessor
PropertyAccessor that follows bean conventions (i.e. getX() methods) to get values.
- Author:
- AMOCZ
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BeanPropertyAccessor
public BeanPropertyAccessor()
getValue
public java.lang.Object getValue(java.lang.Object instance,
Property property,
DataMapper dataMapper)
- Specified by:
getValue
in interface PropertyAccessor
setValue
public void setValue(java.lang.Object instance,
Property property,
java.lang.Object newValue,
DataMapper dataMapper)
- Sets the value of this property for the specified Object.
- Specified by:
setValue
in interface PropertyAccessor
- Throws:
java.lang.IllegalArgumentException
setGetter
public void setGetter(java.lang.reflect.Method method)
setSetter
public void setSetter(java.lang.reflect.Method method)
isReadable
public boolean isReadable()
isWritable
public boolean isWritable()
getValues
public java.util.Collection<?> getValues(java.util.Collection<?> instances,
Property property,
SnapshotDefinition def,
DataMapper dataMapper)
- Specified by:
getValues
in interface PropertyAccessor
isBulkAccessor
public boolean isBulkAccessor()
- Specified by:
isBulkAccessor
in interface PropertyAccessor
Copyright © 2007. All Rights Reserved.