com.progress.open4gl
Class ProChangeSummary

java.lang.Object
  extended bycom.progress.open4gl.dynamicapi.ChangeSumm
      extended bycom.progress.open4gl.ProChangeSummary

public class ProChangeSummary
extends com.progress.open4gl.dynamicapi.ChangeSumm

Used to record to changes to the ProDataObject instances contained within the ProDataGraph. It implements the Java SDO ChangeSummary interface.


Field Summary
 
Fields inherited from class com.progress.open4gl.dynamicapi.ChangeSumm
ADD, CHANGE, DELETE, m_changeDataObjs, m_changeSettings, m_chgSummary, m_deleteDataObjs, m_newDataObjs, m_rowState
 
Constructor Summary
ProChangeSummary(ChangeSummary chgSummary)
           
 
Method Summary
 void beginLogging()
          Clears out current list of changes and turns change logging on
 void endLogging()
          Turns change logging off
 java.util.List getChangedDataObjects()
           
 ProDataGraph getChanges()
           
 DataGraph getDataGraph()
           
 java.util.List getOldValues(ProDataObject dataObj)
           
 boolean isCreated(ProDataObject dataObj)
           
 boolean isDeleted(ProDataObject dataObj)
           
 boolean isLogging()
           
 
Methods inherited from class com.progress.open4gl.dynamicapi.ChangeSumm
getChangedDataObject, getOrigValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProChangeSummary

public ProChangeSummary(ChangeSummary chgSummary)
Method Detail

beginLogging

public void beginLogging()
Clears out current list of changes and turns change logging on


endLogging

public void endLogging()
Turns change logging off


getChangedDataObjects

public java.util.List getChangedDataObjects()
Returns:
List of the changed DataObjects.

getChanges

public ProDataGraph getChanges()
                        throws java.lang.Exception,
                               Open4GLException,
                               ProDataException
Returns:
ProDataGraph object with only the changed ProDataObjects.
Throws:
java.lang.Exception
Open4GLException
ProDataException

getDataGraph

public DataGraph getDataGraph()
Returns:
Its DataGraph object.

getOldValues

public java.util.List getOldValues(ProDataObject dataObj)
Parameters:
dataObj -
Returns:
List of settings that represent property values of specified ProDataObject since logging began

isCreated

public boolean isCreated(ProDataObject dataObj)
Parameters:
dataObj -
Returns:
True if specified ProDataObject was created since logging began, else False.

isDeleted

public boolean isDeleted(ProDataObject dataObj)
Parameters:
dataObj -
Returns:
True if specified ProDataObject was deleted since logging began, else False.

isLogging

public boolean isLogging()
Returns:
True if logging is currently turned on, else False.