Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [Transactions] [Teneo] What is the best way to create a NotificationFilter for the contents of a spe
[Transactions] [Teneo] What is the best way to create a NotificationFilter for the contents of a spe [message #601434] Sat, 20 January 2007 19:03
Chris Hines is currently offline Chris HinesFriend
Messages: 15
Registered: July 2009
Junior Member
Hi all,

I'm just getting started with EMF Transactions. So far I'm finding it very
useful. But, I'm having trouble with creating a NotificationFilter that
does what I want. Here is my scenario:

I am writing an RCP application that uses an EMF model to hold both runtime
and persistent data. The persistent data are managed by Teneo/Hibernate and
are contained by a hibernate://.. Resource inside my
TransactionalEditingDomain. The runtime data are contained by a different
Resource that is also inside my TransactionalEditingDomain.

I would like to have a ResourceSetListener that only responds to NOT_TOUCH
type changes on EObjects contained by the hibernate://.. resource. This
listener should respond to such events by calling save() on the
hibernate://.. resource to keep the database in synch with the live
application data.

I don't know how to construct the proper NotificationFilter to return from
the ResourceSetListener. None of the set of available static filters nor
any of the create...Filter() methods provided by class NotificationFilter
seem to fit my needs, and I'm not allowed to create a custom
NotificationFilter because it's constructor is declared with default

What am I missing?

I'm currently using EMF Transaction SDK 1.1.0.v200612220820.

Previous Topic:Teneo newbi, problems getting started
Next Topic:Live Validation not working!?
Goto Forum:

Current Time: Sun Apr 18 00:42:17 GMT 2021

Powered by FUDForum. Page generated in 0.01628 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top