Exemplo n.º 1
0
        public static void Confirm(XmlElement xmlElement,
                                   SecondaryBTreeDatabaseConfig secBtreeDBConfig,
                                   bool compulsory)
        {
            SecondaryDatabaseConfig secDBConfig =
                secBtreeDBConfig;

            SecondaryDatabaseConfigTest.Confirm(xmlElement,
                                                secDBConfig, compulsory);

            // Confirm secondary btree database specific configuration.
            Configuration.ConfirmCreatePolicy(xmlElement,
                                              "Creation", secBtreeDBConfig.Creation, compulsory);
            Configuration.ConfirmDuplicatesPolicy(xmlElement,
                                                  "Duplicates", secBtreeDBConfig.Duplicates, compulsory);
            Configuration.ConfirmUint(xmlElement, "MinKeysPerPage",
                                      secBtreeDBConfig.MinKeysPerPage, compulsory);
            Configuration.ConfirmBool(xmlElement,
                                      "NoReverseSplitting",
                                      secBtreeDBConfig.NoReverseSplitting, compulsory);
            Configuration.ConfirmBool(xmlElement,
                                      "UseRecordNumbers",
                                      secBtreeDBConfig.UseRecordNumbers,
                                      compulsory);
        }
Exemplo n.º 2
0
        public static void Confirm(XmlElement xmlElement,
                                   SecondaryRecnoDatabaseConfig secRecDBConfig,
                                   bool compulsory)
        {
            SecondaryDatabaseConfig secDBConfig =
                secRecDBConfig;

            SecondaryDatabaseConfigTest.Confirm(xmlElement,
                                                secDBConfig, compulsory);

            // Confirm secondary hash database specific configuration.
            Configuration.ConfirmString(xmlElement, "BackingFile",
                                        secRecDBConfig.BackingFile, compulsory);
            Configuration.ConfirmCreatePolicy(xmlElement, "Creation",
                                              secRecDBConfig.Creation, compulsory);
            Configuration.ConfirmInt(xmlElement, "Delimiter",
                                     secRecDBConfig.Delimiter, compulsory);
            Configuration.ConfirmUint(xmlElement, "Length",
                                      secRecDBConfig.Length, compulsory);
            Configuration.ConfirmInt(xmlElement, "PadByte",
                                     secRecDBConfig.PadByte, compulsory);
            Configuration.ConfirmBool(xmlElement, "Renumber",
                                      secRecDBConfig.Renumber, compulsory);
            Configuration.ConfirmBool(xmlElement, "Snapshot",
                                      secRecDBConfig.Snapshot, compulsory);
        }
Exemplo n.º 3
0
        public static void Confirm(XmlElement xmlElement,
                                   SecondaryQueueDatabaseConfig secQueueDBConfig,
                                   bool compulsory)
        {
            SecondaryDatabaseConfig secDBConfig =
                secQueueDBConfig;

            SecondaryDatabaseConfigTest.Confirm(xmlElement,
                                                secDBConfig, compulsory);

            // Confirm secondary hash database specific configuration.
            Configuration.ConfirmCreatePolicy(xmlElement,
                                              "Creation", secQueueDBConfig.Creation, compulsory);
            Configuration.ConfirmUint(xmlElement,
                                      "ExtentSize", secQueueDBConfig.ExtentSize, compulsory);
            Configuration.ConfirmUint(xmlElement, "Length",
                                      secQueueDBConfig.Length, compulsory);
            Configuration.ConfirmInt(xmlElement, "PadByte",
                                     secQueueDBConfig.PadByte, compulsory);
        }
        public static void Confirm(XmlElement xmlElement,
                                   SecondaryHashDatabaseConfig secHashDBConfig,
                                   bool compulsory)
        {
            SecondaryDatabaseConfig secDBConfig =
                secHashDBConfig;

            SecondaryDatabaseConfigTest.Confirm(xmlElement,
                                                secDBConfig, compulsory);

            // Confirm secondary hash database specific configuration.
            Configuration.ConfirmCreatePolicy(xmlElement,
                                              "Creation", secHashDBConfig.Creation, compulsory);
            Configuration.ConfirmDuplicatesPolicy(xmlElement,
                                                  "Duplicates", secHashDBConfig.Duplicates, compulsory);
            Configuration.ConfirmUint(xmlElement, "FillFactor",
                                      secHashDBConfig.FillFactor, compulsory);
            Configuration.ConfirmUint(xmlElement,
                                      "NumElements",
                                      secHashDBConfig.TableSize, compulsory);
        }