|
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 |
public interface DatabaseChangeRegistration
oracle.jdbc.OracleStatement.setDatabaseChangeRegistration(oracle.jdbc.dcn.DatabaseChangeRegistration)
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface oracle.jdbc.NotificationRegistration |
---|
NotificationRegistration.RegistrationState |
Method Summary | |
---|---|
void |
addListener(DatabaseChangeListener listener)
Register a listener with this registration. |
void |
addListener(DatabaseChangeListener listener,
java.util.concurrent.Executor e)
Register a listener with this registration. |
long |
getRegId()
Returns the registration id provided by the database. |
int |
getRegistrationId()
Deprecated. This method is deprecated in 11.2. Use getRegId() instead. |
java.lang.String[] |
getTables()
Returns the name of the tables associated with this registration. |
void |
removeListener(DatabaseChangeListener listener)
Remove a listener from the list of registered listeners. |
Methods inherited from interface oracle.jdbc.NotificationRegistration |
---|
getDatabaseName, getRegistrationOptions, getState, getUserName |
Method Detail |
---|
int getRegistrationId()
getRegId()
instead.
long getRegId()
java.lang.String[] getTables()
void addListener(DatabaseChangeListener listener) throws java.sql.SQLException
Note that the listener's code will be executed in the thread owned by the driver.
java.sql.SQLException
void addListener(DatabaseChangeListener listener, java.util.concurrent.Executor e) throws java.sql.SQLException
This method lets you control which thread will execute the listener's code when an event occurs by specifying an executor. You can provide your own executor which can for example use a pool of threads.
java.sql.SQLException
void removeListener(DatabaseChangeListener listener) throws java.sql.SQLException
java.sql.SQLException
|
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 |