ColumnMapper
| Modifier and Type | Field and Description |
|---|---|
| pack-priv Map | |
| pack-priv final String |
| Access | Constructor and Description |
|---|---|
| pack-priv | AbstractColumnMapping(String
a dot separated sequence of names that represents the nesting of complex attributes inside a class (e.g customer.contact.phone). prefix, AbstractColumnMapping<K> the parent mapping of columns, relevant only when nested objects' attributes or methods are being mapped. parent)Creates a mapping with a prefix. |
| Modifier and Type | Method and Description |
|---|---|
| public AbstractColumnMapping | Returns: the duplicate of this object.Overrides java. |
| pack-priv void | extractPrefixes(Set<String>
the set of prefixes to populate. out)Returns all prefixes used by the keys in this mapping. |
| pack-priv abstract K | |
| pack-priv abstract String | Returns: the name of the next nested object relative to the current prefix.the current prefix - a dot separated string with nested attribute names prefix, K 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) key)Returns the prefix of a given key, i.e. the current nested object that is being targeted. |
| private Object | |
| pack-priv boolean | Returns: true if the key is mapped.the attribute or method name/descriptor key)Tests whether a given attribute or method is mapped to a column |
| pack-priv void | mapToColumn(K
attribute/method name or specific method definition with parameter and return type key, Enum<?> enumeration representing the column associated with the given key column)Maps a attribute or method to a column name |
| pack-priv void | mapToColumnIndex(K
attribute/method name or specific method definition with parameter and return type key, int number representing the position of the column associated with the given key columnIndex)Maps a attribute or method to a column name |
| pack-priv void | mapToColumnIndexes(Map<K, Integer>
the mappings to be added mappings)Maps multiple attributes or methods to multiple column names |
| pack-priv void | mapToColumnName(K
attribute/method name or specific method definition with parameter and return type key, String name of column associated with the given key columnName)Maps a attribute or method to a column name |
| pack-priv void | mapToColumnNames(Map<K, String>
the mappings to be added mappings)Maps multiple attributes or methods to multiple column names |
| pack-priv void | mapToColumns(Map<K, Enum<?>>
the mappings to be added mappings)Maps multiple attributes or methods to multiple column names |
| pack-priv abstract K | |
| pack-priv void | |
| pack-priv boolean | Returns: true if the mapping has been successfully updated.a class member that has should be mapped to a column fieldMapping, K the attribute name or method specification that matches with the given field. key)Updates the mapping of a attribute/method so a mapped class member can target a user provided column. |
| mapping | back to summary |
|---|---|
| pack-priv Map<K, Object> mapping | |
| prefix | back to summary |
|---|---|
| pack-priv final String prefix | |
| AbstractColumnMapping | back to summary |
|---|---|
| pack-priv AbstractColumnMapping(String prefix, AbstractColumnMapping<K> parent) Creates a mapping with a prefix.
| |
| clone | back to summary |
|---|---|
| public AbstractColumnMapping Overrides java. Creates a deep copy of this mapping that is independent from the original.
| |
| extractPrefixes | back to summary |
|---|---|
| pack-priv void extractPrefixes(Set<String> out) Returns all prefixes used by the keys in this mapping. These represent names of nested objects that will be navigated through to access their attributes/methods. | |
| findKey | back to summary |
|---|---|
| pack-priv abstract K findKey(String nameWithPrefix) Locates a given key based on an attribute or method name.
| |
| getKeyPrefix | back to summary |
|---|---|
| pack-priv abstract String getKeyPrefix(String prefix, K key) Returns the prefix of a given key, i.e. the current nested object that is being targeted.
| |
| getMappedColumn | back to summary |
|---|---|
| private Object getMappedColumn(K key) | |
| isMapped | back to summary |
|---|---|
| pack-priv boolean isMapped(K key) Tests whether a given attribute or method is mapped to a column
| |
| mapToColumn | back to summary |
|---|---|
| pack-priv void mapToColumn(K key, Enum<?> column) Maps a attribute or method to a column name
| |
| mapToColumnIndex | back to summary |
|---|---|
| pack-priv void mapToColumnIndex(K key, int columnIndex) Maps a attribute or method to a column name
| |
| mapToColumnIndexes | back to summary |
|---|---|
| pack-priv void mapToColumnIndexes(Map<K, Integer> mappings) Maps multiple attributes or methods to multiple column names | |
| mapToColumnName | back to summary |
|---|---|
| pack-priv void mapToColumnName(K key, String columnName) Maps a attribute or method to a column name
| |
| mapToColumnNames | back to summary |
|---|---|
| pack-priv void mapToColumnNames(Map<K, String> mappings) Maps multiple attributes or methods to multiple column names | |
| mapToColumns | back to summary |
|---|---|
| pack-priv void mapToColumns(Map<K, Enum<?>> mappings) Maps multiple attributes or methods to multiple column names | |
| prefixKey | back to summary |
|---|---|
| pack-priv abstract K prefixKey(String prefix, K key) Transforms the key so it can work with the given prefix.
| |
| remove | back to summary |
|---|---|
| pack-priv void remove(String nameWithPrefix) Removes any mappings containing keys that have a given attribute or method name.
| |
| updateFieldMapping | back to summary |
|---|---|
| pack-priv boolean updateFieldMapping(FieldMapping fieldMapping, K key) Updates the mapping of a attribute/method so a mapped class member can target a user provided column.
| |