public class CDCManagedEntity
extends java.lang.Object
| Constructor and Description |
|---|
CDCManagedEntity()
Constructs a new CDCManagedEntity.
|
| Modifier and Type | Method and Description |
|---|---|
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. |
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. |
public java.util.Date getJrnDate()
setJrnDate(java.util.Date)public void setJrnDate(java.util.Date pJrnDate)
pJrnDate - date of the changegetJrnDate()public java.lang.String getJrnFlag()
setJrnFlag(java.lang.String)public void setJrnFlag(java.lang.String pJrnFlag)
pJrnFlag - type of change ("I" - INSERT/UPDATE, "D" - DELETE)getJrnFlag()public ManagedEntity getManagedEntity()
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.ManagedEntitysetManagedEntity(oracle.odi.dataservices.fwk.ManagedEntity)public void setManagedEntity(ManagedEntity pManagedEntity)
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.pManagedEntity - The changed ManagedEntitygetManagedEntity()public static CDCManagedEntity createFromResultSet(java.sql.ResultSet pResultSet, java.util.List pManagedEntityColumnsList) throws java.sql.SQLException
CDCManagedEntity from a JDBC
ResultSet object.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. pManagedEntityColumnsList are added to the fields of the
ManagedEntity concerned by the change.pResultSet - the ResultSet from which to retrieve the datapManagedEntityColumnsList - the list of columns to set in the ManagedEntity concerned by the changenull if pResultSet.next() return false; a CDCManagedEntity otherwisejava.sql.SQLException