public class LogChangeReader.JEChangeTxn extends java.lang.Object implements ChangeReader.ChangeTxn
| Constructor and Description |
|---|
LogChangeReader.JEChangeTxn(long txnId,
long startPoint) |
| Modifier and Type | Method and Description |
|---|---|
void |
discardChanges(Transaction txn)
Called when the changes in this transaction have been transferred to
the external system, and they can be discarded locally.
|
java.util.Set<java.lang.String> |
getDatabaseNames()
Returns the names of all local databases that are effected by this
transaction and that are part of a single data set (specified by
getDataSetName).
|
java.lang.String |
getDataSetName()
Returns the name of the data set to which this transaction should be
applied.
|
java.util.Iterator<ChangeReader.Change> |
getOperations()
Returns an iterator over the changes in this transactions, for a
single data set (specified by getDataSetName).
|
long |
getTransactionId()
Returns the transction ID that can be shared with the external
system.
|
public LogChangeReader.JEChangeTxn(long txnId,
long startPoint)
public long getTransactionId()
ChangeReader.ChangeTxngetTransactionId in interface ChangeReader.ChangeTxnpublic java.lang.String getDataSetName()
ChangeReader.ChangeTxngetDataSetName in interface ChangeReader.ChangeTxnpublic java.util.Set<java.lang.String> getDatabaseNames()
ChangeReader.ChangeTxngetDatabaseNames in interface ChangeReader.ChangeTxnpublic java.util.Iterator<ChangeReader.Change> getOperations()
ChangeReader.ChangeTxnThis method may be called more than once for a single transaction to iterate over the changes multiple times.
getOperations in interface ChangeReader.ChangeTxnpublic void discardChanges(Transaction txn)
ChangeReader.ChangeTxnThe changes will not be discarded until the given txn has been committed. By using an XA transaction, the changes can be discarded locally only if they are also committed in the external system.
discardChanges in interface ChangeReader.ChangeTxnCopyright (c) 2004-2012 Oracle. All rights reserved.