当前位置:网站首页>Method keywords deprecated, externalprocname, final, forcegenerate
Method keywords deprecated, externalprocname, final, forcegenerate
2022-07-06 19:48:00 【User 7741497】
Chapter 61 Method keyword - Deprecated
Specify that this method is not recommended . This keyword is ignored by the class compiler , It just provides a human readable indicator , Indicates that the method has been deprecated .
usage
To specify that this method is not recommended , Please use the following syntax :
Method name(formal_spec) As returnclass [ Deprecated ]
{ //implementation }
otherwise , Omit this keyword or put the word Not
Put in front of the keyword .
Chapter 62 Method keyword - ExternalProcName
When this method is used as a stored procedure in an external database , Specify its name . Applicable only if the method is projected as a stored procedure .
To override the default name of a method when it is used as a stored procedure in an external database , Please use the following syntax :
ClassMethod name(formal_spec) As returnclass [ SqlProc, ExternalProcName = MyProcedure ]
{ //implementation }
among MyProcedure
Is a string without quotation marks .
Detailed explanation
When this method is used as a stored procedure in an external database , This keyword allows you to define the name of this method .
Default
If you omit this keyword , The method name will be used as the stored procedure name
Chapter 63 Method keyword - Final
Specify whether this method is the final method ( Cannot override in subclasses ).
usage
To specify that the method is final , Please use the following syntax :
Method name(formal_spec) As returnclass [ Final ]
{ //implementation }
otherwise , Omit this keyword or put the word Not Put in front of the keyword .
Detailed explanation
Marked as final
Class members of cannot be overridden in subclasses .
Default
If you omit this keyword , Then this method is not final .
Chapter 64 Method keyword - ForceGenerate
Specify whether the method should be compiled in each subclass . Applicable only if the method is a method generator .
usage
To specify that methods should be compiled in each subclass ( Method generator ), Please use the following syntax :
Method name(formal_spec) As returnclass [ CodeMode = ObjectGenerator, ForceGenerate ]
{ //implementation }
otherwise , Omit this keyword or put the word Not Put in front of the keyword .
Detailed explanation
In the case of a method generator method , Specify that the method should be compiled in each subclass . When you need to ensure that each subclass has its own method version , This keyword is very useful . If the generated code looks the same as the code generated by the superclass , IRIS Methods in subclasses will not be recompiled . This logic does not consider whether the included files of the two classes are the same . If the method uses macros defined in the include file , And if subclasses use different include files , IRIS The method will not be recompiled in subclasses . under these circumstances , Please specify ForceGenerate
.
Default
If you omit this keyword , The method will not be compiled in each subclass .
边栏推荐
- The slave i/o thread stops because master and slave have equal MySQL serv
- 零基础入门PolarDB-X:搭建高可用系统并联动数据大屏
- Teach you to learn JS prototype and prototype chain hand in hand, a tutorial that monkeys can understand
- Pay attention to the partners on the recruitment website of fishing! The monitoring system may have set you as "high risk of leaving"
- 腾讯T2大牛亲自讲解,跳槽薪资翻倍
- LeetCode_格雷编码_中等_89.格雷编码
- Systematic and detailed explanation of redis operation hash type data (with source code analysis and test results)
- Phoenix Architecture 3 - transaction processing
- JDBC details
- 1805. 字符串中不同整数的数目
猜你喜欢
Analysis of rainwater connection
系统性详解Redis操作Hash类型数据(带源码分析及测试结果)
redisson bug分析
Carte de réflexion + code source + notes + projet, saut d'octets + jd + 360 + tri des questions d'entrevue Netease
Application of clock wheel in RPC
How to do smoke test
深入浅出,面试突击版
面试突击63:MySQL 中如何去重?
Documents to be used in IC design process
算法面试经典100题,Android程序员最新职业规划
随机推荐
社招面试心得,2022最新Android高频精选面试题分享
Mysql Information Schema 學習(一)--通用錶
句号压缩过滤器
Documents to be used in IC design process
LeetCode_ Double pointer_ Medium_ 61. rotating linked list
面试突击63:MySQL 中如何去重?
【pytorch】yolov5 训练自己的数据集
Phoenix Architecture 3 - transaction processing
MySQL must know and learn
Mind map + source code + Notes + project, ByteDance + JD +360+ Netease interview question sorting
Pay attention to the partners on the recruitment website of fishing! The monitoring system may have set you as "high risk of leaving"
保证接口数据安全的10种方案
[translation] supply chain security project in toto moved to CNCF incubator
MySQL information schema learning (II) -- InnoDB table
Unbalance balance (dynamic programming, DP)
Leetcode 30. Concatenate substrings of all words
Information System Project Manager - Chapter VIII project quality management
企业精益管理体系介绍
[translation] micro survey of cloud native observation ability. Prometheus leads the trend, but there are still obstacles to understanding the health of the system
Chic Lang: attributeerror: partially initialized module 'CV2' has no attribute 'GAPI_ wip_ gst_ GStreamerPipe