|
Ontimize 5.2072EN | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ontimize.db.event.DataPropagationListener
| Nested Class Summary | |
static class |
DataPropagationListener.OperationConfiguration
|
| Field Summary | |
protected java.lang.String |
configuration
String with the configuration of the data propagation |
protected int |
eventType
Type of event to listen to |
protected java.util.List |
operationConfiguration
List of operations to do when a new event happen |
| Constructor Summary | |
DataPropagationListener(java.lang.String configuration,
int eventType)
Create a new DataPropagationListener |
|
| Method Summary | |
void |
dataChanged(DataChangeEvent e)
|
void |
dataChanged(DataChangeEvent e,
java.sql.Connection con)
|
protected java.util.Hashtable |
getAttributesValues(java.util.Hashtable values,
java.util.Hashtable relations)
Get the attributes to update using the updated values in the original entity and the relation between the columns in the original entity and the new one |
protected java.util.Hashtable |
getKeysValues(DataChangeEvent event,
java.util.Hashtable relations,
java.sql.Connection con)
Get the keys to identify the record to modify in the new entity. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.lang.String configuration
protected int eventType
protected java.util.List operationConfiguration
| Constructor Detail |
public DataPropagationListener(java.lang.String configuration,
int eventType)
configuration - This string must be something like:
operationName1&entityName1&column1
:referenceColumn1:columnN:referenceColumnN
&key1:referenceKey1:keyN:referenceKeyNeventType - Event type can be DataChangeEvent.UPDATE_EVENT,
DataChangeEvent.INSERT_EVENT or
DataChangeEvent.DELETE_EVENT| Method Detail |
public void dataChanged(DataChangeEvent e,
java.sql.Connection con)
dataChanged in interface TransactionEntityDataChangeListener
protected java.util.Hashtable getAttributesValues(java.util.Hashtable values,
java.util.Hashtable relations)
values - relations -
protected java.util.Hashtable getKeysValues(DataChangeEvent event,
java.util.Hashtable relations,
java.sql.Connection con)
throws java.lang.Exception
event - relations - con -
java.lang.Exceptionpublic void dataChanged(DataChangeEvent e)
dataChanged in interface EntityDataChangeListener
|
Ontimize | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||