Skip to main content
Package com.gpudb

Class TypeObjectMap.FieldHandler

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 Details

  • Method Details

    • get

      public Object get(Object o)
      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:
      Parameters:
      o - the object
      Returns:
      the value of the field
      Throws:
      GPUdbRuntimeException - if the value could not be retrieved
    • set

      public void set(Object o, Object value)
      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:
      set in interface TypeObjectMap.Mutator
      Parameters:
      o - the object
      value - the new value of the field
      Throws:
      GPUdbRuntimeException - if the value could not be set