Exemple #1
0
        internal AutoKey(AutoKeys autoKeys, string name, int localInitValue, int localStep)
        {
            this.AutoKeys = autoKeys;

            this.Name      = name;
            this.LocalId   = localInitValue;
            this.LocalStep = localStep;
            this.Current   = localInitValue;
        }
Exemple #2
0
        internal AutoKey(AutoKeys autoKeys, ByteBuffer os)
        {
            this.AutoKeys = autoKeys;

            Name      = os.ReadString();
            LocalId   = os.ReadInt();
            LocalStep = os.ReadInt();
            Current   = os.ReadLong();
        }
Exemple #3
0
            public int Encode0()
            {
                snapshotOfAutoKeys = AutoKeys.Encode();
                int c = 0;

                if (null != snapshotOfAutoKeys)
                {
                    ++c;
                }
                return(c);
            }
Exemple #4
0
            internal StorageSys(Application app, Database database)
            {
                DatabaseTable = database.OpenTable("_sys_");

                int localInitValue = app.Config.AutoKeyLocalId;
                int localStep      = app.Config.AutoKeyLocalStep;

                keyOfAutoKeys = ByteBuffer.Allocate(32);
                keyOfAutoKeys.WriteString("zeze.AutoKeys." + localInitValue);
                AutoKeys = new AutoKeys(DatabaseTable.Find(keyOfAutoKeys), localInitValue, localStep);
            }