当前位置:网站首页>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 .
边栏推荐
- MySQL information Schema Learning (i) - - General table
- Recursive implementation of department tree
- 【翻译】数字内幕。KubeCon + CloudNativeCon在2022年欧洲的选择过程
- [play with Linux] [docker] MySQL installation and configuration
- Example of applying fonts to flutter
- LeetCode_双指针_中等_61. 旋转链表
- Druid database connection pool details
- Using clip path to draw irregular graphics
- Vscode debug run fluent message: there is no extension for debugging yaml. Should we find yaml extensions in the market?
- 系统性详解Redis操作Hash类型数据(带源码分析及测试结果)
猜你喜欢
LeetCode_双指针_中等_61. 旋转链表
冒烟测试怎么做
Vscode debug run fluent message: there is no extension for debugging yaml. Should we find yaml extensions in the market?
JDBC details
【基础架构】Flink/Flink-CDC的部署和配置(MySQL / ES)
After solving 2961 user feedback, I made such a change
Example of applying fonts to flutter
Using clip path to draw irregular graphics
A5000 vGPU显示模式切换
Zero foundation entry polardb-x: build a highly available system and link the big data screen
随机推荐
Mysql Information Schema 学习(一)--通用表
[translation] Digital insider. Selection process of kubecon + cloudnativecon in Europe in 2022
spark基础-scala
Finally, there is no need to change a line of code! Shardingsphere native driver comes out
Live broadcast today | the 2022 Hongji ecological partnership conference of "Renji collaboration has come" is ready to go
范式的数据库具体解释
Learning and Exploration - Seamless rotation map
MySQL information Schema Learning (i) - - General table
redisson bug分析
LeetCode_ Gray code_ Medium_ 89. Gray code
121. The best time to buy and sell stocks
About image reading and processing, etc
Swiftui game source code Encyclopedia of Snake game based on geometryreader and preference
凤凰架构2——访问远程服务
学习打卡web
数据的同步为每个站点创建触发器同步表
js实现力扣71题简化路径
【计算情与思】扫地僧、打字员、信息恐慌与奥本海默
激进技术派 vs 项目保守派的微服务架构之争
深入分析,Android面试真题解析火爆全网