Oracle Fusion Middleware extensions for Seed Data Framework
11g Release 1 (11.1.2)

E22564-02

oracle.apps.fnd.applseed.rt.extract.diff
Class SDExtractXmlDiff

java.lang.Object
  extended by oracle.apps.fnd.applseed.rt.extract.diff.SDExtractXmlDiff

public class SDExtractXmlDiff
extends java.lang.Object

This class handles the XMLDiff process for Seed Data Extract files. Compare should be against a newly generated extract file, and its previous version retrieved from a version control system. Builds a set of row key values from the rows that contain diffs.


Constructor Summary
SDExtractXmlDiff()
          Constructor.
 
Method Summary
 void clearVCSDocument()
          Clear the VCS Document, input 2.
 DiffKeySet getDiffKeySet()
          Getter for diffKeySet, set of row keys that make up all the rows that contain difference(s), and hence need to update row versions.
 oracle.xml.parser.v2.XMLDocument getExtractDocument()
          Get the XMLDocument for the Extract file from the XMLDiff.
 oracle.xml.parser.v2.XMLDocument getVCSDocument()
          Get the XMLDocument for the VCS file from the XMLDiff.
 int runDiff()
          Run the XMlDiff process against the files.
 void setDebugMode(boolean flag)
          Setter for debugMode.
 void setExtractFile(ExtractFile extractFile)
          Set the extract file to be diffed.
 void setFiles(java.io.File file1, java.io.File file2)
          Set the files for the XML Diff.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SDExtractXmlDiff

public SDExtractXmlDiff()
Constructor.

Method Detail

getDiffKeySet

public DiffKeySet getDiffKeySet()
Getter for diffKeySet, set of row keys that make up all the rows that contain difference(s), and hence need to update row versions.

Returns:
diffKeySet

setDebugMode

public void setDebugMode(boolean flag)
Setter for debugMode. When true generates the diff output to file for debug.

Parameters:
flag - true to turn on debug mode

setExtractFile

public void setExtractFile(ExtractFile extractFile)
                    throws ExtractException
Set the extract file to be diffed.

Parameters:
extractFile - ExtractFile to diff its previous version
Throws:
ExtractException - file parse or other error

setFiles

public void setFiles(java.io.File file1,
                     java.io.File file2)
              throws ExtractException
Set the files for the XML Diff. Parses each to DOM Document to prepare for diff.

Parameters:
file1 - File1
file2 - File2
Throws:
ExtractException - parse or other error

runDiff

public int runDiff()
            throws ExtractException
Run the XMlDiff process against the files. Builds the set of key values for all rows that contain diffs.

Returns:
number of difference rows found, 0 if none
Throws:
ExtractException - error during diff

getExtractDocument

public oracle.xml.parser.v2.XMLDocument getExtractDocument()
Get the XMLDocument for the Extract file from the XMLDiff. Gets the document root as an XMLDocument object of the first XML tree.

Returns:
the document root of the first XML file

getVCSDocument

public oracle.xml.parser.v2.XMLDocument getVCSDocument()
Get the XMLDocument for the VCS file from the XMLDiff. Gets the document root as an XMLDocument object of the second XML tree.

Returns:
the document root of the second XML file

clearVCSDocument

public void clearVCSDocument()
Clear the VCS Document, input 2. Attmept to free up some memory when we are finished with it.


Oracle Fusion Middleware extensions for Seed Data Framework
11g Release 1 (11.1.2)

E22564-02

Copyright © 2011 Oracle. All Rights Reserved.