public class DefaultRowLCR extends AbstractLCR implements RowLCR
DELETE, INSERT, LOB_ERASE, LOB_TRIM, LOB_WRITEATTRIBUTE_ROOT_NAME, ATTRIBUTE_ROW_ID, ATTRIBUTE_SERIAL_NUM, ATTRIBUTE_SESSION_NUM, ATTRIBUTE_THREAD_NUM, ATTRIBUTE_TX_NAME, ATTRIBUTE_USERNAME| Constructor and Description |
|---|
DefaultRowLCR()
Constructs a RowLCR object with NULL values.
|
DefaultRowLCR(java.lang.String sourceDatabaseName, java.lang.String commandType, java.lang.String objectOwner, java.lang.String objectName, java.lang.String transactionId, byte[] tag, byte[] position, oracle.sql.DATE sourceTime)
Constructs a RowLCR object with given LCR parameters.
|
| Modifier and Type | Method and Description |
|---|---|
ColumnValue[] |
getBinds()
Gets the bind values that bind the SQL statement generated using getStatement().
|
java.lang.String |
getDateFormat()
Gets the date format of a row LCR.
|
ColumnValue[] |
getNewValues()
Gets the list of new column values in a row LCR.
|
ColumnValue[] |
getOldValues()
Gets the list of old column values in a row LCR.
|
java.lang.String |
getStatement(boolean bind)
Generates a SQL statement from the row LCR.
|
java.lang.String |
getTimeStampFormat()
Gets the timestamp format.
|
java.lang.String |
getWhereClause(boolean bind)
Gets a WHERE clause for the change that is encapsulated in the row LCR.
|
ColumnValue[] |
getWhereClauseBinds()
Gets the bind array to be used with the WHERE clause generated by getWhereClause().
|
boolean |
hasChunkData()
Indicates whether this LCR contains chunk data for LOB, LONG, or XMLTYPE columns.
|
boolean |
hasIDKeyColumnsOnly()
Indicates whether the LCR only has identification key columns.
|
boolean |
isSequenceLCR()
Indicates whether the LCR is a sequence LCR, which is generated by accessing NEXTVAL of an Oracle sequence.
|
void |
setChunkDataFlag(boolean chunkDataFlag)
Sets the chunkDataFlag.
|
void |
setDateFormat(java.lang.String dateFormat)
Sets the date format that is used to convert a DATE value to a String value.
|
void |
setIDKeyColumnsOnly(boolean IDKeyColumnsOnly)
Sets whether or not this LCR only has identification key columns.
|
void |
setNewValues(ColumnValue[] newValues)
Sets the new column values list for a RowLCR.
|
void |
setOldValues(ColumnValue[] oldValues)
Sets the old column values list for a row LCR.
|
void |
setSequenceLCRFlag(boolean sequenceLCRFlag)
Sets the sequence LCR flag.
|
void |
setTimeStampFormat(java.lang.String timeStampFormat)
Sets the timestamp format that is used to convert a TIMESTAMP value to a String value
|
java.lang.String |
toString() |
getAttribute, getAttributeName, getAttributesList, getAttributeValue, getCommandType, getCommitSCN, getMessageTrackingLabel, getNumAttributes, getObjectName, getObjectOwner, getPosition, getRootName, getSCN, getSourceDatabaseName, getSourceTime, getTag, getTransactionId, setAttribute, setCommandType, setMessageTrackingLabel, setObjectName, setObjectOwner, setPosition, setRootName, setSourceDatabaseName, setSourceTime, setTag, setTransactionIdequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAttribute, getCommandType, getObjectName, getObjectOwner, getPosition, getSourceDatabaseName, getSourceTime, getTag, getTransactionId, setAttribute, setCommandType, setObjectName, setObjectOwner, setPosition, setSourceDatabaseName, setSourceTime, setTag, setTransactionIdpublic DefaultRowLCR(java.lang.String sourceDatabaseName,
java.lang.String commandType,
java.lang.String objectOwner,
java.lang.String objectName,
java.lang.String transactionId,
byte[] tag,
byte[] position,
oracle.sql.DATE sourceTime)
sourceDatabaseName - source database name.commandType - RowLCR command type.objectOwner - object owner.objectName - object name.transactionId - transaction ID.tag - LCR tag.position - LCR position.sourceTime - source timestamp.public DefaultRowLCR()
public ColumnValue[] getOldValues()
getOldValues in interface RowLCRpublic ColumnValue[] getNewValues()
getNewValues in interface RowLCRpublic void setOldValues(ColumnValue[] oldValues)
setOldValues in interface RowLCRoldValues - The old column value arraypublic void setNewValues(ColumnValue[] newValues)
setNewValues in interface RowLCRnewValues - The new column value arraypublic boolean hasChunkData()
hasChunkData in interface RowLCRpublic void setChunkDataFlag(boolean chunkDataFlag)
setChunkDataFlag in interface RowLCRchunkDataFlag - indicates whether this LCR contains chunk data.public java.lang.String getDateFormat()
public java.lang.String getTimeStampFormat()
public void setDateFormat(java.lang.String dateFormat)
dateFormat - The date format to be used to convert the date topublic void setTimeStampFormat(java.lang.String timeStampFormat)
timeStampFormat - The timestamp format to be used to convert thepublic java.lang.String getStatement(boolean bind)
throws StreamsException
bind - When true, generates SQL with bind variables. When false, generates SQL with inline values. LOB values cannot be inlined. A StreamsException is thrown when set to false and the row LCR contains LOB values. This value is only used for non-statement LCRsStreamsException - Thrown if any of the datatypes cannot be unparsed to a string or if any datatype of the columns in the table does not have JDBC equivalent.public ColumnValue[] getBinds()
public java.lang.String getWhereClause(boolean bind)
throws StreamsException
bind - When true, generates SQL with bind variables. When false, generates SQL with inline values. LOB values cannot be inlined. A StreamsException is thrown when set to false and the row LCR contains LOB values.StreamsException - Thrown if any of the datatypes cannot be unparsed to a string or if any datatype of the columns in the table does not have JDBC equivalent.public ColumnValue[] getWhereClauseBinds()
public java.lang.String toString()
toString in class java.lang.Objectpublic void setSequenceLCRFlag(boolean sequenceLCRFlag)
sequenceLCRFlag - indicates whether this LCR is a sequence LCR, which is generated by accessing NEXTVAL of an Oracle sequence.public boolean isSequenceLCR()
public boolean hasIDKeyColumnsOnly()
public void setIDKeyColumnsOnly(boolean IDKeyColumnsOnly)
IDKeyColumnsOnly - indicates whether this LCR only has identification columns. Note this is not typically expected to be true.