}
public void fireEmbeddableEvent(EmbeddableEvent e, DataMap map) {
setDirty(true);
for (EventListener listener : listenerList.getListeners(EmbeddableListener.class)) {
EmbeddableListener temp = (EmbeddableListener) listener;
switch (e.getId()) {
case MapEvent.ADD:
temp.embeddableAdded(e, map);
break;
case MapEvent.CHANGE:
temp.embeddableChanged(e, map);
break;
case MapEvent.REMOVE:
temp.embeddableRemoved(e, map);
break;
default:
throw new IllegalArgumentException("Invalid RelationshipEvent type: " + e.getId());
}
}