Obtaining a JDBC connection: the Connecter( ) method  Executing imperative SQL operations: the doSQL( ) method

Chapter 4: Data Access Using JDBC

Routing the action to other methods: the doAction( ) method

The doAction( ) method routes the call to one of the other methods, based on the action parameter.

doAction( ) has the Connection parameter, which it simply relays to the target method. It also has a parameter locale, which indicates whether the call is server- or client-side. Connection raises an exception if either create procedure or drop procedure is invoked in a server-side environment.





Copyright © 2005. Sybase Inc. All rights reserved. Executing imperative SQL operations: the doSQL( ) method

View this book as PDF