isCOBOL Database Bridge : Extending EDBI routines through entry points
Extending EDBI routines through entry points
The code of EDBI routines can be customized by adding additional operations in dedicated entry points.
This feature is activated by the iscobol.compiler.easydb.entry_points (boolean) Compiler’s configuration property or by the -entrypoints option of EDBIIS.
If the feature is activated, the generated EDBI routine will reference the following copybooks:
Copybook
Content
edbi.ini
The ENVIRONMENT DIVISION of the program. Here you can specify SPECIAL-NAMES as well as a REPOSITORY for classes that you wish to reference.
edbi.wrk
Additional WORKING-STORAGE data items.
edbi.prd
Additional PROCEDURE DIVISION code.
 
The following paragraphs must be included here:
BEFORE-TABLE-OPEN.
BEFORE-TABLE-OPEN-EX.
AFTER-TABLE-OPEN.
AFTER-TABLE-OPEN-EX.
BEFORE-TABLE-CLOSE.
BEFORE-TABLE-CLOSE-EX.
AFTER-TABLE-CLOSE.
AFTER-TABLE-CLOSE-EX.
BEFORE-TABLE-INSERT.
BEFORE-TABLE-INSERT-EX.
AFTER-TABLE-INSERT.
AFTER-TABLE-INSERT-EX.
BEFORE-TABLE-UPDATE.
BEFORE-TABLE-UPDATE-EX.
AFTER-TABLE-UPDATE.
AFTER-TABLE-UPDATE-EX.
BEFORE-TABLE-DELETE.
BEFORE-TABLE-DELETE-EX.
AFTER-TABLE-DELETE.
AFTER-TABLE-DELETE-EX.
BEFORE-TABLE-READ.
BEFORE-TABLE-READ-EX.
BEFORE-TABLE-LOCK.
AFTER-TABLE-LOCK.
AFTER-TABLE-LOCK-EX.
BEFORE-TABLE-UNLOCK.
BEFORE-TABLE-UNLOCK-EX.
AFTER-TABLE-UNLOCK.
AFTER-TABLE-UNLOCK-EX.
BEFORE-DROP-CREATE.
BEFORE-DROP-CREATE-EX.
AFTER-DROP-CREATE.
AFTER-DROP-CREATE-EX.
BEFORE-TABLE-DROP.
BEFORE-TABLE-DROP-EX.
AFTER-TABLE-DROP.
AFTER-TABLE-DROP-EX.
BEFORE-TABLE-START.
BEFORE-TABLE-START-EX.
AFTER-TABLE-START.
AFTER-TABLE-START-EX.
It’s your duty to create these copybooks and make them available at compile time.
The copybooks host the data items and the statements that you wish to add to the standard EDBI routine code. BEFORE-operation and AFTER-operation paragraphs are performed by the EDBI routine before and after each i-o operation.