Serializable
public abstract class DatabaseChangeEvent extends EventObject
Modifier and Type | Class | Description |
---|---|---|
static class |
DatabaseChangeEvent.AdditionalEventType |
|
static class |
DatabaseChangeEvent.EventType |
source
Modifier | Constructor | Description |
---|---|---|
protected |
DatabaseChangeEvent(Object source) |
Modifier and Type | Method | Description |
---|---|---|
abstract DatabaseChangeEvent.AdditionalEventType |
getAdditionalEventType() |
Retrieve the additional event type.
|
abstract String |
getConnectionInformation() |
Retrieves a description of the TCP connection on which the notification was received.
|
abstract String |
getDatabaseName() |
Retrieves the name of the database.
|
abstract DatabaseChangeEvent.EventType |
getEventType() |
Retrieve the event type.
|
abstract QueryChangeDescription[] |
getQueryChangeDescription() |
For query change (
EVENT_TYPE_QUERYCHANGE ) kind of events, this method returns the description of the changes for each query which result has changed. |
abstract long |
getRegId() |
Retrieves the identification of the registration that generated this event on the server.
|
abstract int |
getRegistrationId() |
Deprecated.
Use getRegId instead.
|
abstract TableChangeDescription[] |
getTableChangeDescription() |
For object change (
EVENT_TYPE_OBJCHANGE ) kind of events, this method returns the description of the changes for each table that was changed. |
abstract byte[] |
getTransactionId() |
Returns the id of the transaction (xid) that when committed was responsible for generating this event.
|
abstract String |
getTransactionId(boolean isLittleEndian) |
Returns the id of the transaction (xid) that when committed was responsible for generating this event.
|
abstract String |
toString() |
getSource
protected DatabaseChangeEvent(Object source)
public abstract DatabaseChangeEvent.EventType getEventType()
public abstract DatabaseChangeEvent.AdditionalEventType getAdditionalEventType()
public abstract TableChangeDescription[] getTableChangeDescription()
EVENT_TYPE_OBJCHANGE
) kind of events, this method returns the description of the changes for each table that was changed.
Returns null
for other kinds of events.
public abstract QueryChangeDescription[] getQueryChangeDescription()
EVENT_TYPE_QUERYCHANGE
) kind of events, this method returns the description of the changes for each query which result has changed.
Returns null
for other kinds of events.
public abstract String getConnectionInformation()
public abstract String getDatabaseName()
public abstract int getRegistrationId()
public abstract long getRegId()
public abstract byte[] getTransactionId()
select dbms_transaction.local_transaction_id from dual
and you get back 17.9.2339
. You then commit this transaction which generates an event. Calling getTransactionId()
on this event will return 0x11 0x00 0x09 0x00 0x23 0x09 0x00 0x00
if the server is running on a little endian platform and 0x00 0x11 0x00 0x09 0x00 0x00 0x09 0x23
if the server is big endian.getTransactionId(boolean)
public abstract String getTransactionId(boolean isLittleEndian)
String
format. For example, this method returns 17.9.2339
which is the same value as what select dbms_transaction.local_transaction_id from dual
would have returned from the transaction before it was committed.isLittleEndian
- the endian-ness of the server. true
if the server is little endian and false
otherwise.getTransactionId()
public abstract String toString()
toString
in class EventObject