public class ErrorExtractor
extends java.lang.Object
Constructor and Description |
---|
ErrorExtractor() |
Modifier and Type | Method and Description |
---|---|
static void |
addToMasterDoc(org.jdom.Document masterDoc,
org.jdom.Element element,
java.lang.String mosName,
java.lang.String operation)
Add a transaction element to a master document.
|
static void |
deleteErrorFiles(java.lang.String extractFileID,
java.lang.String extSysName,
java.lang.String esName,
java.sql.Connection connection)
Delete error files related to Extract File ID.
|
static java.lang.String |
extractData(java.lang.String extractFileID,
java.lang.String extSysName,
java.lang.String esName,
java.lang.String fileFormat,
java.lang.String sourceFile,
java.lang.String delimiter,
java.lang.String textQualifier,
java.lang.String fileAttributes,
java.util.Date importDate)
Retrieve transactions in error related to a Extract File ID and write them
to a single output file so user can edit and reprocess them.
|
static java.lang.String |
mergeFiles(java.util.List<java.lang.String> tempFiles,
java.lang.String extSysName,
java.lang.String fileFormat,
java.lang.String sourceFile,
java.util.Date importDate,
java.lang.String mosName,
java.lang.String operation)
Merge all temporary files in to a single export file.
|
static java.lang.String |
writeExtractData(org.jdom.Document doc,
java.lang.String extSysName,
java.lang.String esName,
java.lang.String fileFormat,
java.lang.String sourceFile,
java.lang.String delimiter,
java.lang.String textQualifier,
java.lang.String fileAttributes,
java.util.Date importDate)
Write document to a output file.
|
static java.lang.String |
writeExtractData(org.jdom.Document doc,
java.lang.String extSysName,
java.lang.String esName,
java.lang.String fileFormat,
java.lang.String sourceFile,
java.lang.String delimiter,
java.lang.String textQualifier,
java.lang.String fileAttributes,
java.util.Date importDate,
boolean tempFile)
Write document to a output file.
|
public static java.lang.String extractData(java.lang.String extractFileID, java.lang.String extSysName, java.lang.String esName, java.lang.String fileFormat, java.lang.String sourceFile, java.lang.String delimiter, java.lang.String textQualifier, java.lang.String fileAttributes, java.util.Date importDate) throws MXException
extractFileID
- Extract File IDextSysName
- External System NameesName
- Enterprise Service NamefileFormat
- File format of output file: FLAT or XMLsourceFile
- Original file namedelimiter
- Field delimiter used in flat filetextQualifier
- Character used in flat files to mark start and end of text fields.fileAttributes
- Name of attributes, separated by delimiter, to include in flat file outputimportDate
- Original import date.MXException
public static java.lang.String writeExtractData(org.jdom.Document doc, java.lang.String extSysName, java.lang.String esName, java.lang.String fileFormat, java.lang.String sourceFile, java.lang.String delimiter, java.lang.String textQualifier, java.lang.String fileAttributes, java.util.Date importDate) throws MXException
doc
- Document to writeextSysName
- External System NameesName
- Enterprise Service NamefileFormat
- File format of output file: FLAT or XMLsourceFile
- Original file namedelimiter
- Field delimiter used in flat filetextQualifier
- Character used in flat files to mark start and end of text fields.fileAttributes
- Name of attributes, separated by delimiter, to include in flat file outputimportDate
- Original import date.MXException
public static java.lang.String writeExtractData(org.jdom.Document doc, java.lang.String extSysName, java.lang.String esName, java.lang.String fileFormat, java.lang.String sourceFile, java.lang.String delimiter, java.lang.String textQualifier, java.lang.String fileAttributes, java.util.Date importDate, boolean tempFile) throws MXException
doc
- Document to writeextSysName
- External System NameesName
- Enterprise Service NamefileFormat
- File format of output file: FLAT or XMLsourceFile
- Original file namedelimiter
- Field delimiter used in flat filetextQualifier
- Character used in flat files to mark start and end of text fields.fileAttributes
- Name of attributes, separated by delimiter, to include in flat file outputimportDate
- Original import date.tempFile
- Create a temporary filename that starts with a tilde character "~".MXException
public static void deleteErrorFiles(java.lang.String extractFileID, java.lang.String extSysName, java.lang.String esName, java.sql.Connection connection) throws MXException
extractFileID
- Extract File IDextSysName
- External System NameesName
- Enterprise Service NameMXException
public static void addToMasterDoc(org.jdom.Document masterDoc, org.jdom.Element element, java.lang.String mosName, java.lang.String operation) throws MXException
masterDoc
- Master documentelement
- Transaction elementmosName
- Object Structure Nameoperation
- Integration operationMXException
public static java.lang.String mergeFiles(java.util.List<java.lang.String> tempFiles, java.lang.String extSysName, java.lang.String fileFormat, java.lang.String sourceFile, java.util.Date importDate, java.lang.String mosName, java.lang.String operation) throws MXException
tempFiles
- extSysName
- External System NamefileFormat
- File format of output file: FLAT or XMLsourceFile
- Original file nameimportDate
- Original import date.mosName
- Object Structure Nameoperation
- Integration operationMXException