Class QIndexBasedFieldMapping
java.lang.Object
com.kingsrook.qqq.backend.core.model.actions.shared.mapping.AbstractQFieldMapping<Integer>
com.kingsrook.qqq.backend.core.model.actions.shared.mapping.QIndexBasedFieldMapping
Field Mapping implementation that uses Integer keys (e.g., from a CSV file
WITHOUT a header row).
Note: 1-based index!!
-
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, Integer key) Add a single mapping to this mapping object.getFieldSource
(String fieldName) Get the field source (e.g., integer index of a CSV column) corresponding to a propery qqq table fieldName.Getter for mappingTell framework what kind of keys this mapping class uses (INDEX)void
setMapping
(Map<String, Integer> mapping) Setter for mappingwithMapping
(String fieldName, Integer key) Fluently add a single mapping to this mapping object.
-
Constructor Details
-
QIndexBasedFieldMapping
public QIndexBasedFieldMapping()
-
-
Method Details
-
getFieldSource
Get the field source (e.g., integer index of a CSV column) corresponding to a propery qqq table fieldName.- Specified by:
getFieldSource
in classAbstractQFieldMapping<Integer>
-
getSourceType
Tell framework what kind of keys this mapping class uses (INDEX)- Specified by:
getSourceType
in classAbstractQFieldMapping<Integer>
-
addMapping
-
withMapping
Fluently add a single mapping to this mapping object. fieldName = qqq metaData fieldName, key = field index (integer) in the CSV -
getMapping
-
setMapping
-