|
Oracle JDBC API Reference 11g Release 2 ("11.2.0.3.0") |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.EventObject oracle.jdbc.dcn.DatabaseChangeEvent
public abstract class DatabaseChangeEvent
Once you have registered your interest into certain objects in the database, you get notified when these objects change. An instance of DatabaseChangeEvent represents such a notification.
Nested Class Summary | |
---|---|
static class |
DatabaseChangeEvent.AdditionalEventType
|
static class |
DatabaseChangeEvent.EventType
|
Field Summary | |
---|---|
static java.lang.String |
BUILD_DATE
|
static boolean |
TRACE
|
Method Summary | |
---|---|
abstract DatabaseChangeEvent.AdditionalEventType |
getAdditionalEventType()
Retrieve the additional event type. |
abstract java.lang.String |
getConnectionInformation()
Retrieves a description of the TCP connection on which the notification was received. |
abstract java.lang.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 java.lang.String |
getTransactionId(boolean isLittleEndian)
Returns the id of the transaction (xid) that when committed was responsible for generating this event. |
abstract java.lang.String |
toString()
|
Methods inherited from class java.util.EventObject |
---|
getSource |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String BUILD_DATE
public static final boolean TRACE
Method Detail |
---|
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 java.lang.String getConnectionInformation()
public abstract java.lang.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 java.lang.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 java.lang.String toString()
toString
in class java.util.EventObject
|
Oracle JDBC API Reference 11g Release 2 ("11.2.0.3.0") |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |