private class ColumnMapping.MethodMapping extends AbstractColumnMapping<MethodDescriptor>
mapping, prefix| Constructor and Description |
|---|
MethodMapping(java.lang.String prefix,
ColumnMapping.MethodMapping parent) |
| Modifier and Type | Method and Description |
|---|---|
(package private) MethodDescriptor |
findKey(java.lang.String nameWithPrefix)
Locates a given key based on an attribute or method name.
|
(package private) java.lang.String |
getKeyPrefix(java.lang.String prefix,
MethodDescriptor key)
Returns the prefix of a given key, i.e.
|
(package private) MethodDescriptor |
prefixKey(java.lang.String prefix,
MethodDescriptor key)
Transforms the key so it can work with the given prefix.
|
clone, extractPrefixes, isMapped, mapToColumn, mapToColumnIndex, mapToColumnIndexes, mapToColumnName, mapToColumnNames, mapToColumns, remove, updateFieldMappingpublic MethodMapping(java.lang.String prefix,
ColumnMapping.MethodMapping parent)
MethodDescriptor prefixKey(java.lang.String prefix, MethodDescriptor key)
AbstractColumnMappingprefixKey in class AbstractColumnMapping<MethodDescriptor>prefix - the current object nesting level, denoted by a dot-separated string of nested attribute names.key - the key to transform.null if the key can't be used with the given prefixjava.lang.String getKeyPrefix(java.lang.String prefix,
MethodDescriptor key)
AbstractColumnMappinggetKeyPrefix in class AbstractColumnMapping<MethodDescriptor>prefix - the current prefix - a dot separated string with nested attribute nameskey - the attribute name or method definition. If its own prefix starts with the given prefix, the next element after the dot will be returned (if any)MethodDescriptor findKey(java.lang.String nameWithPrefix)
AbstractColumnMappingfindKey in class AbstractColumnMapping<MethodDescriptor>nameWithPrefix - name of the attribute or method, prefixed with nested object names that identify the path to the target class member.