|
EclipseLink 2.4.0, build 'v20120608-r11652' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.persistence.platform.database.oracle.dcn.OracleChangeNotificationListener
public class OracleChangeNotificationListener
PUBLIC: Listener for Oracle Database Change event Notification (DCN). This allows the EclipseLink cache to be invalidated by database events.
org.eclipse.persistence.descriptors.invalidation.DatabaseEventNotificationPolicy
Field Summary | |
---|---|
protected java.util.Map<org.eclipse.persistence.internal.helper.DatabaseTable,ClassDescriptor> |
descriptorsByTable
Map each table to the descriptor that needs to be invalidated. |
static java.lang.String |
ORA_TRANSACTION_ID
|
protected oracle.jdbc.dcn.DatabaseChangeRegistration |
register
The Oracle JDBC registration object. |
static java.lang.String |
ROWID
|
protected ValueReadQuery |
transactionIdQuery
Cache query for transaction id. |
Constructor Summary | |
---|---|
OracleChangeNotificationListener()
|
Method Summary | |
---|---|
java.util.Map<org.eclipse.persistence.internal.helper.DatabaseTable,ClassDescriptor> |
getDescriptorsByTable()
INTERNAL: Return the mapping of tables to descriptors. |
oracle.jdbc.dcn.DatabaseChangeRegistration |
getRegister()
INTERNAL: Return the database register. |
void |
initialize(ClassDescriptor descriptor,
org.eclipse.persistence.internal.sessions.AbstractSession session)
Initialize the descriptor to receive database change events. |
void |
register(Session session)
INTERNAL: Register the event listener with the database. |
void |
remove(Session session)
INTERNAL: Remove the event listener from the database. |
protected void |
setDescriptorsByTable(java.util.Map<org.eclipse.persistence.internal.helper.DatabaseTable,ClassDescriptor> descriptorsByTable)
INTERNAL: Set the mapping of tables to descriptors. |
protected void |
setRegister(oracle.jdbc.dcn.DatabaseChangeRegistration register)
INTERNAL: Set the database register. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String ORA_TRANSACTION_ID
public static java.lang.String ROWID
protected oracle.jdbc.dcn.DatabaseChangeRegistration register
protected java.util.Map<org.eclipse.persistence.internal.helper.DatabaseTable,ClassDescriptor> descriptorsByTable
protected ValueReadQuery transactionIdQuery
Constructor Detail |
---|
public OracleChangeNotificationListener()
Method Detail |
---|
public void register(Session session)
register
in interface DatabaseEventListener
public void initialize(ClassDescriptor descriptor, org.eclipse.persistence.internal.sessions.AbstractSession session)
initialize
in interface DatabaseEventListener
public void remove(Session session)
remove
in interface DatabaseEventListener
public oracle.jdbc.dcn.DatabaseChangeRegistration getRegister()
protected void setRegister(oracle.jdbc.dcn.DatabaseChangeRegistration register)
public java.util.Map<org.eclipse.persistence.internal.helper.DatabaseTable,ClassDescriptor> getDescriptorsByTable()
protected void setDescriptorsByTable(java.util.Map<org.eclipse.persistence.internal.helper.DatabaseTable,ClassDescriptor> descriptorsByTable)
|
EclipseLink 2.4.0, build 'v20120608-r11652' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |