Jolt class library reference, Section 7, jolt class library reference, Jolt methods – HP NonStop G-Series User Manual
Page 96: Methods for handling items

7. Jolt Class Library Reference
The Jolt Class Library consists of object-oriented Java language classes for accessing NonStop TUXEDO services and
defining transactions. The Jolt Class Library package is designed to be small, simple, and easy to incorporate into your
Java application. The classes for this package provide TUXEDO logon/logoff, synchronous calling, and transaction
services for a client Java applet.
The Jolt Class Library reference includes the following topics:
●
●
●
●
JoltRequestMessage Abstract Class
●
●
●
●
●
●
Each class description includes information about the class constructor and class methods.
To use the following information, you need to be generally familiar with the Java programming language and
object-oriented programming concepts. The reference material follows the Java standard terminology for classes and for
the methods that operate on the class instances.
For information about programming the Jolt Class Library, refer to
Section 6, Using the Jolt Class Library
For
information about the Jolt exception classes and related TUXEDO errors listed for the Jolt classes, refer to
Jolt Class Library Errors and Exceptions
Jolt Methods
The Jolt classes and class methods that form the Jolt Class Library follow the Java language structure and are intended for
use in Java programs. However, since the Jolt Class Library is designed for accessing TUXEDO System applications, you
need to be aware of how get, set, add, and delete methods operate within the context of transaction processing.
For example, if you are working with a series of account numbers for a banking transaction and are changing the value
from one account number to another account number, you must be aware of how the Jolt methods determine the position
of an item in a list. Understanding how these methods work will help you avoid inadvertently reversing the order of a
transaction, assigning incorrect values to an item, or deleting the wrong item.
Methods for Handling Items
The get, set, and setItem methods are used to obtain information about a specified item or to change information about a
specified item. The add methods append a specified item to a list and the delete and deleteItem methods remove specified
items. The following sections describe how these methods operate on an item in a list of items.
Changing the First Item Occurrence
The set and delete methods operate on the first occurrence of an item in a list. In Jolt, the first occurrence of an item is