Oracle Warehouse Builder Java API Reference
10g Release 1 (10.1)

B12155-01

oracle.owb.metadatamgmt.changemgmt
Interface SnapshotComponentImage


public interface SnapshotComponentImage

This class contains component information contained in snapshot.


Method Summary
 void compare(Snapshot srcSnap, Snapshot tgtSnap, java.lang.String diffFileName)
          This method computes difference between (tgtSnap - thisSnap) for this component.
 void compare(Snapshot srcSnap, Snapshot tgtSnap, java.lang.String diffFileName, int compareFilter, int objTypeFilter)
          This method computes difference between (tgtSnap - thisSnap) for this component.
 void compare(Snapshot srcSnap, java.lang.String diffFileName)
          This method computes difference between Current Component Definition and history point srcSnap.
 void compare(Snapshot srcSnap, java.lang.String diffFileName, int compareFilter, int objTypeFilter)
          This method computes difference between Current Component Definition and history point srcSnap.
 java.lang.String getBusinessName()
          Gets business name of this component.
 ClassDefinition getClassDefinition()
          Gets class definition of this component.
 java.lang.String getFullyQualifiedName()
          Gets qualified name of this component.
 java.lang.String getName()
          Gets name of this component image.
 java.lang.String getUOID()
          Gets UOID of this component image.

 

Method Detail

getUOID

public java.lang.String getUOID()
Gets UOID of this component image.
Returns:
UOID of component.

getName

public java.lang.String getName()
Gets name of this component image.
Returns:
name of component

getBusinessName

public java.lang.String getBusinessName()
Gets business name of this component.
Returns:
Business Name of component

getFullyQualifiedName

public java.lang.String getFullyQualifiedName()
Gets qualified name of this component.
Returns:
fully qualified name of component.

getClassDefinition

public ClassDefinition getClassDefinition()
Gets class definition of this component.
Returns:
ClassDefinition of component

compare

public void compare(Snapshot srcSnap,
                    java.lang.String diffFileName)
             throws CompareException,
MCMException
This method computes difference between Current Component Definition and history point srcSnap. This method by default applies MCMServiceHandler.COMPARE_FILTER_CHANGED_OBJECT_ONLY for compare filter and MCMServiceHandler.OBJECTS_TYPE_FILTER_ANY_OBJECTS for object type filter. Applying these default filters would imply, diff report will contain all changed objects and will include all logical and physical objects.
Parameters:
srcSnap - Source Snapshot with which this Component will be compared
diffFileName - File name where diff XML would be stored
Throws:
CompareException - When Comparison couldnt be completed.
MCMException - Any other error causing this operation to fail.

compare

public void compare(Snapshot srcSnap,
                    java.lang.String diffFileName,
                    int compareFilter,
                    int objTypeFilter)
             throws CompareException,
MCMException
This method computes difference between Current Component Definition and history point srcSnap. This method by default applies MCMServiceHandler.COMPARE_FILTER_CHANGED_OBJECTS_ONLY for compare filter and MCMServiceHandler.OBJECTS_TYPE_FILTER_ANY_OBJECTS for object type filter. Applying these default filters would imply, diff report will contain all changed objects and will include all logical and physical objects.
Parameters:
srcSnap - Source Snapshot with which this Component will be compared
diffFileName - File name where diff XML would be stored
compareFilter - Compare Filter
objTypeFilter - Object Type Filter
Throws:
CompareException - When Comparison couldnt be completed.
MCMException - Any other error causing this operation to fail.

compare

public void compare(Snapshot srcSnap,
Snapshot tgtSnap,
                    java.lang.String diffFileName,
                    int compareFilter,
                    int objTypeFilter)
             throws CompareException,
MCMException
This method computes difference between (tgtSnap - thisSnap) for this component. Both snapshots must exist on this component. Important disnction between this method in Snapshotable and Snapshot is , this method compares two version of a component and in Snapshot is like comparing two labels in conventional versioing systems.
Parameters:
srcSnap - Source Snapshot
tgtSnap - Target Snapshot
diffFileName - File name where diff XML would be stored
compareFilter - Valid filter values are defined in MCMServiceHandler for example MCMServiceHandler.COMPARE_FILTER_FOUND_OBJECTS_IN_TARGET_ONLY , MCMServiceHandler.COMPARE_FILTER_FOUND_OBJECTS_IN_SOURCE_ONLY ... All compare filters are prefixed with COMPARE_FILTER
objTypeFilter - - This filters is on object types in diff, Using this filter only Logical or Physical objects can be put in generated diff file. for e.g. MCMServiceHandler.OBJECT_TYPE_FILTER_LOGICAL_OBJECT_ONLY All object type filters are prefixed with OBJECT_TYPE_FILTER
Throws:
CompareException - When snapshots couldnt be compared.
MCMException - Any other error causing this operation to fail.

compare

public void compare(Snapshot srcSnap,
Snapshot tgtSnap,
                    java.lang.String diffFileName)
             throws CompareException,
MCMException
This method computes difference between (tgtSnap - thisSnap) for this component. Both snapshots must exist on this component. Important disnction between this method in Snapshotable and Snapshot is , this method compares two version of a component and in Snapshot is like comparing two labels in conventional versioing systems. This method by default applies MCMServiceHandler.COMPARE_FILTER_CHANGED_OBJECTS_ONLY for compare filter and MCMServiceHandler.OBJECTS_TYPE_FILTER_ANY_OBJECTS for object type filter. Applying these default filters would imply, diff report will contain all changed objects and will include all logical and physical objects.
Parameters:
srcSnap - Source Snapshot
tgtSnap - Target Snapshot
diffFileName - File name where diff XML would be stored
Throws:
CompareException - When snapshots couldnt be compared.
MCMException - Any other error causing this operation to fail.

Oracle Warehouse Builder Java API Reference
10g Release 1 (10.1)

B12155-01

Copyright © 2003, Oracle. All Rights Reserved.