|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.odi.dataservices.fwk.CDCManagedEntity
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 |
public CDCManagedEntity()
Method Detail |
public java.util.Date getJrnDate()
public void setJrnDate(java.util.Date pJrnDate)
pJrnDate
- date of the changepublic java.lang.String getJrnFlag()
public void setJrnFlag(java.lang.String pJrnFlag)
pJrnFlag
- type of change ("I" - INSERT/UPDATE, "D" - DELETE)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.
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 ManagedEntity
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.
pManagedEntityColumnsList
- the list of columns to set in the ManagedEntity
concerned by the change
null
if pResultSet.next()
return false; a CDCManagedEntity
otherwise
java.sql.SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |