com.continuent.tungsten.replicator.database
Interface EventId

All Superinterfaces:
java.lang.Comparable<EventId>
All Known Implementing Classes:
MySQLEventId, OracleEventId

public interface EventId
extends java.lang.Comparable<EventId>

Denotes a native event ID, which is the ID used to identify [re-]start locations in the DBMS log when extracting events.


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.
 boolean isValid()
          Returns true if this is a syntactically valid event ID.
 java.lang.String toString()
          Prints event ID in standard format for this DBMS type.
 

Method Detail

getDbmsType

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


isValid

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


compareTo

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 java.lang.Comparable<EventId>
See Also:
Comparable.compareTo(java.lang.Object)

toString

java.lang.String toString()
Prints event ID in standard format for this DBMS type.

Overrides:
toString in class java.lang.Object
See Also:
Object.toString()