SQLJ implements-clause

The implements clause derives one or more classes from a Java™ interface.

Syntax

Read syntax diagramSkip visual syntax diagramimplements,interface-element

interface-element:

Read syntax diagramSkip visual syntax diagramsqlj.runtime.ForUpdatesqlj.runtime.Scrollableuser-specified-interface-class

Description

interface-element
Specifies a user-defined Java interface, the SQLJ interface sqlj.runtime.ForUpdate or the SQLJ interface sqlj.runtime.Scrollable.

You need to implement sqlj.runtime.ForUpdate when you declare an iterator for a positioned UPDATE or positioned DELETE operation. See "Perform positioned UPDATE and DELETE operations in an SQLJ application" for information on performing a positioned UPDATE or positioned DELETE operation in SQLJ.

You need to implement sqlj.runtime.Scrollable when you declare a scrollable iterator. See "Use scrollable iterators in an SQLJ application" for information on scrollable iterators.