JDBC provides a SQL interface for Java applications. If you want to access relational data from Java, you must use JDBC calls.
You can use JDBC with the Adaptive Server SQL interface in either of two ways:
JDBC on the client – Java client applications can make JDBC calls to Adaptive Server using the Sybase jConnect JDBC driver.
JDBC on the server – Java classes installed in the database can make JDBC calls to the database using the JDBC driver native to Adaptive Server.
The use of JDBC calls to perform SQL operations is essentially the same in both contexts.
This chapter provides sample classes and methods that describe how you might perform SQL operations using JDBC. These classes and methods are not intended to serve as templates, but as general guidelines.