11.01.2013 Views

Oracle Forms Developer – Form Builder Reference, Volume 1

Oracle Forms Developer – Form Builder Reference, Volume 1

Oracle Forms Developer – Form Builder Reference, Volume 1

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ISSUE_ROLLBACK built-in<br />

Description<br />

When called from an On-Rollback trigger, initiates the default <strong>Form</strong> <strong>Builder</strong> processing for rolling back<br />

to the indicated savepoint. This built-in is included primarily for applications that will run against a non-<br />

ORACLE data source.<br />

Syntax<br />

PROCEDURE ISSUE_ROLLBACK<br />

(savepoint_name VARCHAR2);<br />

Built-in Type unrestricted procedure<br />

Enter Query Mode no<br />

Parameters<br />

savepoint name Name of the savepoint to which you want to rollback. A null<br />

savepoint_name causes a full rollback.<br />

ISSUE_ROLLBACK restrictions<br />

Results are unpredictable when ISSUE_ROLLBACK is used outside an On-Rollback trigger or when<br />

used with a savepoint other than that provided by a call to<br />

GET_APPLICATION_PROPERTY(SAVEPOINT_NAME).<br />

ISSUE_ROLLBACK examples<br />

/*<br />

** Built-in: ISSUE_ROLLBACK<br />

** Example: Perform <strong>Form</strong> <strong>Builder</strong> standard Rollback processing.<br />

** Decide whether to use this built-in based on a<br />

** global flag setup at startup by the form.<br />

** perhaps based on a parameter.<br />

** trigger: On-Rollback<br />

*/<br />

DECLARE<br />

sp_name VARCHAR2(80);<br />

BEGIN<br />

/*<br />

** Get name of the savepoint to which <strong>Form</strong> <strong>Builder</strong> needs to<br />

** rollback. (NULL = Full Rollback)<br />

*/<br />

sp_name := Get_Application_Property(SAVEPOINT_NAME);<br />

/*<br />

** Check the global flag we setup at form startup<br />

*/<br />

IF :Global.Using_Transactional_Triggers = ’TRUE’ THEN<br />

User_Exit(’my_rollbk name=’||sp_name);<br />

ELSE<br />

Issue_Rollback(sp_name);<br />

END IF;<br />

END;<br />

263

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!