第六十三章 CSP的常见问题 - 什么是标志和限定符?
admin
2024-03-08 17:53:37
0

文章目录

  • 第六十三章 CSP的常见问题 - 什么是标志和限定符?
  • 什么是标志和限定符?
  • 我一直在调用一些实用方法。如何避免使用`##class(Package.Class).method()`?
  • 什么是私有主页?
  • 我有一组`JavaScript`函数和一个标题,我想在我的所有页面上使用它们。我应该如何包括这一点?

第六十三章 CSP的常见问题 - 什么是标志和限定符?

什么是标志和限定符?

要查看标志列表,请在终端中运行以下命令:

 Do $System.OBJ.ShowFlags()
IMP>Do $System.OBJ.ShowFlags()b - Include sub classes.c - Compile. Compile the class definition(s) after loading.d - Display. This flag is set by default.e - Delete extent.h - Generate help.i - Validate XML export format against schema on Load.k - Keep source.  When this flag is set, source code ofgenerated routines will be kept.l - Lock classes while compiling.  This flag is set by default.p - Percent.  Include classes with names of the form %*.r - Recursive.  Compile all the classes that are dependency predecessors.s - Process system messages or application messages.u - Update only.  Skip compilation of classes that are already up-to-date.y - Include classes that are related to the current class in the way thatthey either reference to or are referenced by the current class in SQL usage.These flags are deprecated a, f, g, o, q, v
Default flags for this namespace =dil
You may change the default flags with the SetFlags(flags,system) classmethod.

要查看限定符列表,请在终端中运行以下命令:

 Do $System.OBJ.ShowQualifiers()  
IMP> Do $System.OBJ.ShowQualifiers()Name: /autoincludeDescription: Automatically include any classes that are not up to date required to compile this classType: logicalDefault Value: 1Name: /autoloadDescription: In UnitTest, specifies the directory to be auto-loaded.Type: stringName: /checkschemaDescription: Validate imported XML files against the schema definition.Type: logicalFlag: iDefault Value: 1Name: /checksysutdDescription: Check system classes for up-to-datenessType: logicalDefault Value: 0Name: /checkuptodateDescription: Skip classes or expanded classes that are up-to-date.Type: enumEnum List: none,all,expandedonly,0,1Default Value: expandedonlyPresent Value: allNegated Value: noneName: /cleanupDescription: In UnitTest, if true the unit test will cleanup new globals when it finishes.Type: logicalDefault Value: 0Name: /compileDescription: Causes classes loaded to be compiled as well.Type: logicalFlag: cDefault Value: 0Name: /createdirsDescription: In Export, determines if to create directories if they do not existType: logicalDefault Value: 0Name: /cspcompileclassDescription: Causes classes created by CSP or CSR load to be compiled. Only effects the CSP/CSR load and not subsequent class compiles.Type: logicalDefault Value: 1Name: /cspdeployclassDescription: When CSP page loaded deploy the class generatedType: logicalDefault Value: 0Name: /csphiddenDescription: Classes generated from CSP and CSR compilation are marked as hidden.Type: logicalDefault Value: 1Name: /debugDescription: In UnitTest, /debug causes the Asserts to BREAK if they fail.Type: logicalDefault Value: 0Name: /defaultownerDescription: When loading classes if the class owner keyword is not defined set the owner to this user, if $username then set it to the current userType: stringName: /definesDescription: Comma separated list of macros to define and optionally their values.Type: stringName: /deleteDescription: In UnitTest, determines if loaded classes should be deleted.Type: logicalDefault Value: 1Name: /deleteextentDescription: Delete extent.Type: logicalFlag: eDefault Value: 0Name: /detailDescription: Show detailed information.Type: logicalDefault Value: 0Name: /diffexportDescription: Do not include time modified or platform information in export so the files can be run through diff/merge tools.Type: logicalDefault Value: 0Name: /displayDescription: Alias qualifier for /displaylog and displayerror.Type: aliasEnum List: error,logAlias List: displayerror,displaylogPresent Value: allNegated Value: noneAll Value: allNone Value: noneName: /displayerrorDescription: Display error information.Type: logicalFlag: dDefault Value: 1Name: /displaylogDescription: Display log informationType: logicalFlag: dDefault Value: 1Name: /documatichostDescription: In Export, determines if host that is used in JavaDoc generationType: stringName: /documaticnamespaceDescription: In Export, determines if namespace that is used in JavaDoc generationType: stringName: /documaticportDescription: In Export, determines if port that is used in JavaDoc generationType: stringName: /expandDescription: Alias qualifier for /predecessorclasses, /subclasses and /relatedclasses.Type: aliasEnum List: predecessorclasses,subclasses,relatedclassesAlias List: predecessorclasses,subclasses,relatedclassesPresent Value: allNegated Value: noneAll Value: allNone Value: noneName: /exportgeneratedDescription: When exporting classes also export generated classes where the class generating them is also includedType: logicalDefault Value: 0Name: /exportselectivityDescription: Export the selectivity values stored in the storage definition for this classType: logicalDefault Value: 1Name: /exportversionDescription: In XML export of class the version of Cache the class will be imported into.Type: stringName: /filterinDescription: Alias qualifier for /application, /system and /percent.Type: aliasEnum List: system,percent,applicationAlias List: system,percent,applicationPresent Value: (none)Negated Value: (none)All Value: allNone Value: noneName: /generatedDescription: When expanding wild cards include generated items (routines/classes/etc)Type: logicalDefault Value: 1Name: /generatemapDescription: Generate the map file.Type: logicalDefault Value: 1Name: /generationtypeDescription: In Export, determines generation modeType: stringName: /genserialuidDescription: In Export, determines if to generate serialVersionUID.Type: logicalDefault Value: 1Name: /hiddenDescription: Show hidden classes.Type: logicalFlag: hDefault Value: 0Name: /importselectivityDescription: If 0 then do not import selectivity values from the XML file. If 1 then import the selectivity values stored in the storage definition when importing XML file. If 2 keep any existing selectivity values but if a property does not have an existing value then use the selectivity from the XML file.Type: enumEnum List: 0,1,2Default Value: 2Present Value: 2Negated Value: 0Name: /includesubpackagesDescription: Include sub-packages.Type: logicalFlag: rDefault Value: 1Name: /javadocDescription: In Export, determines if to create javadoc.Type: logicalDefault Value: 1Name: /journalDescription: Enable journaling of a class compilerType: logicalDefault Value: 1Name: /keepsourceDescription: Keep the source code of generated routines.Type: logicalFlag: kDefault Value: 0Name: /loadDescription: In UnitTest, determines if classes should be loaded. If not, then only classnames are obtained from the directories.Type: logicalDefault Value: 1Name: /lockDescription: Use LOCK command while compiling classes.Type: logicalFlag: lDefault Value: 1Name: /makeDescription: In Export, determines if to only generate dependency or class if timestamp of last compilation is greater than timestamp of last generationType: logicalDefault Value: 0Name: /mappedDescription: Include classes mapped from another databaseType: logicalDefault Value: 0Name: /mergeglobalDescription: If importing a global from XML file merge the global with existing dataType: logicalDefault Value: 0Name: /multicompileDescription: Enable use of work queue manager (optionally specify the number of workers if value >1)Type: stringName: /newcollectionsDescription: In Export, determines if to use native Java collections.Type: logicalDefault Value: 1Name: /percentDescription: Include percent classes.Type: logicalFlag: pDefault Value: 0Name: /pojoDescription: In Export, determines if POJO generation modeType: logicalDefault Value: 0Name: /predecessorclassesDescription: Recursively include dependency predecessor classes.Type: logicalFlag: rDefault Value: 0Name: /primitivedatatypesDescription: In Export, determines if to use Java primitives for %Integer, %Boolean, %BigInt, %Float .Type: logicalDefault Value: 0Name: /projectabstractstreamDescription: In Export, determines if to project classes that contain methods whose arguments are abstract streams or whose return type is an abstract stream.Type: logicalDefault Value: 0Name: /projectbyrefmethodstopojoDescription: In Export, determines if to project byref methods to pojo implementation.Type: logicalDefault Value: 0Name: /recursiveDescription: Determines if Export classes recursively, or if UnitTest tests in subdirectories should run recursively.Type: logicalFlag: rDefault Value: 1Name: /relatedclassesDescription: Recursively include related classes.Type: logicalFlag: yDefault Value: 0Name: /runDescription: In UnitTest, determines if tests should runType: logicalDefault Value: 1Name: /skipstorageDescription: In class Export, if true do not export storage definition.Type: logicalDefault Value: 0Name: /subclassesDescription: Recursively include sub-classes.Type: logicalFlag: bDefault Value: 0Name: /systemDescription: Process system messages or application messages.Type: logicalFlag: sDefault Value: 0Name: /unconditionallyprojectDescription: In Export, determines if to project regardless of problems that may prevent code from compiling or working correctly.Type: logicalDefault Value: 0Name: /unicodeDescription: Export UNICODE files.Type: logicalFlag: nDefault Value: 0Name: /usedeepestbaseDescription: In Export, determines if to use deepest base in which method or property is defined for method or property definition.  If P is defined in A,B, and C and A extends B extends C then C is a deeper base for P.Type: logicalDefault Value: 0No Default Qualifiers at system level are set.
No Default Qualifiers for namespaces are set

我一直在调用一些实用方法。如何避免使用##class(Package.Class).method()

将这些方法放在一个特定的类中,并使CSP页面继承自该类。然后,CSP页面可以通过使用点语法来访问这些方法。为此,请使用 标记,如下所示:


什么是私有主页?

仅当使用适当的令牌从另一个CSP页面调用时,才能查看私有页面。私人页面不能被添加书签,也不能通过简单地在浏览器中键入URL来访问。要将页面设置为私有,请使用 标记,如下所示:


我有一组JavaScript函数和一个标题,我想在我的所有页面上使用它们。我应该如何包括这一点?

使用新的#include语法:


这是一个文本包含,在Caché 5中是新的。在编译页面之前,文件的文本会自动包含在页面中。因此,可以包含需要编译的代码,例如#()#变量、查询的结果和runat="server "代码。

相关内容

热门资讯

linux入门---制作进度条 了解缓冲区 我们首先来看看下面的操作: 我们首先创建了一个文件并在这个文件里面添加了...
C++ 机房预约系统(六):学... 8、 学生模块 8.1 学生子菜单、登录和注销 实现步骤: 在Student.cpp的...
A.机器学习入门算法(三):基... 机器学习算法(三):K近邻(k-nearest neigh...
数字温湿度传感器DHT11模块... 模块实例https://blog.csdn.net/qq_38393591/article/deta...
有限元三角形单元的等效节点力 文章目录前言一、重新复习一下有限元三角形单元的理论1、三角形单元的形函数(Nÿ...
Redis 所有支持的数据结构... Redis 是一种开源的基于键值对存储的 NoSQL 数据库,支持多种数据结构。以下是...
win下pytorch安装—c... 安装目录一、cuda安装1.1、cuda版本选择1.2、下载安装二、cudnn安装三、pytorch...
MySQL基础-多表查询 文章目录MySQL基础-多表查询一、案例及引入1、基础概念2、笛卡尔积的理解二、多表查询的分类1、等...
keil调试专题篇 调试的前提是需要连接调试器比如STLINK。 然后点击菜单或者快捷图标均可进入调试模式。 如果前面...
MATLAB | 全网最详细网... 一篇超超超长,超超超全面网络图绘制教程,本篇基本能讲清楚所有绘制要点&#...
IHome主页 - 让你的浏览... 随着互联网的发展,人们越来越离不开浏览器了。每天上班、学习、娱乐,浏览器...
TCP 协议 一、TCP 协议概念 TCP即传输控制协议(Transmission Control ...
营业执照的经营范围有哪些 营业执照的经营范围有哪些 经营范围是指企业可以从事的生产经营与服务项目,是进行公司注册...
C++ 可变体(variant... 一、可变体(variant) 基础用法 Union的问题: 无法知道当前使用的类型是什...
血压计语音芯片,电子医疗设备声... 语音电子血压计是带有语音提示功能的电子血压计,测量前至测量结果全程语音播报࿰...
MySQL OCP888题解0... 文章目录1、原题1.1、英文原题1.2、答案2、题目解析2.1、题干解析2.2、选项解析3、知识点3...
【2023-Pytorch-检... (肆十二想说的一些话)Yolo这个系列我们已经更新了大概一年的时间,现在基本的流程也走走通了,包含数...
实战项目:保险行业用户分类 这里写目录标题1、项目介绍1.1 行业背景1.2 数据介绍2、代码实现导入数据探索数据处理列标签名异...
记录--我在前端干工地(thr... 这里给大家分享我在网上总结出来的一些知识,希望对大家有所帮助 前段时间接触了Th...
43 openEuler搭建A... 文章目录43 openEuler搭建Apache服务器-配置文件说明和管理模块43.1 配置文件说明...