Class MethodMapEntry<J,D>

java.lang.Object
org.synchronoss.cpo.core.meta.MethodMapEntry<J,D>
Type Parameters:
J - the Java type moved by this entry's getter/setter pair
D - the datastore-specific class (e.g. ResultSet, Row) that declares the getter/setter methods
All Implemented Interfaces:
Serializable, Cloneable
Direct Known Subclasses:
CassandraMethodMapEntry, JdbcMethodMapEntry

public class MethodMapEntry<J,D> extends Object implements Serializable, Cloneable
MethodMapEntry is a class defines the getters and setters for JDBC specific data classes
Author:
david berry
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    The basic (default) method type: a plain getter/setter pair with no special handling.
  • Constructor Summary

    Constructors
    Constructor
    Description
    MethodMapEntry(int methodType, Class<J> javaClass, Class<D> datasourceMethodClass, Method rsGetter, Method bsSetter)
    Creates an entry describing the getter/setter pair used to move values of javaClass to and from a datastore-specific class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the setter method used to write the value to the datastore.
    Gets the Java type moved by this entry's getter/setter pair.
    Gets the datastore-specific class that declares the getter/setter methods.
    int
    Gets the method type of this entry.
    Gets the getter method used to read the value from the datastore.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • METHOD_TYPE_BASIC

      public static final int METHOD_TYPE_BASIC
      The basic (default) method type: a plain getter/setter pair with no special handling.
      See Also:
  • Constructor Details

    • MethodMapEntry

      public MethodMapEntry(int methodType, Class<J> javaClass, Class<D> datasourceMethodClass, Method rsGetter, Method bsSetter)
      Creates an entry describing the getter/setter pair used to move values of javaClass to and from a datastore-specific class.
      Parameters:
      methodType - the method type, e.g. METHOD_TYPE_BASIC
      javaClass - the Java type moved by this entry
      datasourceMethodClass - the datastore-specific class declaring the getter/setter
      rsGetter - the getter method (e.g. a ResultSet getter) used to read the value
      bsSetter - the setter method (e.g. a PreparedStatement setter) used to write the value
  • Method Details

    • getJavaClass

      public Class<J> getJavaClass()
      Gets the Java type moved by this entry's getter/setter pair.
      Returns:
      the mapped Java class
    • getJavaSqlMethodClass

      public Class<D> getJavaSqlMethodClass()
      Gets the datastore-specific class that declares the getter/setter methods.
      Returns:
      the datastore-specific method-declaring class
    • getRsGetter

      public Method getRsGetter()
      Gets the getter method used to read the value from the datastore.
      Returns:
      the getter method
    • getBsSetter

      public Method getBsSetter()
      Gets the setter method used to write the value to the datastore.
      Returns:
      the setter method
    • getMethodType

      public int getMethodType()
      Gets the method type of this entry.
      Returns:
      the method type, e.g. METHOD_TYPE_BASIC