public class XStreamUtility
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_POS_LENGTH |
static int |
POS_LENGTH_V1 |
static int |
POS_LENGTH_V2 |
static int |
POS_VERSION_V1 |
static int |
POS_VERSION_V2 |
static int |
SCN_START_V1 |
static int |
SCN_START_V2 |
| Constructor and Description |
|---|
XStreamUtility() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
convertSCNToPosition(oracle.sql.NUMBER scn)
Converts the given SCN to a XStream position.
|
static byte[] |
convertSCNToPosition(oracle.sql.NUMBER scn, int version)
Converts the given SCN to a XStream position.
|
static oracle.sql.NUMBER |
getCommitSCNFromPosition(byte[] position)
Gets the commit system change number (SCN) from a position.
|
static oracle.sql.NUMBER |
getSCNFromPosition(byte[] position)
Gets the SCN from a position.
|
public static final int POS_VERSION_V1
public static final int POS_VERSION_V2
public static final int SCN_START_V1
public static final int SCN_START_V2
public static final int POS_LENGTH_V1
public static final int POS_LENGTH_V2
public static final int MAX_POS_LENGTH
public static oracle.sql.NUMBER getSCNFromPosition(byte[] position)
throws StreamsException
position - An Oracle-specific XStream position.StreamsException - if error occurs when retrieving SCN.public static oracle.sql.NUMBER getCommitSCNFromPosition(byte[] position)
throws StreamsException
position - An Oracle-specific XStream position.StreamsException - if error occurs when retrieving CSCN.public static byte[] convertSCNToPosition(oracle.sql.NUMBER scn)
throws StreamsException
scn - the system change number in the form of oracle.sql.NUMBER.StreamsException - if error occurs when converting SCN.public static byte[] convertSCNToPosition(oracle.sql.NUMBER scn,
int version)
throws StreamsException
scn - The system change number in the form of oracle.sql.NUMBER.version - LCR identifier version.StreamsException - if error occurs when converting SCN.