zoukankan
html css js c++ java
获取最根级EDT类型名称
有时候需要修改某个扩展数据类型的属性,比如字段的长度等,这些属性只能在最根级的EDT类型上修改,所以需要找到最根级的EDT类型,这个小例子演示了如何根据当前表的字段获取其对应的最根级EDT类型。
//
Return the top extendtypeid,If error,return ''
static
ExtendedDataTypeName GetFinalExtendedType(TableId _tableId,FieldId _fieldId)
{
SysDictField dictField;
SysDictType dictType;
ExtendedTypeId tmpExtendTypeId;
ExtendedTypeId finalExtendTypeId;
ExtendedTypeId getNextExtendedTypeId(DictType _dictType)
{
;
if
(_dictType.extend())
return
_dictType.extend();
else
return
0
;
}
;
if
(_tableId
&&
_fieldId)
dictField
=
new
SysDictField(_tableId,_fieldId);
else
return
''
;
dictType
=
new
SysDictType(dictField.typeId());
if
(
!
dictType)
return
''
;
finalExtendTypeId
=
dictType.id();
while
(
true
)
{
tmpExtendTypeId
=
getNextExtendedTypeId(dictType);
//
if not '',find next extendTypeId
if
(tmpExtendTypeId)
{
finalExtendTypeId
=
tmpExtendTypeId;
dictType
=
new
DictType(finalExtendTypeId);
}
else
break
;
}
if
(finalExtendTypeId)
return
new
dictType(finalExtendTypeId).Name();
else
return
''
;
}
附件
是测试用例。
查看全文
相关阅读:
5. JVM虚拟机栈
4. 程序计数器
3. JVM运行时数据区
2. 类加载
1. JVM体系结构
SpringCloud 网关组件Gateway
SpringCloud Hystrix断路器的基本使用
SpringCloud Ribbon和Feign 的使用和源码分析
反向代理的概念
事务mysql
原文地址:https://www.cnblogs.com/Farseer1215/p/885454.html
最新文章
高品质的JavaScript
JS高级前端开发群加群说明
AngularJS -- 代码实例
AngularJs -- 指令中使用子作用域
AngularJs -- 内置指令
AngularJs -- 指令详解
AngularJs -- 指令简介
AngularJs -- ngMessages(1.3+)
socket发送请求,协程
进程,进程间的数据共享,进程锁,进程池,
热门文章
线程锁,threadinglocal,线程池,生产者消费者模型
并发,并行,线程,进程,GIL锁
端口,OSI7层模型,TCP的三次握手和四次挥手,进度条
网络编程,线程,多线程
socketserver
网络编程
面向对象5
面向对象4
7. 堆空间
6. JVM本地方法
Copyright © 2011-2022 走看看