JCONNECT_VERSION connection property  Invoking the jConnect driver

Chapter 2: Programming Information

CANCEL_ALL connection property

CANCEL_ALL is a Boolean-valued connection property for specifying the behavior of the Statement.cancel( ) method.

NoteIn jConnect version 4.0 and earlier, the default for CANCEL_ALL is true. In jConnect version 4.1 and later, to comply with the JDBC specification, if you set the connection property JCONNECT_VERSION to “4” or above, the default setting for CANCEL_ALL is false.

The settings for CANCEL_ALL have the following effect on Statement.cancel( ):

The following example sets CANCEL_ALL to false. In the example, props is a Properties object for specifying connection properties.

props.put("CANCEL_ALL", "false");

NoteTo cancel the execution of all Statement objects on a connection, regardless of whether or not they have begun execution on the server, use the extension method SybConnection.cancel( ).





Copyright © 2003. Sybase Inc. All rights reserved. Invoking the jConnect driver

View this book as PDF