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 QueueDatabaseConfig queueDBConfig, bool compulsory) { uint uintValue = new uint(); int intValue = new int(); DatabaseConfig dbConfig = queueDBConfig; Config(xmlElement, ref dbConfig, compulsory); // Configure specific fields/properties of Queue database Configuration.ConfigBool(xmlElement, "ConsumeInOrder", ref queueDBConfig.ConsumeInOrder, compulsory); Configuration.ConfigCreatePolicy(xmlElement, "Creation", ref queueDBConfig.Creation, compulsory); if (Configuration.ConfigUint(xmlElement, "Length", ref uintValue, compulsory)) { queueDBConfig.Length = uintValue; } if (Configuration.ConfigInt(xmlElement, "PadByte", ref intValue, compulsory)) { queueDBConfig.PadByte = intValue; } if (Configuration.ConfigUint(xmlElement, "ExtentSize", ref uintValue, compulsory)) { queueDBConfig.ExtentSize = uintValue; } }
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 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 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); }
public static void Config(XmlElement xmlElement, ref SequenceConfig seqConfig, bool compulsory) { uint uintValue = new uint(); bool boolValue = new bool(); long longValue = new long(); if (Configuration.ConfigUint(xmlElement, "CacheSize", ref uintValue, compulsory)) { seqConfig.CacheSize = uintValue; } Configuration.ConfigCreatePolicy(xmlElement, "Creation", ref seqConfig.Creation, compulsory); if (Configuration.ConfigBool(xmlElement, "Decrement", ref boolValue, compulsory)) { seqConfig.Decrement = boolValue; } Configuration.ConfigBool(xmlElement, "FreeThreaded", ref seqConfig.FreeThreaded, compulsory); if (Configuration.ConfigBool(xmlElement, "Increment", ref boolValue, compulsory)) { seqConfig.Increment = boolValue; } if (Configuration.ConfigLong(xmlElement, "InitialValue", ref longValue, compulsory)) { seqConfig.InitialValue = longValue; } Configuration.ConfigBool(xmlElement, "Wrap", ref seqConfig.Wrap, compulsory); }
public static void Config(XmlElement xmlElement, ref HeapDatabaseConfig heapDBConfig, bool compulsory) { DatabaseConfig dbConfig = heapDBConfig; Config(xmlElement, ref dbConfig, compulsory); // Configure specific fields/properties of Heap database Configuration.ConfigCreatePolicy(xmlElement, "Creation", ref heapDBConfig.Creation, compulsory); }