Hi Armin,
Armin Waibel [EMAIL PROTECTED] wrote:
> I propose to add the associated JdbcConnectionDescriptor
> as argument too
>
> >>>=========================
> >>>ConnectionValidator.java
> >>>=========================
> >>>package org.apache.ojb.broker.accesslayer;
> >>>
> >>>public interface ConnectionValidator
> >>>{
> >>> public boolean isValid(JdbcConnectionDescriptor jcd, Connection
> >>conn);
> >>>}
> >>>
> >>>
> then it's possible to lookup the org.apache.ojb.broker.platforms.Platform
> implementation for the used RDBMS in the ConnectionValidator
> implementation.
>
> In Platform interface we can add a "String defaultValidationQuery()" method
> and in the implemetation classes we build queries against e.g. a DB system
> table
> or return null if not supported. Then it will be easy to build some sort of
> base ConnectionValidator.
>
> What do you think?
This sounds fantastic. Thanks for the discussion!
Sincerely yours,
Justis Peters
Oculan Corp.
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]