oracle.odi.dataservices.fwk
Class CDCManagedEntity

java.lang.Object
  extended byoracle.odi.dataservices.fwk.CDCManagedEntity

public class CDCManagedEntity
extends java.lang.Object

A data service parameter which represents the entity corresponding to a data change captured for a datastore. This class constitutes a valid output parameter for a data service method.


Constructor Summary
CDCManagedEntity()
          Constructs a new CDCManagedEntity.
 
Method Summary
static CDCManagedEntity createFromResultSet(java.sql.ResultSet pResultSet, java.util.List pManagedEntityColumnsList)
          Helper method used to create a CDCManagedEntity from a JDBC ResultSet object.
 java.util.Date getJrnDate()
          Returns the date when the change was captured.
 java.lang.String getJrnFlag()
          Retrieves the type of change captured.
 ManagedEntity getManagedEntity()
          Returns the ManagedEntity to which the change applied.
 void setJrnDate(java.util.Date pJrnDate)
          Sets the date when the change was captured.
 void setJrnFlag(java.lang.String pJrnFlag)
          Sets the type of change captured.
 void setManagedEntity(ManagedEntity pManagedEntity)
          Sets the ManagedEntity affected by the change.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CDCManagedEntity

public CDCManagedEntity()
Constructs a new CDCManagedEntity.

Method Detail

getJrnDate

public java.util.Date getJrnDate()
Returns the date when the change was captured.

Returns:
date of the change

setJrnDate

public void setJrnDate(java.util.Date pJrnDate)
Sets the date when the change was captured.

Parameters:
pJrnDate - date of the change

getJrnFlag

public java.lang.String getJrnFlag()
Retrieves the type of change captured.

Returns:
The type of change

setJrnFlag

public void setJrnFlag(java.lang.String pJrnFlag)
Sets the type of change captured.

Parameters:
pJrnFlag - type of change ("I" - INSERT/UPDATE, "D" - DELETE)

getManagedEntity

public ManagedEntity getManagedEntity()
Returns the ManagedEntity to which the change applied. Note that the entity returned is the one after the change is applied. After an UPDATE, the fields will contain the new values. After a DELETE, only the primary key fields are set and other fields are null.

Returns:
The changed ManagedEntity

setManagedEntity

public void setManagedEntity(ManagedEntity pManagedEntity)
Sets the ManagedEntity affected by the change. Note that the entity set must be the one after the change has taken place. After an UPDATE, the fields will contain the new values. After a DELETE, only the primary key fields are set and other fields are null.

Parameters:
pManagedEntity - The changed ManagedEntity

createFromResultSet

public static CDCManagedEntity createFromResultSet(java.sql.ResultSet pResultSet,
                                                   java.util.List pManagedEntityColumnsList)
                                            throws java.sql.SQLException
Helper method used to create a CDCManagedEntity from a JDBC ResultSet object.
This method creates a new CDCManagedEntity and sets its columns values with those from the ResultSet:

Parameters:
pManagedEntityColumnsList - the list of columns to set in the ManagedEntity concerned by the change
Returns:
null if pResultSet.next() return false; a CDCManagedEntity otherwise
Throws:
java.sql.SQLException