private class ColumnMapping.NameMapping extends AbstractColumnMapping<java.lang.String>
mapping, prefix
Constructor and Description |
---|
NameMapping(java.lang.String prefix,
ColumnMapping.NameMapping parent) |
Modifier and Type | Method and Description |
---|---|
(package private) java.lang.String |
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,
java.lang.String key)
Returns the prefix of a given key, i.e.
|
(package private) java.lang.String |
prefixKey(java.lang.String prefix,
java.lang.String key)
Transforms the key so it can work with the given prefix.
|
clone, extractPrefixes, isMapped, mapToColumn, mapToColumnIndex, mapToColumnIndexes, mapToColumnName, mapToColumnNames, mapToColumns, remove, updateFieldMapping
public NameMapping(java.lang.String prefix, ColumnMapping.NameMapping parent)
java.lang.String prefixKey(java.lang.String prefix, java.lang.String key)
AbstractColumnMapping
prefixKey
in class AbstractColumnMapping<java.lang.String>
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, java.lang.String key)
AbstractColumnMapping
getKeyPrefix
in class AbstractColumnMapping<java.lang.String>
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)java.lang.String findKey(java.lang.String nameWithPrefix)
AbstractColumnMapping
findKey
in class AbstractColumnMapping<java.lang.String>
nameWithPrefix
- name of the attribute or method, prefixed with nested object names that identify the path to the target class member.