Package com.ads.api.beans.mm.helper
Class MappingImportHelper
java.lang.Object
com.ads.api.beans.mm.helper.MappingImportHelper
This class provides some beans control methods related to ImportFileType, ImportType, filePath, mailComments and its details.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe constants of this enumerated type provides a simple classification of the declared elements.static enumThe constants of this enumerated type provides a simple classification of the declared elements. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the filePath from where the sourceFile is imported.Returns the path type of the given file.i.e ABSOLUTE OR RELATIVEReturns the headerString present in the imported file.Returns the fileType of the file imported.Returns the type of import.Returns the mailComments which are specified while importing the file..booleanReturns the value of treatFirstRowAsHeader as True or False.voidsetFilePath(String filePath) Sets the filePath as specified.voidsetFilePathType(APIConstants.FilePathType filePathType) Method sets the path type for the specified file.voidsetHeaderString(String headerString) Sets the headerString as specified.voidsetImportFileType(MappingImportHelper.ImportFileType importFileType) Sets the importFileType as specified.voidsetImportType(MappingImportHelper.ImportType importType) Sets the importType as specified.voidsetMailComments(String mailComments) Sets the mailComments as specified.voidsetTreatFirstRowAsHeader(boolean treateFirstRowAsHeader) Sets the value of treateFirstRowAsHeader as specified.
-
Constructor Details
-
MappingImportHelper
public MappingImportHelper()
-
-
Method Details
-
getFilePathType
Returns the path type of the given file.i.e ABSOLUTE OR RELATIVE- Returns:
- Enum - FilePathType
-
setFilePathType
Method sets the path type for the specified file.- Parameters:
filePathType- - Enum : Valid values are ABSOLUTE/RELATIVE
-
getFilePath
Returns the filePath from where the sourceFile is imported.- Returns:
- String - filePath
-
setFilePath
Sets the filePath as specified.- Parameters:
filePath- String
-
getImportFileType
Returns the fileType of the file imported.
importFileType can be MAPPINGMANAGER_LEGACY_EXCEL, MAPPINGMANAGER_EXCEL, MAPPINGMANAGER_XML, INFORMATICA, DATASTAGE, SSIS_2008.- Returns:
- importFileType
-
setImportFileType
Sets the importFileType as specified.
ImportFileType can be MAPPINGMANAGER_LEGACY_EXCEL, MAPPINGMANAGER_EXCEL, MAPPINGMANAGER_XML, INFORMATICA, DATASTAGE, SSIS_2008.- Parameters:
importFileType- ImportFileType
-
getImportType
Returns the type of import. ImportType can be APPEND_TO_EXISTING, DELETE_AND_RELOAD.- Returns:
- importType
-
setImportType
Sets the importType as specified.- Parameters:
importType- ImportType
-
getMailComments
Returns the mailComments which are specified while importing the file..- Returns:
- String
-
setMailComments
Sets the mailComments as specified.- Parameters:
mailComments- String
-
getHeaderString
Returns the headerString present in the imported file.- Returns:
- String
-
setHeaderString
Sets the headerString as specified.- Parameters:
headerString- String
-
isTreatFirstRowAsHeader
public boolean isTreatFirstRowAsHeader()Returns the value of treatFirstRowAsHeader as True or False.
Enabling this will preselect headers from excel and also will allow to change headers. treatFirstRowAsHeader is applicable for the files with importFileType as MAPPINGMANAGER_LEGACY_EXCEL and MAPPINGMANAGER_EXCEL.- Returns:
- boolean
-
setTreatFirstRowAsHeader
public void setTreatFirstRowAsHeader(boolean treateFirstRowAsHeader) Sets the value of treateFirstRowAsHeader as specified.- Parameters:
treateFirstRowAsHeader- boolean
-