2007年10月14日 星期日

Read-only methods (PRAGMA methods)

Methods can be divided into two types:

  • Normal methods

These methods is methods that manipulates data in the database.

  • Read-only methods (PRAGMA methods)

These methods are methods that are connected to a PRAGMA that guarantees that the method never writes to the database.
This means that PRAGMA methods always are read-only. All PRAGMA methods is automatically granted when the package is granted.
There are a few methods that are considered to be PRAGMA methods by naming standard in IFS Applications (even if they are not connected to a PRAGMA in the code).
These methods are:

ENUMERATE
EXIST
EXIST_DB
LOCK__
LANGUAGE_REFRESHED
INIT
FINITE_STATE_DECODE__
ENUMERATE_STATES__
FINITE_STATE_EVENTS__
ENUMERATE_EVENTS__
Views