@java.lang.SuppressWarnings({"rawtypes", "unchecked"}) public class MappingUtils extends java.lang.Object
Utility methods for mapping logic.
Type Params | Return Type | Name and description |
---|---|---|
|
public static java.util.Collection |
createConcreteCollection(java.lang.Class interfaceType) Creates a concrete collection for the supplied interface |
|
public static java.lang.reflect.Field |
getDeclaredField(java.lang.Class javaClass, java.lang.String propertyName) Get a declared field, searching super classes for the field if it is not found in the class. |
|
public static java.lang.Class |
getGenericType(java.lang.Class propertyType) |
|
public static java.lang.Class |
getGenericTypeForMapProperty(java.lang.Class javaClass, java.lang.String propertyName, boolean isKeyType) |
|
public static java.lang.Class |
getGenericTypeForProperty(java.lang.Class javaClass, java.lang.String propertyName) |
|
public static java.lang.String |
getGetterName(java.lang.String propertyName) Calculate the name for a getter method to retrieve the specified property |
|
public static java.lang.String |
getSetterName(java.lang.String propertyName) Retrieves the name of a setter for the specified property name |
|
public static java.lang.String |
getTargetKey(PersistentProperty property) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Creates a concrete collection for the supplied interface
interfaceType
- The interfaceGet a declared field, searching super classes for the field if it is not found in the class.
javaClass
- The class to search.propertyName
- The name of the field.Calculate the name for a getter method to retrieve the specified property
Retrieves the name of a setter for the specified property name
propertyName
- The property name