views:

96

answers:

1

We have an application (Java) with an own OR mapper. Within this system we have what can be compared to Hibernate's interceptors (we call it triggers): Do specific actions just before saving data in the database, after it's deleted and so on. The underlying database is MySQL.

Now we would like to use tools such as Pentaho Data Integration or Talend to convert data to put it into our system. It's no problem to do that directly on the SQL level, but by doing so we loose the built-in power of our triggers.

Is there a way to somehow integrate any of the Data Integration solutions into our existing application? It would be great if there was a way to write into instances of our classes instead of writing into the database directly.

Any hints welcome :-)

A: 

2 ways with Pentaho data integration I can think of straight off:

  1. Simply create a plugin which adds/deletes data - you could copy the existing salesforce insert/update plugins, they would be a good start - rip out all the salesforce code and replace with yours.

  2. Perhaps harder; But maybe more satisfying - Write a jdbc driver which uses your code!

Codek
regarding option 1: that would basically mean to implement one plugin per class I want to create objects for, correct?
DaDaDom
Err, not exactly sure what you mean - but no I dont think so. you'd make 1 plugin for each operation, such as update a record, upsert records, insert, delete etc. The code inside that then handles how you update your objects.
Codek