java.lang.Object
com.gpudb.TypeObjectMap.FieldHandler
All Implemented Interfaces:
Enclosing class:
public static final class TypeObjectMap.FieldHandler extends Object implements TypeObjectMap.Accessor, TypeObjectMap.Mutator
A combined
TypeObjectMap.Accessor and TypeObjectMap.Mutator that provides access to a specified field using reflection. The field must be public.Constructor Summary
ConstructorsConstructorDescriptionFieldHandler(Field field) Creates aTypeObjectMap.FieldHandlerfor the specified field.Method Summary
Constructor Details
FieldHandler
Creates aTypeObjectMap.FieldHandlerfor the specified field.Parameters:field- the field
Method Details
get
Returns the value of the field specified in the constructor from the specified object. The object must belong to the class containing the field.Specified by:getin interfaceTypeObjectMap.AccessorParameters:o- the objectReturns:the value of the fieldThrows:GPUdbRuntimeException- if the value could not be retrievedset
Sets the value of the field specified in the constructor in the specified object. The object must belong to the class containing the field.Specified by:setin interfaceTypeObjectMap.MutatorParameters:o- the objectvalue- the new value of the fieldThrows:GPUdbRuntimeException- if the value could not be set