Accessing InterClient Extensions to the JDBC

To access InterClient method extensions you should cast a generically declared java.sql object instance to the corresponding interbase.interclient instance.

The following code fragment shows how to cast an InterClient driver instance in order to access a hypothetical InterClient extension method Driver.isBuzzwordCompliant ():

// Create an InterClient driver as a generic JDBC driver
java.sql.Driver driver = new interbase.interclient.Driver ();

// Since isBuzzwordCompliant() is NOT a JDBC method,
// cast the generic driver instance to its actual interclient instance.
if (((interbase.interclient.Driver) driver).isBuzzwordCompliant ())
  System.out.println("It's Buzzword compliant too!");
This same approach may be applied to all InterClient method extensions to the standard JDBC classes.