T - - Type of object that is being processed.public class ColumnPositionMappingStrategy<T> extends HeaderColumnNameMappingStrategy<T>
annotationDriven, descriptorMap, determinedIfAnnotationDriven, fieldMap, header, indexLookup, type| Constructor and Description |
|---|
ColumnPositionMappingStrategy()
Default Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
captureHeader(CSVReader reader)
Captures the header from the reader - required by the MappingStrategy interface and is a do
nothing method for the ColumnPositionMappingStrategy.
|
Integer |
getColumnIndex(String name)
gets the column position for a given column name.
|
String[] |
getColumnMapping()
Retrieves the column mappings.
|
String |
getColumnName(int col)
gets a column name.
|
void |
setColumnMapping(String... columnMapping)
Setter for the ColumnMappings.
|
createBean, createIndexLookup, findDescriptor, findDescriptor, findField, findField, getType, isAnnotationDriven, loadDescriptorMap, loadFieldMap, matches, resetIndexMap, setTypepublic ColumnPositionMappingStrategy()
public void captureHeader(CSVReader reader) throws IOException
captureHeader in interface MappingStrategy<T>captureHeader in class HeaderColumnNameMappingStrategy<T>reader - - CSVReader.IOException - - would be thrown by the CSVReader if it was used :)public Integer getColumnIndex(String name)
getColumnIndex in interface MappingStrategy<T>getColumnIndex in class HeaderColumnNameMappingStrategy<T>name - the column namepublic String getColumnName(int col)
getColumnName in class HeaderColumnNameMappingStrategy<T>col - - position of the column.public String[] getColumnMapping()
public void setColumnMapping(String... columnMapping)
columnMapping - - column names to be mapped.Copyright © 2018 Liquibase.org. All rights reserved.