public class ColumnToAttrMapping
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttrName()
Getter method for the attribute name.
|
java.lang.String |
getColumnName()
Getter method for the name of the column in the RDBMS
|
int |
getColumnPosition()
Getter method for the column position.
|
java.lang.Class<?> |
getDTClass()
Getter method for the Class that defines the type of the attribute (e.g., Integer, Double, String, etc)
|
static ColumnToAttrMapping |
getInstance(java.lang.String attrName, java.lang.Class<?> dtClass)
Gets a new instance of ColumnToAttrMapping with the specified parameters.
|
static ColumnToAttrMapping |
getInstance(java.lang.String attrName, java.lang.Class<?> dtClass, int columnPosition)
Gets a new instance of ColumnToAttrMapping with the specified parameters.
|
static ColumnToAttrMapping |
getInstance(java.lang.String columnName, java.lang.String attrName)
Gets a new instance of ColumnToAttrMapping with the specified parameters.
|
static ColumnToAttrMapping |
getInstance(java.lang.String columnName, java.lang.String attrName, java.lang.Class<?> dtClass)
Gets a new instance of ColumnToAttrMapping with the specified parameters.
|
public java.lang.String getAttrName()
public java.lang.String getColumnName()
public int getColumnPosition()
public java.lang.Class<?> getDTClass()
public static ColumnToAttrMapping getInstance(java.lang.String attrName, java.lang.Class<?> dtClass)
attrName
- Name of the attribute (the key of the Key/Value pair)dtClass
- Class that defines the type of the attribute (e.g., Integer, Double, String, etc)public static ColumnToAttrMapping getInstance(java.lang.String attrName, java.lang.Class<?> dtClass, int columnPosition)
attrName
- Name of the attribute (the key of the Key/Value pair)dtClass
- Class that defines the type of the attribute (e.g., Integer, Double, String, etc)columnPosition
- Ordered position of the column in the CSV filepublic static ColumnToAttrMapping getInstance(java.lang.String columnName, java.lang.String attrName)
columnName
- Name of the column in the RDBMSattrName
- Name of the attribute the column representspublic static ColumnToAttrMapping getInstance(java.lang.String columnName, java.lang.String attrName, java.lang.Class<?> dtClass)
columnName
- Name of the column in the RDBMSattrName
- Name of the attribute the column representsdtClass
- Class that defines the type of the attribute (e.g., Integer, Double, String, etc)Copyright © 2017, 2018 Oracle and/or its affiliates. All Rights Reserved.