|
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
oracle.streams.DefaultRowLCR
public class DefaultRowLCR
The DefaultRowLCR class provides an Oracle default implementation of the RowLCR interface.
| Field Summary |
|---|
| Fields inherited from interface oracle.streams.RowLCR |
|---|
DELETE, INSERT, LOB_ERASE, LOB_TRIM, LOB_WRITE |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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() |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface oracle.streams.LCR |
|---|
getAttribute, getCommandType, getObjectName, getObjectOwner, getPosition, getSourceDatabaseName, getSourceTime, getTag, getTransactionId, setAttribute, setCommandType, setObjectName, setObjectOwner, setPosition, setSourceDatabaseName, setSourceTime, setTag, setTransactionId |
| Constructor Detail |
|---|
public 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()
| Method Detail |
|---|
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 the
public 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 LCRsjava.sql.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.StreamsExceptionpublic 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.java.sql.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.StreamsExceptionpublic 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.
|
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 | |||||||