@groovy.transform.Trait @groovy.util.logging.Slf4j trait BeanMapper extends java.lang.Object
Type Params | Return Type | Name and description |
---|---|---|
<T> |
T |
mapToBean(java.lang.Class<T> type, java.util.Map<java.lang.String, java.lang.Object> row) Creates an instance of T filled with the data from a database query. |
|
java.lang.String |
toCamelCase(java.lang.String str) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), 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 an instance of T filled with the data from a database query.
type
- The Bean typerow
- Data retrieved from the database
Converts a snake_case String to camelCase. If there is a camel case pattern anywhere in the input string, the input string is returned as is.
At the very least, the input string is converted to lower case.
str
- The input string.