Exemple #1
0
        protected override void InternalPopulateTableVar(Program program, CatalogHeader header, Row row)
        {
            switch (header.TableVar.Name)
            {
            case "System.ServerSettings": PopulateServerSettings(program, header.NativeTable, row); break;

            case "System.LibraryOwners": PopulateLibraryOwners(program, header.NativeTable, row); break;

            case "System.LibraryVersions": PopulateLibraryVersions(program, header.NativeTable, row); break;

            case "System.LoadedLibraries": PopulateLoadedLibraries(program, header.NativeTable, row); break;

            default: base.InternalPopulateTableVar(program, header, row); break;
            }
        }
        protected internal void PopulateTableVar(Program program, CatalogHeader header)
        {
            header.NativeTable.Truncate(program.ValueManager);
            Row row = new Row(program.ValueManager, header.TableVar.DataType.RowType);

            try
            {
                InternalPopulateTableVar(program, header, row);
            }
            finally
            {
                row.Dispose();
            }

            header.TimeStamp = program.Catalog.TimeStamp;
        }
        protected virtual void InternalPopulateTableVar(Program program, CatalogHeader header, Row row)
        {
            switch (header.TableVar.Name)
            {
            case "System.Connections": PopulateConnections(program, header.NativeTable, row); break;

            case "System.Sessions": PopulateSessions(program, header.NativeTable, row); break;

            case "System.Processes": PopulateProcesses(program, header.NativeTable, row); break;

            case "System.Scripts": PopulateScripts(program, header.NativeTable, row); break;

            case "System.Plans": PopulatePlans(program, header.NativeTable, row); break;

            case "System.Libraries": PopulateLibraries(program, header.NativeTable, row); break;

            case "System.LibraryFiles": PopulateLibraryFiles(program, header.NativeTable, row); break;

            case "System.LibraryFileEnvironments": PopulateLibraryFileEnvironments(program, header.NativeTable, row); break;

            case "System.LibraryRequisites": PopulateLibraryRequisites(program, header.NativeTable, row); break;

            case "System.LibrarySettings": PopulateLibrarySettings(program, header.NativeTable, row); break;

            case "System.RegisteredAssemblies": PopulateRegisteredAssemblies(program, header.NativeTable, row); break;

            case "System.RegisteredClasses": PopulateRegisteredClasses(program, header.NativeTable, row); break;

            case "System.SessionCatalogObjects": PopulateSessionCatalogObjects(program, header.NativeTable, row); break;

            case "System.ScalarTypeParentScalarTypes": PopulateScalarTypeParentScalarTypes(program, header.NativeTable, row); break;

                                #if USETYPEINHERITANCE
            case "System.ScalarTypeExplicitCastFunctions": PopulateScalarTypeExplicitCastFunctions(AProgram, AHeader.NativeTable, ARow); break;
                                #endif
            case "System.DeviceSessions": PopulateDeviceSessions(program, header.NativeTable, row); break;

            case "System.ApplicationTransactions": PopulateApplicationTransactions(program, header.NativeTable, row); break;

            case "System.ServerLinks": PopulateServerLinks(program, header.NativeTable, row); break;

            case "System.ServerLinkUsers": PopulateServerLinkUsers(program, header.NativeTable, row); break;

            case "System.RemoteSessions": PopulateRemoteSessions(program, header.NativeTable, row); break;
            }
        }