Re: Schema Synchronization "magic" - resolved
Re: Schema Synchronization "magic" - resolved
- Subject: Re: Schema Synchronization "magic" - resolved
- From: Chuck Hill <email@hidden>
- Date: Thu, 17 Aug 2006 20:35:23 -0700
Greetings!
On Aug 17, 2006, at 8:11 PM, Aaron Rosenzweig wrote:
Hello WOFriends,
Ok, sorry, a few minutes after composing the prior message I had an
epiphany.
I realized there is an "Apple" MySQLPlugin:
http://developer.apple.com/documentation/WebObjects/Reference/api/
com/webobjects/jdbcadaptor/MySQLPlugIn.html
Then, I read:
"JDBCPlugIn is used to customize the JDBCAdaptor for a particular
database and its JDBC driver. The JDBCPlugIn for a model can be
specified in the model's connection dictionary. *****If it's left
unspecified, the adaptor takes a guess.*****"
This tidbit was found at the top of this link:
http://developer.apple.com/documentation/WebObjects/Reference/api/
com/webobjects/jdbcadaptor/JDBCPlugIn.html
The adaptor takes a guess! aha! it must guess that I'm using MySQL
and it finds the Apple plugin for me, but where is this plugin?
com.webobjects.jdbcadaptor.MySQLPlugIn
I took a guess delved into "javajdbcadaptor.jar". Low and behold,
that is where all the Apple made plugins live.
Very good!
It doesn't look TOO hard to make a new JDBC adaptor for a
particular database. Seems like Apple has really thought things out
well and provided a bunch of cookie cutter methods that simply need
to be implemented. It will take some time, and testing, but looks
very doable (not rocket science). I still get goose bumps every day
that I use WebObjects :-)
Yes, the design of WO is excellent. There are ways to customize or
tweak almost anything that you need. There are some Open Source
examples of JDBC plugins around. The PostgreSQL one in Project
Wonder comes immediately to mind. The WO API documentation and an
example or two and you should be on your way. Practical WebObjects
(see sig) has a short sectiion on how adpaptors, plugins et al work
to connect to the database. You may find it enlightening.
Has anyone started (or finished) this task for Firebird?
Not I.
Chuck
--
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems. http://www.global-village.net/products/practical_webobjects
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden