00001
00018 #ifndef INC_RVC_DBFIELDCONSTRAINT_H
00019 #define INC_RVC_DBFIELDCONSTRAINT_H
00020
00021 #ifndef INC_MI32_STDDEFNS_H
00022 #include <mi32/stddefns.h>
00023 #endif
00024
00025 namespace RVC {
00026
00029 enum DBFIELDCONSTRAINT {
00030 DBFIELDCONSTRAINT_Range_MinExclusive = 0x00000001,
00031 DBFIELDCONSTRAINT_Range_MaxExclusive = 0x00000002,
00032 DBFIELDCONSTRAINT_Range_MinInclusive = 0x00000004,
00033 DBFIELDCONSTRAINT_Range_MaxInclusive = 0x00000008,
00034
00035 DBFIELDCONSTRAINT_Default_Constant = 0x00000010,
00036 DBFIELDCONSTRAINT_Default_Previous = 0x00000020,
00037 DBFIELDCONSTRAINT_Default_Empty = 0x00000040,
00038 DBFIELDCONSTRAINT_Default_Increment = 0x00000080,
00039
00040 DBFIELDCONSTRAINT_Case_AllUpper = 0x00000100,
00041 DBFIELDCONSTRAINT_Case_AllLower = 0x00000200,
00042 DBFIELDCONSTRAINT_Case_FirstLetterCap = 0x00000400,
00043 DBFIELDCONSTRAINT_Case_FirstWordCap = 0x00000800,
00044
00045 DBFIELDCONSTRAINT_PrimaryKey_MustExist = 0x00008000,
00046
00047 DBFIELDCONSTRAINT_PrimaryKey_AutoAdd = 0x00010000,
00048 DBFIELDCONSTRAINT_PrimaryKey_PromptAdd = 0x00020000,
00049 DBFIELDCONSTRAINT_UI_ComboBox = 0x00040000,
00050 DBFIELDCONSTRAINT_UI_OptionMenu = 0x00080000,
00051
00052 DBFIELDCONSTRAINT_NotNull = 0x00100000,
00053 DBFIELDCONSTRAINT_UI_AutoComplete = 0x00400000,
00054 DBFIELDCONSTRAINT_ValidChars_Invert = 0x00800000,
00055
00056 DBFIELDCONSTRAINT_ValueList_AllowDups = 0x01000000,
00057 DBFIELDCONSTRAINT_ValueList_NoDups = 0x08000000,
00058
00059
00060 DBFIELDCONSTRAINT_Range_Min_MASK = (DBFIELDCONSTRAINT_Range_MinExclusive | DBFIELDCONSTRAINT_Range_MinInclusive),
00061 DBFIELDCONSTRAINT_Range_Max_MASK = (DBFIELDCONSTRAINT_Range_MaxExclusive | DBFIELDCONSTRAINT_Range_MaxInclusive),
00062 DBFIELDCONSTRAINT_Range_MASK = (DBFIELDCONSTRAINT_Range_Min_MASK | DBFIELDCONSTRAINT_Range_Max_MASK),
00063 DBFIELDCONSTRAINT_Default_MASK = (DBFIELDCONSTRAINT_Default_Constant | DBFIELDCONSTRAINT_Default_Previous | DBFIELDCONSTRAINT_Default_Empty | DBFIELDCONSTRAINT_Default_Increment),
00064 DBFIELDCONSTRAINT_Case_MASK = (DBFIELDCONSTRAINT_Case_AllUpper | DBFIELDCONSTRAINT_Case_AllLower | DBFIELDCONSTRAINT_Case_FirstLetterCap | DBFIELDCONSTRAINT_Case_FirstWordCap),
00065 DBFIELDCONSTRAINT_PrimaryKey_MASK = (DBFIELDCONSTRAINT_PrimaryKey_MustExist | DBFIELDCONSTRAINT_PrimaryKey_AutoAdd | DBFIELDCONSTRAINT_PrimaryKey_PromptAdd),
00066 };
00067
00068 DEFINE_ENUM_OP_BITWISE(DBFIELDCONSTRAINT)
00069
00070 }
00071
00072 #endif // INC_RVC_DBFIELDCONSTRAINT_H