public static DynamicRecord AllocateRecord(long id)
        {
            DynamicRecord record = new DynamicRecord(id);

            record.SetCreated();
            record.InUse = true;
            return(record);
        }
Example #2
0
        private DynamicRecord DynamicRecord()
        {
            DynamicRecord dynamicRecord = new DynamicRecord(42);

            dynamicRecord.SetType(PropertyType.String.intValue());
            dynamicRecord.SetCreated();
            return(dynamicRecord);
        }
Example #3
0
        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)));
        }