Package org.synchronoss.cpo.core.meta
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 pairD- the datastore-specific class (e.g.ResultSet,Row) that declares the getter/setter methods
- All Implemented Interfaces:
Serializable,Cloneable
MethodMapEntry is a class defines the getters and setters for JDBC specific data classes
- Author:
- david berry
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe basic (default) method type: a plain getter/setter pair with no special handling. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets 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.intGets the method type of this entry.Gets the getter method used to read the value from the datastore.
-
Field Details
-
METHOD_TYPE_BASIC
public static final int METHOD_TYPE_BASICThe 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 ofjavaClassto and from a datastore-specific class.- Parameters:
methodType- the method type, e.g.METHOD_TYPE_BASICjavaClass- the Java type moved by this entrydatasourceMethodClass- the datastore-specific class declaring the getter/setterrsGetter- the getter method (e.g. aResultSetgetter) used to read the valuebsSetter- the setter method (e.g. aPreparedStatementsetter) used to write the value
-
-
Method Details
-
getJavaClass
Gets the Java type moved by this entry's getter/setter pair.- Returns:
- the mapped Java class
-
getJavaSqlMethodClass
Gets the datastore-specific class that declares the getter/setter methods.- Returns:
- the datastore-specific method-declaring class
-
getRsGetter
Gets the getter method used to read the value from the datastore.- Returns:
- the getter 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
-