public class OracleChangeNotificationListener extends Object implements DatabaseEventListener
Modifier and Type | Field and Description |
---|---|
protected Map<org.eclipse.persistence.internal.helper.DatabaseTable,ClassDescriptor> |
descriptorsByTable
Map each table to the descriptor that needs to be invalidated.
|
static String |
ORA_TRANSACTION_ID |
protected oracle.jdbc.dcn.DatabaseChangeRegistration |
register
The Oracle JDBC registration object.
|
static String |
ROWID |
protected ValueReadQuery |
transactionIdQuery
Cache query for transaction id.
|
Constructor and Description |
---|
OracleChangeNotificationListener() |
Modifier and Type | Method and Description |
---|---|
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(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.
|
public static String ORA_TRANSACTION_ID
public static String ROWID
protected oracle.jdbc.dcn.DatabaseChangeRegistration register
protected Map<org.eclipse.persistence.internal.helper.DatabaseTable,ClassDescriptor> descriptorsByTable
protected ValueReadQuery transactionIdQuery
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 Map<org.eclipse.persistence.internal.helper.DatabaseTable,ClassDescriptor> getDescriptorsByTable()
protected void setDescriptorsByTable(Map<org.eclipse.persistence.internal.helper.DatabaseTable,ClassDescriptor> descriptorsByTable)
Copyright © 2007–2021 Eclipse.org - EclipseLink Project. All rights reserved.