Class QKeyBasedFieldMapping
java.lang.Object
com.kingsrook.qqq.backend.core.model.actions.shared.mapping.AbstractQFieldMapping<String>
com.kingsrook.qqq.backend.core.model.actions.shared.mapping.QKeyBasedFieldMapping
Field Mapping implementation that uses string keys (e.g., from a CSV file
with a header row, or from one JSON object to the proper qqq field names)
-
Nested Class Summary
Nested classes/interfaces inherited from class com.kingsrook.qqq.backend.core.model.actions.shared.mapping.AbstractQFieldMapping
AbstractQFieldMapping.SourceType
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addMapping
(String fieldName, String key) Add a single mapping to this mapping object.getFieldSource
(String fieldName) Get the source field (e.g., name that's in the CSV header or the input json object) corresponding to a proper qqq table fieldName.Getter for mappingTell framework what kind of keys this mapping class uses (KEY)void
setMapping
(Map<String, String> mapping) Setter for mappingwithMapping
(String fieldName, String key) Fluently add a single mapping to this mapping object.
-
Constructor Details
-
QKeyBasedFieldMapping
public QKeyBasedFieldMapping()
-
-
Method Details
-
getFieldSource
Get the source field (e.g., name that's in the CSV header or the input json object) corresponding to a proper qqq table fieldName.- Specified by:
getFieldSource
in classAbstractQFieldMapping<String>
-
getSourceType
Tell framework what kind of keys this mapping class uses (KEY)- Specified by:
getSourceType
in classAbstractQFieldMapping<String>
-
addMapping
-
withMapping
Fluently add a single mapping to this mapping object. fieldName = qqq metaData fieldName, key = field name in the CSV or source-json, for example. -
getMapping
-
setMapping
-