1 /************** PlgDBSem H Declares Source Code File (.H) **************/
2 /*  Name: CHKLVL.H  Version 1.1                                        */
3 /*                                                                     */
4 /*  (C) Copyright to the author Olivier BERTRAND          2009         */
5 /*                                                                     */
6 /*  This file contains the definition of the checking level constants. */
7 /***********************************************************************/
8 
9 #if !defined(_CHKLVL_DEFINED_)
10 #define      _CHKLVL_DEFINED_
11 /***********************************************************************/
12 /*  Following definitions are used to indicate the level of checking.  */
13 /***********************************************************************/
14 enum CHKLVL {CHK_NO      = 0x00,      /* No checking                   */
15              CHK_TYPE    = 0x01,      /* Check types for Insert/Update */
16              CHK_UPDATE  = 0x02,      /* Two pass checking of Update   */
17              CHK_DELETE  = 0x04,      /* Indexed checking of Delete    */
18              CHK_JOIN    = 0x08,      /* Check types joining tables    */
19              CHK_OPT     = 0x10,      /* Automatic optimize on changes */
20              CHK_MANY    = 0x20,      /* Check many-to-many joins      */
21              CHK_ALL     = 0x3F,      /* All of the above              */
22              CHK_STD     = 0x1E,      /* Standard level of checking    */
23              CHK_MAXRES  = 0x40,      /* Prevent Maxres recalculation  */
24              CHK_ONLY    = 0x100};    /* Just check, no action (NIY)   */
25 
26 /***********************************************************************/
27 /*  Following definitions are used to indicate the execution mode.     */
28 /***********************************************************************/
29 enum XMOD {XMOD_EXECUTE =  0,         /* DOS execution mode            */
30            XMOD_PREPARE =  1,         /* Prepare mode                  */
31            XMOD_TEST    =  2,         /* Test mode                     */
32            XMOD_CONVERT =  3};        /* HQL conversion mode           */
33 
34 /***********************************************************************/
35 /*  Following definitions indicate the use of a temporay file.         */
36 /***********************************************************************/
37 enum USETEMP {TMP_NO    =  0,         /* Never                         */
38               TMP_AUTO  =  1,         /* Best choice                   */
39               TMP_YES   =  2,         /* Always                        */
40               TMP_FORCE =  3,         /* Forced for MAP tables         */
41               TMP_TEST  =  4};        /* Testing value                 */
42 
43 /***********************************************************************/
44 /*  Following definitions indicate conversion of TEXT columns.         */
45 /***********************************************************************/
46 enum TYPCONV {TPC_NO   =  0,          /* Never                         */
47               TPC_YES  =  1,          /* Always                        */
48 							TPC_FORCE = 2,          /* Also convert BLOBs            */
49 							TPC_SKIP =  3};         /* Skip TEXT columns             */
50 
51 #endif    // _CHKLVL_DEFINED_
52