> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kinetica.com/llms.txt
> Use this file to discover all available pages before exploring further.

# TypeObjectMap.MethodHandler

> TypeObjectMap.MethodHandler — Kinetica Java API

<div className="kinetica-javadoc">
  <div className="header">
    <div className="sub-title"><span className="package-label-in-type">Package</span> <a href="/content/api/java/com/gpudb/package-summary">com.gpudb</a></div>
    <h1 title="Class TypeObjectMap.MethodHandler" className="title">Class TypeObjectMap.MethodHandler</h1>
  </div>

  <div className="inheritance" title="Inheritance Tree">
    <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" className="external-link">java.lang.Object</a>
    <div className="inheritance">com.gpudb.TypeObjectMap.MethodHandler</div>
  </div>

  <div className="section class-description" id="class-description">
    <div className="dl notes">
      <div className="dt">All Implemented Interfaces:</div>
      <div className="dd"><code><a href="/content/api/java/com/gpudb/TypeObjectMap.Accessor" title="interface in com.gpudb">TypeObjectMap.Accessor</a></code>, <code><a href="/content/api/java/com/gpudb/TypeObjectMap.Mutator" title="interface in com.gpudb">TypeObjectMap.Mutator</a></code></div>
    </div>

    <div className="dl notes">
      <div className="dt">Enclosing class:</div>
      <div className="dd"><code><a href="/content/api/java/com/gpudb/TypeObjectMap" title="class in com.gpudb">TypeObjectMap</a>\<<a href="/content/api/java/com/gpudb/TypeObjectMap" title="type parameter in TypeObjectMap">T</a>></code></div>
    </div>

    <hr />

    <div className="type-signature"><span className="modifiers">public static final class </span><span className="element-name type-name-label">TypeObjectMap.MethodHandler</span> <span className="extends-implements">extends <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" className="external-link">Object</a> implements <a href="/content/api/java/com/gpudb/TypeObjectMap.Accessor" title="interface in com.gpudb">TypeObjectMap.Accessor</a>, <a href="/content/api/java/com/gpudb/TypeObjectMap.Mutator" title="interface in com.gpudb">TypeObjectMap.Mutator</a></span></div>
    <div className="block">A combined <a href="/content/api/java/com/gpudb/TypeObjectMap.Accessor" title="interface in com.gpudb"><code>TypeObjectMap.Accessor</code></a> and <a href="/content/api/java/com/gpudb/TypeObjectMap.Mutator" title="interface in com.gpudb"><code>TypeObjectMap.Mutator</code></a> that provides access to a field via specified get and set methods using reflection. The get method must be public and take no parameters, and the set method must be public and take one parameter of the same type returned by the get method.</div>
  </div>

  <div className="section summary">
    <ul className="summary-list">
      <li>
        <div className="section constructor-summary" id="constructor-summary">
          <h2>Constructor Summary</h2>
          <div className="caption"><span>Constructors</span></div>

          <div className="summary-table two-column-summary">
            <div className="table-header col-first">Constructor</div>
            <div className="table-header col-last">Description</div>
            <div className="col-constructor-name even-row-color"><code><a href="#%3Cinit%3E(java.lang.reflect.Method,java.lang.reflect.Method)" className="member-name-link">MethodHandler</a><wbr />(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/reflect/Method.html" title="class or interface in java.lang.reflect" className="external-link">Method</a> getMethod, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/reflect/Method.html" title="class or interface in java.lang.reflect" className="external-link">Method</a> setMethod)</code></div>

            <div className="col-last even-row-color">
              <div className="block">Creates a <a href="/content/api/java/com/gpudb/TypeObjectMap.MethodHandler" title="class in com.gpudb"><code>TypeObjectMap.MethodHandler</code></a> for the specified get and set methods.</div>
            </div>
          </div>
        </div>
      </li>

      <li>
        <div className="section method-summary" id="method-summary">
          <h2>Method Summary</h2>

          <div id="method-summary-table">
            <div className="table-tabs" role="tablist" aria-orientation="horizontal"><button id="method-summary-table-tab0" role="tab" aria-selected="true" aria-controls="method-summary-table.tabpanel" tabIndex="0" className="active-table-tab">All Methods</button><button id="method-summary-table-tab2" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabIndex="-1" className="table-tab">Instance Methods</button><button id="method-summary-table-tab4" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabIndex="-1" className="table-tab">Concrete Methods</button></div>

            <div id="method-summary-table.tabpanel" role="tabpanel" aria-labelledby="method-summary-table-tab0">
              <div className="summary-table three-column-summary">
                <div className="table-header col-first">Modifier and Type</div>
                <div className="table-header col-second">Method</div>
                <div className="table-header col-last">Description</div>
                <div className="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" className="external-link">Object</a></code></div>
                <div className="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#get(java.lang.Object)" className="member-name-link">get</a><wbr />(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" className="external-link">Object</a> o)</code></div>

                <div className="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
                  <div className="block">Returns a value from the specified object via the get method specified in the constructor.</div>
                </div>

                <div className="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>void</code></div>
                <div className="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#set(java.lang.Object,java.lang.Object)" className="member-name-link">set</a><wbr />(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" className="external-link">Object</a> o, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" className="external-link">Object</a> value)</code></div>

                <div className="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
                  <div className="block">Sets a value in the specified object via the set method specified in the constructor.</div>
                </div>
              </div>
            </div>
          </div>

          <div className="inherited-list">
            <h3 id="methods-inherited-from-class-java.lang.Object">Methods inherited from class java.lang.<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" className="external-link">Object</a></h3>
            <code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html#clone()" title="class or interface in java.lang" className="external-link">clone</a>, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang" className="external-link">equals</a>, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html#finalize()" title="class or interface in java.lang" className="external-link">finalize</a>, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html#getClass()" title="class or interface in java.lang" className="external-link">getClass</a>, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html#hashCode()" title="class or interface in java.lang" className="external-link">hashCode</a>, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html#notify()" title="class or interface in java.lang" className="external-link">notify</a>, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html#notifyAll()" title="class or interface in java.lang" className="external-link">notifyAll</a>, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html#toString()" title="class or interface in java.lang" className="external-link">toString</a>, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html#wait()" title="class or interface in java.lang" className="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html#wait(long)" title="class or interface in java.lang" className="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html#wait(long,int)" title="class or interface in java.lang" className="external-link">wait</a></code>
          </div>
        </div>
      </li>
    </ul>
  </div>

  <div className="section details">
    <ul className="details-list">
      <li>
        <div className="section constructor-details" id="constructor-detail">
          <h2>Constructor Details</h2>

          <ul className="member-list">
            <li>
              <div className="section detail" id="<init>(java.lang.reflect.Method,java.lang.reflect.Method)">
                <h3>MethodHandler</h3>
                <div className="member-signature"><span className="modifiers">public</span> <span className="element-name">MethodHandler</span><wbr /><span className="parameters">(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/reflect/Method.html" title="class or interface in java.lang.reflect" className="external-link">Method</a> getMethod, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/reflect/Method.html" title="class or interface in java.lang.reflect" className="external-link">Method</a> setMethod)</span></div>
                <div className="block">Creates a <a href="/content/api/java/com/gpudb/TypeObjectMap.MethodHandler" title="class in com.gpudb"><code>TypeObjectMap.MethodHandler</code></a> for the specified get and set methods. The get method must be public and take no parameters, and the set method must be public and take one parameter of the same type returned by the get method.</div>

                <div className="dl notes">
                  <div className="dt">Parameters:</div>
                  <div className="dd"><code>getMethod</code> - the get method</div>
                  <div className="dd"><code>setMethod</code> - the set method</div>
                  <div className="dt">Throws:</div>
                  <div className="dd"><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" className="external-link">IllegalArgumentException</a></code> - if the specified methods are not of the correct form</div>
                </div>
              </div>
            </li>
          </ul>
        </div>
      </li>

      <li>
        <div className="section method-details" id="method-detail">
          <h2>Method Details</h2>

          <ul className="member-list">
            <li>
              <div className="section detail" id="get(java.lang.Object)">
                <h3>get</h3>
                <div className="member-signature"><span className="modifiers">public</span> <span className="return-type"><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" className="external-link">Object</a></span> <span className="element-name">get</span><wbr /><span className="parameters">(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" className="external-link">Object</a> o)</span></div>
                <div className="block">Returns a value from the specified object via the get method specified in the constructor. The object must belong to the class containing the method.</div>

                <div className="dl notes">
                  <div className="dt">Specified by:</div>
                  <div className="dd"><code><a href="/content/api/java/com/gpudb/TypeObjectMap.Accessor#get(java.lang.Object)">get</a></code> in interface <code><a href="/content/api/java/com/gpudb/TypeObjectMap.Accessor" title="interface in com.gpudb">TypeObjectMap.Accessor</a></code></div>
                  <div className="dt">Parameters:</div>
                  <div className="dd"><code>o</code> - the object</div>
                  <div className="dt">Returns:</div>
                  <div className="dd">the value returned by the get method</div>
                  <div className="dt">Throws:</div>
                  <div className="dd"><code><a href="/content/api/java/com/gpudb/GPUdbRuntimeException" title="class in com.gpudb">GPUdbRuntimeException</a></code> - if the value could not be retrieved</div>
                </div>
              </div>
            </li>

            <li>
              <div className="section detail" id="set(java.lang.Object,java.lang.Object)">
                <h3>set</h3>
                <div className="member-signature"><span className="modifiers">public</span> <span className="return-type">void</span> <span className="element-name">set</span><wbr /><span className="parameters">(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" className="external-link">Object</a> o, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" className="external-link">Object</a> value)</span></div>
                <div className="block">Sets a value in the specified object via the set method specified in the constructor. The object must belong to the class containing the method.</div>

                <div className="dl notes">
                  <div className="dt">Specified by:</div>
                  <div className="dd"><code><a href="/content/api/java/com/gpudb/TypeObjectMap.Mutator#set(java.lang.Object,java.lang.Object)">set</a></code> in interface <code><a href="/content/api/java/com/gpudb/TypeObjectMap.Mutator" title="interface in com.gpudb">TypeObjectMap.Mutator</a></code></div>
                  <div className="dt">Parameters:</div>
                  <div className="dd"><code>o</code> - the object</div>
                  <div className="dd"><code>value</code> - the new value of the field</div>
                  <div className="dt">Throws:</div>
                  <div className="dd"><code><a href="/content/api/java/com/gpudb/GPUdbRuntimeException" title="class in com.gpudb">GPUdbRuntimeException</a></code> - if the value could not be set</div>
                </div>
              </div>
            </li>
          </ul>
        </div>
      </li>
    </ul>
  </div>
</div>
