com.continuent.tungsten.replicator.database
Class OracleEventId

java.lang.Object
  extended by com.continuent.tungsten.replicator.database.OracleEventId
All Implemented Interfaces:
EventId, java.lang.Comparable<EventId>

public class OracleEventId
extends java.lang.Object
implements EventId

This class defines a OracleEventId

Version:
1.0
Author:
Jussi-Pekka Kurikka

Constructor Summary
OracleEventId(java.lang.String rawEventId)
           
 
Method Summary
 int compareTo(EventId eventId)
          Compares two event IDs using the file index and offset as determinants for collation.
 java.lang.String getDbmsType()
          Return the event ID DBMS type.
 long getSCN()
           
 boolean isValid()
          Returns true if this is a syntactically valid event ID.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.continuent.tungsten.replicator.database.EventId
toString
 

Constructor Detail

OracleEventId

public OracleEventId(java.lang.String rawEventId)
Method Detail

getDbmsType

public java.lang.String getDbmsType()
Return the event ID DBMS type.

Specified by:
getDbmsType in interface EventId
See Also:
EventId.getDbmsType()

isValid

public boolean isValid()
Returns true if this is a syntactically valid event ID.

Specified by:
isValid in interface EventId
See Also:
EventId.isValid()

compareTo

public int compareTo(EventId eventId)
Compares two event IDs using the file index and offset as determinants for collation. If the DBMS types are not the same or the eventID is invalid the comparison result is undefined.

Specified by:
compareTo in interface EventId
Specified by:
compareTo in interface java.lang.Comparable<EventId>
See Also:
EventId.compareTo(com.continuent.tungsten.replicator.database.EventId)

getSCN

public long getSCN()