Templatedata class, Unload, Templatedata methods – HP NonStop G-Series User Manual

Page 286

Advertising
background image

The path to the template file.

Returns 0 if success; -1 if file cannot be opened.

Usage Load the template file into memory. The contents are cached until the unload method is
called.

unload

final void unload()

Usage Unload the cached template contents.

TemplateData Class

java.lang.Object
|
+----java.util.Dictionary
|
+----java.util.Hashtable
|
+----bea.web.TemplateData

This base class extends from java.util.Hashtable and it provides a fast mechanism to store and
retrieve a data element by name and index. The keys in the hash table are the names of the data
elements.

TemplateData Methods

The following methods are used in conjunction with the TemplateData class:

setValue -- by index

setValue

getValue -- by index

getValue

getBytesValue -- by index

getBytesValue

setBytesValue -- by index

setBytesValue

Advertising