|
Oracle® Database XStream Java API Reference 12c Release 1 (12.1) E17774-03 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LCR
The LCR interface encapsulates information about the logical change record (LCR). An LCR describes a database change, either a data definition language (DDL) change or a change to the data in a single row that results from a data manipulation language (DML) statement or a LOB piecewise operation. Users can choose to have a customized implementation of LCR by implementing this interface.
Note that the LCR attributes obtained from get methods are mutable. Please refer to Oracle Streams documentations for more information about LCR attributes.
AbstractLCR
, RowLCR
, DDLLCR
Field Summary | |
---|---|
static java.lang.String |
ATTRIBUTE_ROOT_NAME The name of the root container in a consolidated database. |
static java.lang.String |
ATTRIBUTE_ROW_ID The rowid of the row changed in a row LCR. |
static java.lang.String |
ATTRIBUTE_SERIAL_NUM The serial number of the session that performed the change captured in the LCR. |
static java.lang.String |
ATTRIBUTE_SESSION_NUM The identifier of the session that performed the change captured in the LCR. |
static java.lang.String |
ATTRIBUTE_THREAD_NUM The thread number of the instance in which the change captured in the LCR was performed. |
static java.lang.String |
ATTRIBUTE_TX_NAME The name of the transaction that includes the LCR. |
static java.lang.String |
ATTRIBUTE_USERNAME The name of the current user who performed the change captured in the LCR. |
Method Summary | |
---|---|
java.lang.Object |
getAttribute(java.lang.Object attributeName) Gets the attribute by specifying the attribute name. |
java.lang.String |
getCommandType() Gets the LCR command type executed in the DML or DDL statement. |
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. |
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 |
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 tag for the LCR. |
void |
setTransactionId(java.lang.String transactionId) Sets the transaction identifier for the LCR. |
Field Detail |
---|
static final java.lang.String ATTRIBUTE_THREAD_NUM
static final java.lang.String ATTRIBUTE_SESSION_NUM
static final java.lang.String ATTRIBUTE_SERIAL_NUM
static final java.lang.String ATTRIBUTE_ROW_ID
static final java.lang.String ATTRIBUTE_USERNAME
static final java.lang.String ATTRIBUTE_TX_NAME
static final java.lang.String ATTRIBUTE_ROOT_NAME
Method Detail |
---|
void setSourceDatabaseName(java.lang.String name)
name
- The source database name in String format. Set this parameter to a non-NULL value.void setCommandType(java.lang.String commandType)
commandType
- The command type of an LCR. Set this parameter to a non-NULL value.void setObjectOwner(java.lang.String objectOwner)
objectOwner
- The object owner. Set this parameter to a non-NULL value.void setObjectName(java.lang.String objectName)
objectName
- The name of the database object. Set this parameter to a non-NULL value.void setTag(byte[] tag)
tag
- A binary tag that enables tracking of the LCRvoid setPosition(byte[] position)
position
- 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.void setTransactionId(java.lang.String transactionId)
transactionId
- The identifier of the transactionvoid setSourceTime(oracle.sql.DATE sourceTime)
sourceTime
- The srouce time in the form of oracle.sql.DATEvoid setAttribute(java.lang.Object attributeName, java.lang.Object attributeValue)
attributeName
- The name of the attributeattributeValue
- The value of the attributejava.lang.String getSourceDatabaseName()
java.lang.String getCommandType()
java.lang.String getObjectOwner()
java.lang.String getObjectName()
byte[] getTag()
byte[] getPosition()
java.lang.String getTransactionId()
java.lang.Object getAttribute(java.lang.Object attributeName)
attributeName
- The attribute nameoracle.sql.DATE getSourceTime()
|
Oracle® Database XStream Java API Reference 12c Release 1 (12.1) E17774-03 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |