views:

68

answers:

1

Is there a (free) tool or framework which allows defining views over multiple data backends (preferably for java and based on objects)?

For example i have 2 databases: one database provides a table or class (doesn't matter much) PersonX(name, address), and the other one provides PersonY(name, dateOfBirth)

Now i want to create a view which joins them into Person(name, address, dateOfBirth) like (pseudo code):

Person(n, a, dob) := Couple(x.name, y.name) as n, x.address as a, y.dateOfBirth as dob From PersonX as x outer join PersonY as y on (x.name = y.name)

But i don't only want the view, i also want to be able to do updates on the view which should delegate changes back to the sources. This "Couple" keyword here should mean, that an update on the field Persion.name should be delegated to both underlying sources.

So from what i have seen about data integration it's all about creating views of some kind, so my question is related to that, but i don't have much experience on that topic.

any help on that is appreciated - thx :)

A: 

Some databases (e.g. Oracle) allow you to create "INSTEAD OF" triggers on views that convert inserts, updates and deletes on the view into DML on the underlying tables. No Java involved, but that's a good thing as it means the view can be used from any application.

Tony Andrews