beautypg.com

Template class, Template methods, Commit – HP NonStop G-Series User Manual

Page 285: Rollback, Load

background image

rollback

commit

int commit()

Returns 0 if successful; otherwise, a TUXEDO error number.

Usage Commit the transaction.

rollback

int rollback()

Returns 0 if successful; otherwise, a TUXEDO error number.

Usage Roll back the transaction.

Template Class

java.lang.Object
|
+----bea.web.Template

This base class processes a template and replaces tags of the form <%=name%> or indexed tags
of the form <%=name[index]%> (where name and index are user-defined constructs) with
values. name must start with an underscore (_) or letter and be followed by one or more letters,
digits, or underscores. The values from the

TemplateData Class

are used to populate the tags. If

a duplicate name exists in the multiple TemplateData objects, the later element has a higher
precedence.

Template Methods

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

load

unload

load

final int load(String path)

path