Utility methods for mapping logic.
Type Params | Return Type | Name and description |
---|---|---|
|
static java.util.Collection |
createConcreteCollection(java.lang.Class interfaceType) Creates a concrete collection for the supplied interface |
|
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. |
|
static java.lang.Class |
getGenericType(java.lang.Class propertyType) |
|
static java.lang.Class |
getGenericTypeForMapProperty(java.lang.Class javaClass, java.lang.String propertyName, boolean isKeyType) |
|
static java.lang.Class |
getGenericTypeForProperty(java.lang.Class javaClass, java.lang.String propertyName) |
|
static java.lang.String |
getGetterName(java.lang.String propertyName) Calculate the name for a getter method to retrieve the specified property |
|
static java.lang.String |
getSetterName(java.lang.String propertyName) Retrieves the name of a setter for the specified property name |
|
static java.lang.String |
getTargetKey(PersistentProperty property) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), 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