public static DynamicRecord AllocateRecord(long id) { DynamicRecord record = new DynamicRecord(id); record.SetCreated(); record.InUse = true; return(record); }
private DynamicRecord DynamicRecord() { DynamicRecord dynamicRecord = new DynamicRecord(42); dynamicRecord.SetType(PropertyType.String.intValue()); dynamicRecord.SetCreated(); return(dynamicRecord); }
private SchemaRecord Serialize(SchemaRule rule, long id, bool inUse, bool created) { DynamicRecord record = new DynamicRecord(id); record.Data = SchemaRuleSerialization.serialize(rule); if (created) { record.SetCreated(); } if (inUse) { record.InUse = true; } return(new SchemaRecord(singletonList(record))); }