oracle.sysman.dbTarget.db.changemgr.emo.cpapi
Class ApplyChangeItemResult

java.lang.Object
  extended by oracle.sysman.dbTarget.db.changemgr.emo.cpapi.ChangeItemInfo
      extended by oracle.sysman.dbTarget.db.changemgr.emo.cpapi.ApplyChangeItemResult

public class ApplyChangeItemResult
extends ChangeItemInfo

Reports the result of applying a change item to the corresponding object in a database.


Field Summary
static int CI_DIFF_CONFLICTS
          Indicates that individual diff conflicts were found for an object to be modified.
static int CI_EXISTS_DIFFERENT
          Indicates that an object to be added already exists and has a different definition than the Change Item, or that an object to be dropped exists but has a different definition than the Change Item.
static int CI_EXISTS_SAME
          Indicates that an object to be added already exists and has the same definition as the Change Item.
static int CI_NO_CONFLICT
          Indicates that no conflict was detected.
static int CI_NOT_EXIST
          Indicates that an object to be modified or dropped does not exist.
static int CI_NOT_PROCESSED
          Indicates that the change item has not been processed.
 
Fields inherited from class oracle.sysman.dbTarget.db.changemgr.emo.cpapi.ChangeItemInfo
CLUSTER, CP_ADD, CP_DROP, CP_MODIFY, CP_MONITOR, CP_NO_ACTION, DB_LINK, FUNCTION, INDEX, MATERIALIZED_VIEW, MATERIALIZED_VIEW_LOG, MAX_DESCRIPTION_LENGTH, PACKAGE, PACKAGE_BODY, PACKAGE_SPEC, PROCEDURE, PROFILE, ROLE, ROLLBACK_SEGMENT, SEQUENCE, SYNONYM, TABLE, TABLESPACE, TRIGGER, TYPE, USER, VIEW
 
Constructor Summary
ApplyChangeItemResult(int itemAction, java.lang.String typeName, java.lang.String objectName, java.lang.String objectSchema, java.lang.String description)
           
 
Method Summary
 oracle.xml.parser.v2.XMLDocument getDifferencesDoc()
          Gets the differences document that represents differences between the change item definition and the target definition for ADD and DROP change items.
 ApplyOneDiffResult[] getDiffResults()
          Returns the individual apply-diff results for this change item.
 int getResult()
          Returns the result of applying the change item to a database object.
 boolean getSynchObjectAdded()
          Indicates whether the change item resulted in addition of a synch object to the synchronization.
 void setDifferencesDoc(oracle.xml.parser.v2.XMLDocument diffDoc)
          Sets the differences document that represents differences between the change item definition and the target definition for ADD and DROP change items.
 void setDiffResults(ApplyOneDiffResult[] results)
          Sets the individual apply-diff results for this change item.
 void setResult(int code)
          Sets the result code.
 void setSynchObjectAdded(boolean added)
          Sets flag indicating whether the change item resulted in addition of a synch object to the synchronization.
 java.lang.String toString()
           
 java.lang.String toString(boolean fullDetails)
           
 
Methods inherited from class oracle.sysman.dbTarget.db.changemgr.emo.cpapi.ChangeItemInfo
getClientSourceDatabase, getDescription, getEntMgrSourceDatabase, getGlobalSourceDatabase, getItemAction, getItemDisplayName, getObjectName, getObjectSchema, getObjectType, getObjectTypeCode, setClientSourceDatabase, setDescription, setEntMgrSourceDatabase, setGlobalSourceDatabase, setItemAction, setObjectName, setObjectSchema, setObjectType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CI_NOT_PROCESSED

public static final int CI_NOT_PROCESSED
Indicates that the change item has not been processed.

See Also:
Constant Field Values

CI_NO_CONFLICT

public static final int CI_NO_CONFLICT
Indicates that no conflict was detected.

See Also:
Constant Field Values

CI_EXISTS_SAME

public static final int CI_EXISTS_SAME
Indicates that an object to be added already exists and has the same definition as the Change Item.

See Also:
Constant Field Values

CI_EXISTS_DIFFERENT

public static final int CI_EXISTS_DIFFERENT
Indicates that an object to be added already exists and has a different definition than the Change Item, or that an object to be dropped exists but has a different definition than the Change Item.

See Also:
Constant Field Values

CI_NOT_EXIST

public static final int CI_NOT_EXIST
Indicates that an object to be modified or dropped does not exist.

See Also:
Constant Field Values

CI_DIFF_CONFLICTS

public static final int CI_DIFF_CONFLICTS
Indicates that individual diff conflicts were found for an object to be modified.

See Also:
Constant Field Values
Constructor Detail

ApplyChangeItemResult

public ApplyChangeItemResult(int itemAction,
                             java.lang.String typeName,
                             java.lang.String objectName,
                             java.lang.String objectSchema,
                             java.lang.String description)
                      throws ChangePlanAccessException
Throws:
ChangePlanAccessException
Method Detail

setResult

public void setResult(int code)
Sets the result code.

Parameters:
code - One of:
  • CI_NO_CONFLICT
  • CI_EXISTS_SAME
  • CI_EXISTS_DIFFERENT
  • CI_NOT_EXIST
  • CI_DIFF_CONFLICTS

getResult

public int getResult()
Returns the result of applying the change item to a database object.

Returns:
One of:
  • CI_NO_CONFLICT
  • CI_EXISTS_SAME
  • CI_EXISTS_DIFFERENT
  • CI_NOT_EXIST
  • CI_DIFF_CONFLICTS

setDiffResults

public void setDiffResults(ApplyOneDiffResult[] results)
Sets the individual apply-diff results for this change item.

Parameters:
results - An array of ApplyOneDiffResult objects, each of which represents the result of applying a single difference to the target definition.

getDiffResults

public ApplyOneDiffResult[] getDiffResults()
Returns the individual apply-diff results for this change item.

Returns:
An array of ApplyOneDiffResult objects, each of which represents the result of applying a single difference to the target definition.

setDifferencesDoc

public void setDifferencesDoc(oracle.xml.parser.v2.XMLDocument diffDoc)
Sets the differences document that represents differences between the change item definition and the target definition for ADD and DROP change items.

Parameters:
diffDoc - The Diff SXML document.

getDifferencesDoc

public oracle.xml.parser.v2.XMLDocument getDifferencesDoc()
Gets the differences document that represents differences between the change item definition and the target definition for ADD and DROP change items.

Returns:
The Diff SXML document.

setSynchObjectAdded

public void setSynchObjectAdded(boolean added)
Sets flag indicating whether the change item resulted in addition of a synch object to the synchronization.

Parameters:
added - True if a synch object was added, false otherwise.

getSynchObjectAdded

public boolean getSynchObjectAdded()
Indicates whether the change item resulted in addition of a synch object to the synchronization.

Returns:
true if a synch object was added, false otherwise.

toString

public java.lang.String toString()
Overrides:
toString in class ChangeItemInfo

toString

public java.lang.String toString(boolean fullDetails)