|
Oracle® Database XStream Java API Reference 11g Release 2 (11.2) E16674-02 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
oracle.streams.AbstractLCR
public abstract class AbstractLCR
The AbstractLCR class provides an abstract implementation of the LCR interface. This class encapsulates the methods and attributes of the LCR message type defined by Oracle Streams. It is the super class for all Oracle Streams default LCR types, including DefaultRowLCR and DefaultDDLLCR.
RowLCR, DDLLCR| Constructor Summary | |
|---|---|
AbstractLCR() |
|
| Method Summary | |
|---|---|
java.lang.Object |
getAttribute(java.lang.Object attributeName)Gets the attribute by specifying the attribute name. |
java.lang.Object |
getAttributeName(int index)Gets the attribute name in the LCR attributes list by position. |
java.lang.Object[] |
getAttributesList()Gets the list of attribute name and value pairs in the LCR. |
java.lang.Object |
getAttributeValue(int index)Gets the attribute value in the LCR attributes list by position. |
java.lang.String |
getCommandType()Gets the LCR command type executed in the DML or DDL statement. |
oracle.sql.NUMBER |
getCommitSCN()Gets the LCR commit system change number (SCN) in the format of oracle.sql.NUMBER. |
java.lang.String |
getMessageTrackingLabel()Gets the message tracking label of the LCR. |
int |
getNumAttributes()Gets the total number of attributes in the LCR. |
java.lang.String |
getObjectName()Gets the name of the object that is changed by the LCR. |
java.lang.String |
getObjectOwner()Gets the owner of the object that is changed by the LCR. |
byte[] |
getPosition()Gets the position of the current LCR. |
oracle.sql.NUMBER |
getSCN()Gets the SCN of the current LCR in the format of oracle.sql.NUMBER. |
java.lang.String |
getSourceDatabaseName()Gets the global name of the source database. |
oracle.sql.DATE |
getSourceTime()Gets the time when the LCR was created. |
byte[] |
getTag()Gets the tag for the LCR. |
java.lang.String |
getTransactionId()Gets the transaction identifier of the LCR. |
void |
setAttribute(java.lang.Object attributeName, java.lang.Object attributeValue)Sets attribute by providing the name and value pair; the name is used as the hash key. |
void |
setCommandType(java.lang.String commandType)Sets the command type in the LCR. |
void |
setMessageTrackingLabel(java.lang.String messageTrackingLabel)Sets the message tracking label of the LCR. |
void |
setObjectName(java.lang.String objectName)Sets the name of the object that is changed by the LCR. |
void |
setObjectOwner(java.lang.String objectOwner)Sets the owner of the object that is changed by the LCR . |
void |
setPosition(byte[] position)Sets the position in the LCR. |
void |
setSourceDatabaseName(java.lang.String name)Sets the source database name of the object that is changed by the LCR. |
void |
setSourceTime(oracle.sql.DATE sourceTime)Sets the source timestamp when the LCR was created. |
void |
setTag(byte[] tag)Sets the LCR tag information. |
void |
setTransactionId(java.lang.String transactionId)Sets the transaction identifier for the LCR. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractLCR()
| Method Detail |
|---|
public void setSourceDatabaseName(java.lang.String name)
setSourceDatabaseName in interface LCRname - The source database name in String format. Set this parameter to a non-NULL value.public void setCommandType(java.lang.String commandType)
setCommandType in interface LCRcommandType - The command type of an LCR. Set this parameter to a non-NULL value.public void setObjectOwner(java.lang.String objectOwner)
setObjectOwner in interface LCRobjectOwner - The object owner. Set this parameter to a non-NULL value.public void setObjectName(java.lang.String objectName)
setObjectName in interface LCRobjectName - The name of the database object. Set this parameter to a non-NULL value.public void setTag(byte[] tag)
setTag in interface LCRtag - A binary tag that enables tracking of the LCR.public void setPosition(byte[] position)
setPosition in interface LCRposition - A byte array that represents the LCR position. Set this parameter to a non-NULL value and ensure that the position is byte comparable and is strictly increasing.public void setTransactionId(java.lang.String transactionId)
setTransactionId in interface LCRtransactionId - The identifier of the transactionpublic void setSourceTime(oracle.sql.DATE sourceTime)
setSourceTime in interface LCRsourceTime - The srouce time in the form of oracle.sql.DATE
public void setAttribute(java.lang.Object attributeName,
java.lang.Object attributeValue)
setAttribute in interface LCRattributeName - The name of the attributeattributeValue - The value of the attribute
public void setMessageTrackingLabel(java.lang.String messageTrackingLabel)
throws StreamsException
messageTrackingLabel - The message tracking labelStreamsException - If error occurs when obtaining message tracking labelpublic java.lang.String getSourceDatabaseName()
getSourceDatabaseName in interface LCRpublic java.lang.String getCommandType()
getCommandType in interface LCRpublic java.lang.String getObjectOwner()
getObjectOwner in interface LCRpublic java.lang.String getObjectName()
getObjectName in interface LCRpublic byte[] getTag()
getTag in interface LCRpublic byte[] getPosition()
getPosition in interface LCRpublic java.lang.String getTransactionId()
getTransactionId in interface LCRpublic oracle.sql.DATE getSourceTime()
getSourceTime in interface LCRpublic java.lang.Object getAttribute(java.lang.Object attributeName)
getAttribute in interface LCRattributeName - The attribute namepublic oracle.sql.NUMBER getSCN()
public oracle.sql.NUMBER getCommitSCN()
public int getNumAttributes()
public java.lang.Object[] getAttributesList()
public java.lang.Object getAttributeName(int index)
public java.lang.Object getAttributeValue(int index)
public java.lang.String getMessageTrackingLabel()
throws StreamsException
StreamsException - If error occurs when obtaining message tracking label
|
Oracle® Database XStream Java API Reference 11g Release 2 (11.2) E16674-02 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||