public static void Config(XmlElement xmlElement, ref SecondaryBTreeDatabaseConfig secBtreeDBConfig, bool compulsory) { uint minKeysPerPage = new uint(); SecondaryDatabaseConfig secDBConfig = secBtreeDBConfig; SecondaryDatabaseConfigTest.Config(xmlElement, ref secDBConfig, compulsory); // Configure specific fields/properties of Btree db Configuration.ConfigCreatePolicy(xmlElement, "Creation", ref secBtreeDBConfig.Creation, compulsory); Configuration.ConfigDuplicatesPolicy(xmlElement, "Duplicates", ref secBtreeDBConfig.Duplicates, compulsory); if (Configuration.ConfigUint(xmlElement, "MinKeysPerPage", ref minKeysPerPage, compulsory)) { secBtreeDBConfig.MinKeysPerPage = minKeysPerPage; } Configuration.ConfigBool(xmlElement, "NoReverseSplitting", ref secBtreeDBConfig.NoReverseSplitting, compulsory); Configuration.ConfigBool(xmlElement, "UseRecordNumbers", ref secBtreeDBConfig.UseRecordNumbers, compulsory); }
public static void Config(XmlElement xmlElement, ref SecondaryHashDatabaseConfig secHashDBConfig, bool compulsory) { uint fillFactor = new uint(); uint numElements = new uint(); SecondaryDatabaseConfig secDBConfig = secHashDBConfig; SecondaryDatabaseConfigTest.Config(xmlElement, ref secDBConfig, compulsory); // Configure specific fields/properties of hash db Configuration.ConfigCreatePolicy(xmlElement, "Creation", ref secHashDBConfig.Creation, compulsory); Configuration.ConfigDuplicatesPolicy(xmlElement, "Duplicates", ref secHashDBConfig.Duplicates, compulsory); if (Configuration.ConfigUint(xmlElement, "FillFactor", ref fillFactor, compulsory)) { secHashDBConfig.FillFactor = fillFactor; } if (Configuration.ConfigUint(xmlElement, "NumElements", ref numElements, compulsory)) { secHashDBConfig.TableSize = numElements; } }
public static void Config(XmlElement xmlElement, ref SecondaryQueueDatabaseConfig secQueueDBConfig, bool compulsory) { uint uintValue = new uint(); int intValue = new int(); SecondaryDatabaseConfig secConfig = secQueueDBConfig; SecondaryDatabaseConfigTest.Config(xmlElement, ref secConfig, compulsory); // Configure specific fields/properties of Queue database Configuration.ConfigCreatePolicy(xmlElement, "Creation", ref secQueueDBConfig.Creation, compulsory); if (Configuration.ConfigUint(xmlElement, "Length", ref uintValue, compulsory)) { secQueueDBConfig.Length = uintValue; } if (Configuration.ConfigInt(xmlElement, "PadByte", ref intValue, compulsory)) { secQueueDBConfig.PadByte = intValue; } if (Configuration.ConfigUint(xmlElement, "ExtentSize", ref uintValue, compulsory)) { secQueueDBConfig.ExtentSize = uintValue; } }
public static void Config(XmlElement xmlElement, ref SecondaryRecnoDatabaseConfig secRecDBConfig, bool compulsory) { int intValue = new int(); uint uintValue = new uint(); SecondaryDatabaseConfig secDBConfig = secRecDBConfig; SecondaryDatabaseConfigTest.Config(xmlElement, ref secDBConfig, compulsory); // Configure specific fields/properties of Recno database Configuration.ConfigCreatePolicy(xmlElement, "Creation", ref secRecDBConfig.Creation, compulsory); if (Configuration.ConfigInt(xmlElement, "Delimiter", ref intValue, compulsory)) { secRecDBConfig.Delimiter = intValue; } if (Configuration.ConfigUint(xmlElement, "Length", ref uintValue, compulsory)) { secRecDBConfig.Length = uintValue; } if (Configuration.ConfigInt(xmlElement, "PadByte", ref intValue, compulsory)) { secRecDBConfig.PadByte = intValue; } Configuration.ConfigBool(xmlElement, "Renumber", ref secRecDBConfig.Renumber, compulsory); Configuration.ConfigBool(xmlElement, "Snapshot", ref secRecDBConfig.Snapshot, compulsory); }