Skip navigation links

Oracle© Data Integrator Data Services Java API Reference
11g Release 1 (11.1.1.6.0)

E17062-03


oracle.odi.dataservices.fwk
Class CDCManagedEntity

java.lang.Object
  extended by oracle.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.
This method creates a new CDCManagedEntity and sets its columns values with those from the ResultSet: JRN_DATE column is mapped to the JrnDate field JRN_FLAG column is mapped to the JrnFlag field The values of the columns listed in pManagedEntityColumnsList are added to the fields of the ManagedEntity concerned by the change.
 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
See Also:
setJrnDate(java.util.Date)

setJrnDate

public void setJrnDate(java.util.Date pJrnDate)
Sets the date when the change was captured.
Parameters:
pJrnDate - date of the change
See Also:
getJrnDate()

getJrnFlag

public java.lang.String getJrnFlag()
Retrieves the type of change captured.
Returns:
The type of change
See Also:
setJrnFlag(java.lang.String)

setJrnFlag

public void setJrnFlag(java.lang.String pJrnFlag)
Sets the type of change captured.
Parameters:
pJrnFlag - type of change ("I" - INSERT/UPDATE, "D" - DELETE)
See Also:
getJrnFlag()

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
See Also:
setManagedEntity(oracle.odi.dataservices.fwk.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
See Also:
getManagedEntity()

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:
pResultSet - the ResultSet from which to retrieve the data
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

Skip navigation links

Oracle© Data Integrator Data Services Java API Reference
11g Release 1 (11.1.1.6.0)

E17062-03


Copyright © 2011, Oracle and/or its affiliates. All rights reserved.