Reference | Help | Introduction | Slide Show | Class Hierarchy | InterClient
PREV | NEXT | FRAMES | NO FRAMES |  |

### Accessing InterClient Extensions to JDBC

To access InterClient method extensions, cast a generically declared java.sql object instance to its corresponding interbase.interclient instance before applying the method.

For example, the following code fragment shows how to cast an InterClient driver instance in order to access a hypothetical InterClient Driver extension method `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 interfaces.

For example code using the ServerManager API for servicing an InterBase server, see ServerManagerExample.java.

For a list of other extensions to the JDBC API, see the InterClient Extension API.

Reference | Help | Introduction | Slide Show | Class Hierarchy | InterClient
PREV | NEXT | FRAMES | NO FRAMES |  |

Send comments or suggestions to interclient@interbase.com