一篇文章了解类成员定义表结构

文章目录

  • 一篇文章了解类成员定义表结构
    • `%Dictionary.ClassDefinition` - 类定义表
        • 简介
        • 索引
        • 示例
        • 表结构
    • `%Dictionary.ForeignKeyDefinition` - 外键定义表
        • 简介
        • 索引
        • 示例
        • 表结构
    • `%Dictionary.IndexDefinition` - 索引定义表
        • 简介
        • 索引
        • 示例
        • 表结构
    • `%Dictionary.MethodDefinition` - 方法定义表
        • 简介
        • 索引
        • 示例
        • 表结构
    • `%Dictionary.ParameterDefinition` - 参数定义表
        • 简介
        • 索引
        • 示例
        • 表结构
    • `%Dictionary.ProjectionDefinition` - 映射定义表
        • 简介
        • 索引
        • 示例
        • 表结构
    • `%Dictionary.PropertyDefinition` - 属性定义表
        • 简介
        • 索引
        • 示例
        • 表结构
    • `%Dictionary.PropertyUDLTextDefinition` - `PropertyUDLText`定义表
        • 索引
        • 表结构
    • `%Dictionary.QueryDefinition` - 查询定义表
        • 简介
        • 索引
        • 示例
        • 表结构
    • `%Dictionary.StorageDefinition` - `Storage`定义表
        • 简介
        • 索引
        • 示例
        • 表结构
    • `%Dictionary.StorageDataDefinition` - `StorageData`定义表
        • 简介
        • 索引
        • 示例
        • 表结构
    • `%Dictionary.StorageDataValueDefinition` - `StorageDataValue`定义表
        • 简介
        • 索引
        • 示例
        • 表结构
    • `%Dictionary.StorageIndexDefinition` -` StorageIndex`定义表
        • 简介
        • 索引
        • 示例
        • 表结构
    • `%Dictionary.StoragePropertyDefinition` - `StorageProperty`定义表
        • 简介
        • 索引
        • 示例
        • 表结构
    • `%Dictionary.StorageSQLMapDefinition` - `StorageSQLMap`定义表
        • 简介
        • 取值
        • 示例
        • 表结构
    • `%Dictionary.StorageSQLMapDataDefinition` -`StorageSQLMapData`定义表
        • 简介
        • 索引
        • 示例
        • 表结构
    • `%Dictionary.StorageSQLMapRowIdSpecDefinition` - `StorageSQLMapRowIdSpec`定义表
        • 简介
        • 索引
        • 示例
        • 表结构
    • `%Dictionary.StorageSQLMapSubDefinition` -` StorageSQLMapSub`定义表
        • 简介
        • 索引
        • 示例
        • 表结构
    • `%Dictionary.StorageSQLMapSubAccessvarDefinition` - `StorageSQLMapSubAccessvar`定义表
        • 简介
        • 索引
        • 示例
        • 表结构
    • `%Dictionary.StorageSQLMapSubInvalidconditionDefinition` - `StorageSQLMapSubInvalidcondition`定义表
        • 简介
        • 索引
        • 示例
        • 表结构
    • `%Dictionary.TriggerDefinition` - 触发器定义表
        • 简介
        • 索引
        • 示例
        • 表结构
    • `%Dictionary.UDLTextDefinition` - `UDLText`定义表
        • 简介
        • 索引
        • 示例
        • 表结构
    • `%Dictionary.XDataDefinition` - `XData`定义表
        • 简介
        • 索引
        • 示例
        • 表结构
    • `^oddDEF`一览

一篇文章了解类成员定义表结构

  • Definition - 结尾的表均为定义时的内容,不包含编译时自动生成的内容。例如:方法等。
  • ^oddDEF -所有定义表的Global信息。

%Dictionary.ClassDefinition - 类定义表

简介

新建类或更改类关键字时会修改此表字段。

该表为%Dictionary.ClassDefinition子表。

索引

  • 取值索引 - ^oddDEF({%Dictionary.ClassDefinition.Name})

    • %Dictionary.ClassDefinition.Name - 类名

示例

增加User.HumanFinal关键字。

Class User.Human Extends (%Persistent, %Populate) [ ClassType = persistent, Final, SqlRowIdName = id ]
{
}

SQL查询该表,可以观察到Final字段为1。

在这里插入图片描述

Global中增加:

^oddDEF("User.Human",7)=1

Global示例:

USER>zw ^oddDEF("User.Human")
^oddDEF("User.Human")=25
^oddDEF("User.Human",1)="User.Human"
^oddDEF("User.Human",7)=1
^oddDEF("User.Human",23)="persistent"
^oddDEF("User.Human",55)="id"
^oddDEF("User.Human",60)="%Persistent,%Populate"
^oddDEF("User.Human",63)="66691,65113.785077"
^oddDEF("User.Human",64)="66691,65047.028275"

表结构

字检类型描述位置检索码
ID%CacheString类名
Abstract%Boolean指定类不能有实例;对于数据类型,指定类不能用作属性类型。21s {Abstract}=$s($d(^oddDEF({L1},21))#2:^(21),1:0)
ClassDefinitionError%Boolean如果序列化类时出现问题,则设置为True,以便编译器知道不编译此类。67s {ClassDefinitionError}=$s($d(^oddDEF({L1},67))#2:^(67),1:0)
ClassType%CacheString指定如何使用此类。23s {ClassType}=$s($d(^oddDEF({L1},23))#2:^(23),1:"")
ClientDataType%CacheString对于数据类型类,指定通过ActiveXJava公开时使用的类型。DataType类必须指定客户端数据类型。24s {ClientDataType}=$s($d(^oddDEF({L1},24))#2:^(24),1:"VARCHAR")
ClientName%CacheString类提供了一个备用名称,用于映射到Java73s {ClientName}=$s($d(^oddDEF({L1},73))#2:^(73),1:"")
CompileAfter%CacheString指示类编译器应在指定类之后编译此类。28s {CompileAfter}=$s($d(^oddDEF({L1},28))#2:^(28),1:"")
ConstraintClass%CacheString要继承的其他约束成员父类。80s {ConstraintClass}=$s($d(^oddDEF({L1},80))#2:^(80),1:"")
DdlAllowed%Boolean对于持久类,指示是否可以使用DDL语句来更改或删除类定义。29s {DdlAllowed}=$s($d(^oddDEF({L1},29))#2:^(29),1:0)
DependsOn%CacheString此类编译所依赖的可运行类的列表。84s {DependsOn}=$s($d(^oddDEF({L1},84))#2:^(84),1:"")
Deployed%Integer指示类是否已部署,即是否已与用于生成的源文件取消关联。72s {Deployed}=$s($d(^oddDEF({L1},72))#2:^(72),1:0)
Deprecated%Boolean如果此类已弃用,则为True17s {Deprecated}=$s($d(^oddDEF({L1},17))#2:^(17),1:0)
Description%CacheString指定类的描述。4s {Description}=$s($d(^oddDEF({L1},4))#2:^(4),1:"")
Dynamic%Boolean弃用30s {Dynamic}=$s($d(^oddDEF({L1},30))#2:^(30),1:0)
EmbeddedClass%CacheString如果在成员类型类中指定,则为形成嵌入式父类的类的名称100s {EmbeddedClass}=$s($d(^oddDEF({L1},100))#2:^(100),1:"")
Final%Boolean指定类不能有子类。7s {Final}=$s($d(^oddDEF({L1},7))#2:^(7),1:0)
GeneratedBy%CacheString如果这个类是由其他组件生成的,那么这是生成这个类的项目的名称87s {GeneratedBy}=$s($d(^oddDEF({L1},87))#2:^(87),1:"")
Hidden%Boolean指定在查看类字典的内容时通常不列出此类。32s {Hidden}=$s($d(^oddDEF({L1},32))#2:^(32),1:0)
Import%CacheString提供要为此类导入的类包列表。33s {Import}=$s($d(^oddDEF({L1},33))#2:^(33),1:"")
IncludeCode%CacheString指定编译此类时使用的缓存包含文件的可选列表。35s {IncludeCode}=$s($d(^oddDEF({L1},35))#2:^(35),1:"")
IncludeGenerator%CacheString指定编译此类的方法生成器方法时使用的缓存包含文件的可选列表。37s {IncludeGenerator}=$s($d(^oddDEF({L1},37))#2:^(37),1:"")
IndexClass%CacheString要继承的其他索引成员超类。81s {IndexClass}=$s($d(^oddDEF({L1},81))#2:^(81),1:"")
Inheritance%CacheString定义使用多重继承时的继承顺序,如果一个成员存在于多个超类中,哪一个优先。92s {Inheritance}=$s($d(^oddDEF({L1},92))#2:^(92),1:"left")
LegacyInstanceContext%Boolean用于实现此类方法的默认语言。96s {LegacyInstanceContext}=$s($d(^oddDEF({L1},96))#2:^(96),1:0)
MemberSuper%CacheString如果为真则将 %this 作为所有实例方法的第一个参数传递83s {MemberSuper}=$s($d(^oddDEF({L1},83))#2:^(83),1:"")
ModificationAuxiliary%CacheString如果在成员继承中将此类用作成员类,则为要继承的类。68s {ModificationAuxiliary}=$s($d(^oddDEF({L1},68))#2:^(68),1:"")
ModificationLevel%Integer弃用69s {ModificationLevel}=$s($d(^oddDEF({L1},69))#2:^(69),1:9)
Name%Dictionary.CacheClassname类名
Modified%CacheString如果设置为 0,那么类总是被修改,所以它总是被保存。40s {Modified}=$s($d(^oddDEF({L1},40))#2:^(40),1:3)
NoContext%BooleanNoContext42s {NoContext}=$s($d(^oddDEF({L1},42))#2:^(42),1:0)
NoExtent%Boolean如果为True,将不允许此类继续任何类。76s {NoExtent}=$s($d(^oddDEF({L1},76))#2:^(76),1:0)
OdbcType%CacheString对于数据类型类,指定通过ODBCJDBC公开时使用的类型。DataType类必须指定ODBC类型。43s {OdbcType}=$s($d(^oddDEF({L1},43))#2:^(43),1:"VARCHAR")
Owner%CacheString指定类及其对应表的所有者。默认情况下,类和表归 _SYSTEM 所有。44s {Owner}=$s($d(^oddDEF({L1},44))#2:^(44),1:"")
ProcedureBlock%Boolean指定该类对方法代码使用过程块。46s {ProcedureBlock}=$s($d(^oddDEF({L1},46))#2:^(46),1:1)
ProjectionClass%CacheString映射定义外键82s {ProjectionClass}=$s($d(^oddDEF({L1},82))#2:^(82),1:"")
PropertyClass%CacheString属性定义外键48s {PropertyClass}=$s($d(^oddDEF({L1},48))#2:^(48),1:"")
QueryClass%CacheString查询定义外键79s {QueryClass}=$s($d(^oddDEF({L1},79))#2:^(79),1:"")
ServerOnly%CacheStringServerOnly88s {ServerOnly}=$s($d(^oddDEF({L1},88))#2:^(88),1:"")
SoapBindingStyle%CacheString指定此类在用于通过 SOAP 发送和接收消息时使用的 SOAP 绑定。70s {SoapBindingStyle}=$s($d(^oddDEF({L1},70))#2:^(70),1:"document")
SoapBodyUse%CacheString指定用于 SOAP 消息的编码。71s {SoapBodyUse}=$s($d(^oddDEF({L1},71))#2:^(71),1:"literal")
SqlCategory%CacheString在数据类型类的情况下,指定用于 SQL 计算的类型。数据类型类必须指定一个 SQL 类别。52s {SqlCategory}=$s($d(^oddDEF({L1},52))#2:^(52),1:"STRING")
SqlRoutinePrefix%CacheString弃用54s {SqlRoutinePrefix}=$s($d(^oddDEF({L1},54))#2:^(54),1:"")
SqlRowIdName%CacheString在持久类的情况下,指定用于 ID 列的替代名称字段名称。默认情况下,ID 称为 ID55s {SqlRowIdName}=$s($d(^oddDEF({L1},55))#2:^(55),1:"")
SqlRowIdPrivate%Boolean在持久类的情况下,指定 ID 列是否作为隐藏字段映射到 ODBC56s {SqlRowIdPrivate}=$s($d(^oddDEF({L1},56))#2:^(56),1:0)
SqlTableName%CacheString在持久类的情况下,指定用于在其 SQL 映射中标识该类的表名。默认情况下,SQL 表名与类名相同。58s {SqlTableName}=$s($d(^oddDEF({L1},58))#2:^(58),1:"")
StorageStrategy%CacheString指定用于控制此类持久性的存储策略的名称。59`s {StorageStrategy}= s ( s( s(d(oddDEF({L1},59))#2:(59),1:“”)
Super%CacheString为类指定一个或多个父类。60s {Super}=$s($d(^oddDEF({L1},60))#2:^(60),1:"")
System%CacheString指定该类是实现的内部类。通常不应使用此关键字标记类。61s {System}=$s($d(^oddDEF({L1},61))#2:^(61),1:0)
TimeChanged%CacheString给出最后一次对类进行更改的时间。63s {TimeChanged}=$s($d(^oddDEF({L1},63))#2:^(63),1:"")
TimeCreated%CacheString给出类首次创建的时间。64s {TimeCreated}=$s($d(^oddDEF({L1},64))#2:^(64),1:"")
TriggerClass%CacheString要继承的其他触发器成员父类。99s {TriggerClass}=$s($d(^oddDEF({L1},99))#2:^(99),1:"")
ViewQuery%CacheString给出用于此类的视图定义的 SQL 查询。65s {ViewQuery}=$s($d(^oddDEF({L1},65))#2:^(65),1:"")
_Language39s {_Language}=$s($d(^oddDEF({L1},39))#2:^(39),1:"cache")

%Dictionary.ForeignKeyDefinition - 外键定义表

简介

新建或更改外键时会修改此表字段。

该表为%Dictionary.ClassDefinition子表。

索引

取值索引 - ^oddDEF({%Dictionary.ClassDefinition.Name},"f",{%Dictionary.ForeignKeyDefinition.Name})

  • %Dictionary.ClassDefinition.Name - 类名
  • %Dictionary.ForeignKeyDefinition.Name - 外键名

示例

增加User.Human类外键MenuFK

Class User.Human Extends (%Persistent, %Populate) [ ClassType = persistent, Final, SqlRowIdName = id ]
{Property menu As %String ;ForeignKey MenuFK(menu) References User.FKMenu();
}

查询SQL表:

在这里插入图片描述

Global示例:

USER>zw ^oddDEF("User.Human","f")
^oddDEF("User.Human","f","MenuFK")=""
^oddDEF("User.Human","f","MenuFK",11)=4
^oddDEF("User.Human","f","MenuFK",23)="menu"
^oddDEF("User.Human","f","MenuFK",24)="User.FKMenu"

表结构

字检类型描述位置检索码
ID1
parent%Dictionary.ClassDefinition指向包含父对象的指针
Name%Dictionary.Identifier
Deprecated%Boolean如果此外键已弃用,则为True17 s {Deprecated}=$s($d(^oddDEF({L1},"f",{L3},17))#2:^(17),1:0)
Description%CacheString提供外键的描述。4 s {Description}=$s($d(^oddDEF({L1},"f",{L3},4))#2:^(4),1:"")
Internal%Boolean如果为True,则不在文档中显示此项。14 s {Internal}=$s($d(^oddDEF({L1},"f",{L3},14))#2:^(14),1:0)
NoCheck%BooleanNoCheck27 s {NoCheck}=$s($d(^oddDEF({L1},"f",{L3},27))#2:^(27),1:0)
OnDelete%CacheString指定从外表中删除键值时要采取的引用操作。21 s {OnDelete}=$s($d(^oddDEF({L1},"f",{L3},21))#2:^(21),1:"noaction")
OnUpdate%CacheString指定在外表中更新键值时要采取的引用操作。22 s {OnUpdate}=$s($d(^oddDEF({L1},"f",{L3},22))#2:^(22),1:"noaction")
Properties%CacheString指定一个或多个属性,这些属性的值用于约束外键的值。23 s {Properties}=$s($d(^oddDEF({L1},"f",{L3},23))#2:^(23),1:"")
ReferencedClass%Dictionary.CacheClassname指定包含此外键定义引用的键的类的名称。24 s {ReferencedClass}=$s($d(^oddDEF({L1},"f",{L3},24))#2:^(24),1:"")
ReferencedKey%CacheString指定类中唯一索引的键名,该类为该外键提供一组允许的值。25 s {ReferencedKey}=$s($d(^oddDEF({L1},"f",{L3},25))#2:^(25),1:"")
SequenceNumber%Integer序列号11 s {SequenceNumber}=$s($d(^oddDEF({L1},"f",{L3},11))#2:^(11),1:0)
SqlName%CacheString指定通过SQL引用此外键时的替代名称。26 s {SqlName}=$s($d(^oddDEF({L1},"f",{L3},26))#2:^(26),1:"")

%Dictionary.IndexDefinition - 索引定义表

简介

新建或修改索引时会修改此表字段。

该表为%Dictionary.ClassDefinition子表。

索引

取值索引 - ^oddDEF({%Dictionary.ClassDefinition.Name},"i",{%Dictionary.IndexDefinition.Name})

  • %Dictionary.ClassDefinition.Name - 类名
  • %Dictionary.IndexDefinition.Name - 索引名

示例

添加User.Human类索引IndexName

Index IndexName On name;Property name As %String;

查询SQL表:

在这里插入图片描述

Global示例:

USER>zw ^oddDEF("User.Human","i")
^oddDEF("User.Human","i","IndexName")=""
^oddDEF("User.Human","i","IndexName",11)=1
^oddDEF("User.Human","i","IndexName",28)="name"

表结构

字检类型描述位置检索码
ID1
parent%Dictionary.ClassDefinition指向包含父对象的指针
Name%Dictionary.Identifier
Condition%CacheString如果是条件索引,则指定索引项必须满足的条件。23 s {Condition}=$s($d(^oddDEF({L1},"i",{L3},23))#2:^(23),1:"")
Data%CacheString指定其值将存储在此索引中的属性列表。24 s {Data}=$s($d(^oddDEF({L1},"i",{L3},24))#2:^(24),1:"")
Deprecated%Boolean如果此索引已弃用,则为True17 s {Deprecated}=$s($d(^oddDEF({L1},"i",{L3},17))#2:^(17),1:0)
Description%CacheString指定索引的描述。4 s {Description}=$s($d(^oddDEF({L1},"i",{L3},4))#2:^(4),1:"")
Extent%Boolean范围索引用于跟踪哪些对象实例属于子类。当使用位图索引时,则自动维护范围索引,无需定义范围索引。25 s {Extent}=$s($d(^oddDEF({L1},"i",{L3},25))#2:^(25),1:0)
IdKey%Boolean指定为该索引定义的一个或多个属性将用于形成该对象的对象标识值。此值用于唯一地定位持久对象实例。26 s {IdKey}=$s($d(^oddDEF({L1},"i",{L3},26))#2:^(26),1:0)
Internal%Boolean如果为true,则不要在自动文档中显示此项。14 s {Internal}=$s($d(^oddDEF({L1},"i",{L3},14))#2:^(14),1:0)
Parameters%CacheString参数0 n sub s {Parameters}="",sub="" f s sub=$o(^oddDEF({L1},"i",{L3},"P",sub)) q:sub="" s {Parameters}={Parameters}_$lb($lb(sub,$g(^oddDEF({L1},"i",{L3},"P",sub))))
PrimaryKey%Boolean指定应该通过SQL报告此索引作为该类的主键。27 s {PrimaryKey}=$s($d(^oddDEF({L1},"i",{L3},27))#2:^(27),1:0)
Properties%CacheString指定用于构建此索引的属性列表。还可以包括每个属性的排序规范。28 s {Properties}=$s($d(^oddDEF({L1},"i",{L3},28))#2:^(28),1:"")
SequenceNumber%Integer序号11 s {SequenceNumber}=$s($d(^oddDEF({L1},"i",{L3},11))#2:^(11),1:0)
SqlName%CacheString当通过SQL引用时,定义此索引的替代名称。29 s {SqlName}=$s($d(^oddDEF({L1},"i",{L3},29))#2:^(29),1:"")
Type%CacheString指定索引的类型。输入key已弃用。5 s {Type}=$s($d(^oddDEF({L1},"i",{L3},5))#2:^(5),1:"")
TypeClass%Dictionary.CacheClassname指定用于提供功能索引接口的实现的FunctionalIndex 类。33 s {TypeClass}=$s($d(^oddDEF({L1},"i",{L3},33))#2:^(33),1:"")
_Unique 31 s {_Unique}=$s($d(^oddDEF({L1},"i",{L3},31))#2:^(31),1:0)

%Dictionary.MethodDefinition - 方法定义表

简介

新建或修改方法时会修改此表字段。

该表为%Dictionary.ClassDefinition子表。

索引

取值索引 - ^oddDEF({%Dictionary.ClassDefinition.Name},"m",{%Dictionary.MethodDefinition.Name})

  • %Dictionary.ClassDefinition.Name - 类名
  • %Dictionary.MethodDefinition.Name - 方法名

示例

添加User.Human类如下方法:

ClassMethod Add(num1, num2)
{q num1 + num2
}Method Min(num1, num2)
{q num1 - num2
}

查询SQL表:

在这里插入图片描述

Global示例:

USER>zw ^oddDEF("User.Human","m")
^oddDEF("User.Human","m","Add")=""
^oddDEF("User.Human","m","Add",11)=6
^oddDEF("User.Human","m","Add",23)=1
^oddDEF("User.Human","m","Add",27)="num1,num2"
^oddDEF("User.Human","m","Add",30)=1
^oddDEF("User.Human","m","Add",30,1)=$c(9)_"q num1 + num2"
^oddDEF("User.Human","m","Min")=""
^oddDEF("User.Human","m","Min",11)=7
^oddDEF("User.Human","m","Min",27)="num1,num2"
^oddDEF("User.Human","m","Min",30)=1
^oddDEF("User.Human","m","Min",30,1)=$c(9)_"q num1 - num2"

表结构

字检类型描述位置检索码
ID1
parent%Dictionary.ClassDefinition指向包含父对象的指针
Name%Dictionary.Identifier
Abstract%Boolean指定这是一个抽象方法。抽象方法没有实现,也没有为其生成可执行代码。抽象方法的存在仅仅是为了定义可以在一个或多个子类中重写和实现的方法签名或接口。21 s {Abstract}=$s($d(^oddDEF({L1},"m",{L3},21))#2:^(21),1:0)
ClassMethod%Boolean指定该方法是类方法。实例方法只能通过实例化的对象来调用,而类方法可以在没有对象实例的情况下直接调用。23 s {ClassMethod}=$s($d(^oddDEF({L1},"m",{L3},23))#2:^(23),1:0)
ClientMethod%Boolean如果为 true,则此方法仅在服务器上可用,并且将被映射为客户端方法。70 s {ClientMethod}=$s($d(^oddDEF({L1},"m",{L3},70))#2:^(70),1:0)
ClientName%CacheStringClientName24 s {ClientName}=$s($d(^oddDEF({L1},"m",{L3},24))#2:^(24),1:"")
CodeMode%CacheString指定如何实现给定方法:作为例程调用、要编译的代码行、表达式或将生成结果方法或对象的方法。25 s {CodeMode}=$s($d(^oddDEF({L1},"m",{L3},25))#2:^(25),1:"code")
Deprecated%Boolean如果此方法已被弃用,则为 True17 s {Deprecated}=$s($d(^oddDEF({L1},"m",{L3},17))#2:^(17),1:0)
Description%CacheString指定方法的描述。4 s {Description}=$s($d(^oddDEF({L1},"m",{L3},4))#2:^(4),1:"")
ExternalProcName%CacheString指定外部数据库中的 SQL 过程名称。63 s {ExternalProcName}=$s($d(^oddDEF({L1},"m",{L3},63))#2:^(63),1:"")
Final%Boolean指定子类不能重写该方法的实现。7 s {Final}=$s($d(^oddDEF({L1},"m",{L3},7))#2:^(7),1:0)
ForceGenerate%Booleantrue 时,总是在每个子类中重新生成此方法,即使正常规则允许我们调用父类实现。71 s {ForceGenerate}=$s($d(^oddDEF({L1},"m",{L3},71))#2:^(71),1:0)
FormalSpec%CacheString指定参数列表。每个参数的格式为`[&][:][=],其中&表示按引用传递,`表示仅输出。
GenerateAfter%CacheString对于方法生成器方法,指定生成器应在生成列出的方法后调用。29 s {GenerateAfter}=$s($d(^oddDEF({L1},"m",{L3},29))#2:^(29),1:"")
Hash%CacheStringHash66 s {Hash}=$s($d(^oddDEF({L1},"m",{L3},66))#2:^(66),1:"")
Implementation%Stream.TmpCharacter调用方法时执行的代码。对于表达式方法,这是一个表达式。对于调用方法,这是要调用的缓存例程的名称。0 s {Implementation}=""
Internal%Boolean如果为 true,则不在文档中显示此项。14 s {Internal}=$s($d(^oddDEF({L1},"m",{L3},14))#2:^(14),1:0)
NoContext%Boolean如果为 true 并且在数据类型方法中,这会阻止 * Set %val=..prop Set $this="" * 添加到属性方法中,以便可以重写 Get/Set 方法等内容。33 s {NoContext}=$s($d(^oddDEF({L1},"m",{L3},33))#2:^(33),1:0)
NotForProperty%Boolean弃用34 s {NotForProperty}=$s($d(^oddDEF({L1},"m",{L3},34))#2:^(34),1:0)
NotInheritable%Boolean指定该方法不在子类中继承。9 s {NotInheritable}=$s($d(^oddDEF({L1},"m",{L3},9))#2:^(9),1:0)
PlaceAfter%CacheString指定类编译器应将此方法放置在它为类创建的例程中列出的方法之后。38 s {PlaceAfter}=$s($d(^oddDEF({L1},"m",{L3},38))#2:^(38),1:"")
Private%Boolean指定该方法是私有的。私有方法只能由此类或其子类的实例方法调用。39 s {Private}=$s($d(^oddDEF({L1},"m",{L3},39))#2:^(39),1:0)
ProcedureBlock%CacheString指定此方法使用方法代码的过程块。40 s {ProcedureBlock}=$s($d(^oddDEF({L1},"m",{L3},40))#2:^(40),1:"")
PublicList%CacheString指定公共列表。仅当 procedureBlock 关键字设置为 true 时才使用此关键字。41 s {PublicList}=$s($d(^oddDEF({L1},"m",{L3},41))#2:^(41),1:"")
ReturnResultsets%Boolean如果为 true,则此方法可能会在 %sqlcontext 中返回零个、一个或多个结果集。64 s {ReturnResultsets}=$s($d(^oddDEF({L1},"m",{L3},64))#2:^(64),1:0)
ReturnType%Dictionary.CacheClassname指定调用方法返回值的数据类型。将 ReturnType 设置为空字符串指定没有返回值。42 s {ReturnType}=$s($d(^oddDEF({L1},"m",{L3},42))#2:^(42),1:"")
ReturnTypeParams%CacheStringReturnType 关键字上的所有参数的逗号分隔列表。62 s {ReturnTypeParams}=$s($d(^oddDEF({L1},"m",{L3},62))#2:^(62),1:"")
SequenceNumber%Integer序号11 s {SequenceNumber}=$s($d(^oddDEF({L1},"m",{L3},11))#2:^(11),1:0)
ServerOnly%CacheString指定方法不会映射到 JavaC++ 客户端。59 s {ServerOnly}=$s($d(^oddDEF({L1},"m",{L3},59))#2:^(59),1:"")
SoapAction%CacheString允许您指定将此 Web 服务方法作为 Web 方法调用时必须使用的 HTTP SOAP 操作。对于 SOAP 1.1SOAP 操作是从 SOAPAction HTTP 标头获取的。对于 SOAP 1.2,它是从 Content-Type HTTP 标头获取的。67 s {SoapAction}=$s($d(^oddDEF({L1},"m",{L3},67))#2:^(67),1:"[default]")
SoapBindingStyle%CacheString指定 Web 方法使用什么类型的 SOAP 调用。对于非 Web 方法,此关键字将被忽略。53 s {SoapBindingStyle}=$s($d(^oddDEF({L1},"m",{L3},53))#2:^(53),1:"")
SoapBodyUse%CacheString指定 Web 方法的输入和输出使用哪种 SOAP 编码。对于非 Web 方法,此关键字将被忽略。54 s {SoapBodyUse}=$s($d(^oddDEF({L1},"m",{L3},54))#2:^(54),1:"")
SoapMessageName%CacheString指定 Web 服务方法的响应消息正文的子元素的名称。68 s {SoapMessageName}=$s($d(^oddDEF({L1},"m",{L3},68))#2:^(68),1:"")
SoapNameSpace%CacheString覆盖此 Web 服务或 Web 服务客户端的 SOAPNAMESPACE 类参数。61 s {SoapNameSpace}=$s($d(^oddDEF({L1},"m",{L3},61))#2:^(61),1:"")
SoapRequestMessage%CacheString该关键字将反映 SOAP 请求中 SOAP 主体顶部元素的预期元素名称。需要此元素来区分具有相同 SoapAction 但不同顶级主体元素的多个请求。73 s {SoapRequestMessage}=$s($d(^oddDEF({L1},"m",{L3},73))#2:^(73),1:"")
SoapTypeNameSpace%CacheString覆盖此 Web 服务或 Web 服务客户端的 SOAPTYPENAMESPACE 类参数。65 s {SoapTypeNameSpace}=$s($d(^oddDEF({L1},"m",{L3},65))#2:^(65),1:"")
SqlName%CacheString如果此方法被投影为 SQL 存储过程,则此名称将用作存储过程的名称。45 s {SqlName}=$s($d(^oddDEF({L1},"m",{L3},45))#2:^(45),1:"")
SqlProc%Boolean指定该方法可以作为 SQL 存储过程调用。只有类方法才能作为 SQL 存储过程进行调用。46 s {SqlProc}=$s($d(^oddDEF({L1},"m",{L3},46))#2:^(46),1:0)
SqlRoutine%CacheString如果“程序”是那么这相当于 SqlProc 关键字,意味着类方法可以作为 SQL 过程调用。如果“函数”那么这个类方法就可以作为 SQL 函数来调用。74 s {SqlRoutine}=$s($d(^oddDEF({L1},"m",{L3},74))#2:^(74),1:"")
WebMethod%Boolean指定可以使用 SOAP 协议将方法作为 Web 方法进行调用。51 s {WebMethod}=$s($d(^oddDEF({L1},"m",{L3},51))#2:^(51),1:0)
ZenMethod%Boolean指定该方法应投影到 Web 客户端以在 Zen 框架中使用。52 s {ZenMethod}=$s($d(^oddDEF({L1},"m",{L3},52))#2:^(52),1:0)
_Language 32 s {_Language}=$s($d(^oddDEF({L1},"m",{L3},32))#2:^(32),1:"")

%Dictionary.ParameterDefinition - 参数定义表

简介

新建或修改类参数时会修改此表字段。

该表为%Dictionary.ClassDefinition子表。

索引

取值索引 - ^oddDEF({%Dictionary.ClassDefinition.Name},"p",{%Dictionary.ParameterDefinition.Name})

  • %Dictionary.ClassDefinition.Name - 类名
  • %Dictionary.ParameterDefinition.Name - 参数名

示例

添加User.HumanAppName参数:

Parameter AppName = "yx";

查询SQL表:

在这里插入图片描述

Global示例:

USER>zw ^oddDEF("User.Human","p")
^oddDEF("User.Human","p","AppName")=""
^oddDEF("User.Human","p","AppName",11)=1
^oddDEF("User.Human","p","AppName",22)="yx"

表结构

字检类型描述位置检索码
ID1
parent%Dictionary.ClassDefinition指向包含父对象的指针
Name%Dictionary.Identifier
Abstract%Boolean抽象24 s {Abstract}=$s($d(^oddDEF({L1},"p",{L3},24))#2:^(24),1:0)
Deprecated%Boolean如果此参数已弃用,则为 True17 s {Deprecated}=$s($d(^oddDEF({L1},"p",{L3},17))#2:^(17),1:0)
Description%CacheString指定参数的描述。4 s {Description}=$s($d(^oddDEF({L1},"p",{L3},4))#2:^(4),1:"")
Encoded%Boolean如果为 true,则参数值采用 Base64 编码。27 s {Encoded}=$s($d(^oddDEF({L1},"p",{L3},27))#2:^(27),1:0)
Expression%CacheString在编译时计算种子参数的表达式,如果指定,则优先于 Default 关键字。25 s {Expression}=$s($d(^oddDEF({L1},"p",{L3},25))#2:^(25),1:"")
Final%Boolean指定子类不能覆盖参数的定义。7 s {Final}=$s($d(^oddDEF({L1},"p",{L3},7))#2:^(7),1:0)
Flags%CacheString指定参数类型的任何附加修饰符标志。23 s {Flags}=$s($d(^oddDEF({L1},"p",{L3},23))#2:^(23),1:"")
Internal%Boolean如果为 true,则不在文档中显示此项。14 s {Internal}=$s($d(^oddDEF({L1},"p",{L3},14))#2:^(14),1:0)
SequenceNumber%Integer序号11 s {SequenceNumber}=$s($d(^oddDEF({L1},"p",{L3},11))#2:^(11),1:0)
Type%CacheString指定参数的类型。 Studio 使用该类型为参数提供输入验证。5 s {Type}=$s($d(^oddDEF({L1},"p",{L3},5))#2:^(5),1:"")
_Constraint 21 s {_Constraint}=$s($d(^oddDEF({L1},"p",{L3},21))#2:^(21),1:"")
_Default 22 s {_Default}=$s($d(^oddDEF({L1},"p",{L3},22))#2:^(22),1:"")

%Dictionary.ProjectionDefinition - 映射定义表

简介

新建或修改类映射时会修改此表字段。

该表为%Dictionary.ClassDefinition子表。

索引

取值索引 - ^oddDEF({%Dictionary.ClassDefinition.Name},"j",{%Dictionary.ProjectionDefinition.Name})

  • %Dictionary.ClassDefinition.Name - 类名
  • %Dictionary.ProjectionDefinition.Name - 映射名

示例

添加User.HumanJavaClient映射:

Projection JavaClient As %Projection.Java(ROOTDIR = "e:\m\java");

查询SQL表:

在这里插入图片描述

Global示例:

USER>zw ^oddDEF("User.Human","j")
^oddDEF("User.Human","j","JavaClient")=""
^oddDEF("User.Human","j","JavaClient",5)="%Projection.Java"
^oddDEF("User.Human","j","JavaClient",11)=1
^oddDEF("User.Human","j","JavaClient","P","ROOTDIR")="e:\m\java"

表结构

字检类型描述位置检索码
ID1
parent%Dictionary.ClassDefinition指向包含父对象的指针
Name%Dictionary.Identifier
Deprecated%Boolean如果此映射已弃用,则为 True17 s {Deprecated}=$s($d(^oddDEF({L1},"j",{L3},17))#2:^(17),1:0)
Description%CacheString指定映射的描述。4 s {Description}=$s($d(^oddDEF({L1},"j",{L3},4))#2:^(4),1:"")
Internal%Boolean如果为true,则不在文档中显示此项。14 s {Internal}=$s($d(^oddDEF({L1},"j",{L3},14))#2:^(14),1:0)
NotInheritable%Boolean指定该映射不在子类中继承。9 s {NotInheritable}=$s($d(^oddDEF({L1},"j",{L3},9))#2:^(9),1:0)
Parameters%CacheString参数0 n sub s {Parameters}="",sub="" f s sub=$o(^oddDEF({L1},"j",{L3},"P",sub)) q:sub="" s {Parameters}={Parameters}_$lb($lb(sub,$g(^oddDEF({L1},"j",{L3},"P",sub))))
SequenceNumber%Integer序号11 s {SequenceNumber}=$s($d(^oddDEF({L1},"j",{L3},11))#2:^(11),1:0)
Type%Dictionary.CacheClassname指定与映射关联的类的名称。5 s {Type}=$s($d(^oddDEF({L1},"j",{L3},5))#2:^(5),1:"")

%Dictionary.PropertyDefinition - 属性定义表

简介

新建或修改类属性时会修改此表字段。

该表为%Dictionary.ClassDefinition子表。

索引

取值索引 - ^oddDEF({%Dictionary.ClassDefinition.Name},"a",{%Dictionary.PropertyDefinition.Name})

  • %Dictionary.ClassDefinition.Name - 类名
  • %Dictionary.PropertyDefinition.Name - 属性名

示例

添加User.Humannameage属性:

Property name As %String;Property age As %Integer;

查询SQL表:

在这里插入图片描述

Global示例:

USER>zw ^oddDEF("User.Human","a")
^oddDEF("User.Human","a","age")=""
^oddDEF("User.Human","a","age",5)="%Integer"
^oddDEF("User.Human","a","age",11)=5
^oddDEF("User.Human","a","menu")=""
^oddDEF("User.Human","a","menu",5)="%String"
^oddDEF("User.Human","a","menu",11)=6
^oddDEF("User.Human","a","name")=""
^oddDEF("User.Human","a","name",5)="%String"
^oddDEF("User.Human","a","name",11)=4

表结构

字检类型描述位置检索码
ID1
parent%Dictionary.ClassDefinition指向包含父对象的指针
Name%Dictionary.Identifier
Aliases%CacheString该属性的别名列表。58 s {Aliases}=$s($d(^oddDEF({L1},"a",{L3},58))#2:^(58),1:"")
Calculated%Boolean指定在实例化包含该属性的对象时,没有为其分配内存存储。23 s {Calculated}=$s($d(^oddDEF({L1},"a",{L3},23))#2:^(23),1:0)
Cardinality%CacheString指定关系属性的基数。关系属性需要 Cardinality 关键字。它被非关系属性忽略。24 s {Cardinality}=$s($d(^oddDEF({L1},"a",{L3},24))#2:^(24),1:"")
ClientName%CacheString客户端名称26 s {ClientName}=$s($d(^oddDEF({L1},"a",{L3},26))#2:^(26),1:"")
Collection%CacheString指定属性是集合属性以及它是什么类型的集合。27 s {Collection}=$s($d(^oddDEF({L1},"a",{L3},27))#2:^(27),1:"")
Deprecated%Boolean如果此属性已弃用,则为 true。17 s {Deprecated}=$s($d(^oddDEF({L1},"a",{L3},17))#2:^(17),1:0)
Description%CacheString指定属性的描述。4 s {Description}=$s($d(^oddDEF({L1},"a",{L3},4))#2:^(4),1:"")
Final%Boolean指定子类不能覆盖此属性的定义。7 s {Final}=$s($d(^oddDEF({L1},"a",{L3},7))#2:^(7),1:0)
InitialExpression%CacheString指定属性的初始值。31 s {InitialExpression}=$s($d(^oddDEF({L1},"a",{L3},31))#2:^(31),1:"""""")
Internal%Boolean如果为真,则不在文档中显示此项。14 s {Internal}=$s($d(^oddDEF({L1},"a",{L3},14))#2:^(14),1:0)
Inverse%CacheString指定关系的反面名称。即相关类中对应关系属性的名称。逆属性必须存在于相关类中并且具有正确的基数值。关系属性需要 Inverse 关键字。它被非关系属性忽略。32 s {Inverse}=$s($d(^oddDEF({L1},"a",{L3},32))#2:^(32),1:"")
MultiDimensional%Boolean指定属性具有多维数组的特征。33 s {MultiDimensional}=$s($d(^oddDEF({L1},"a",{L3},33))#2:^(33),1:0)
NoModBit%Boolean弃用53 s {NoModBit}=$s($d(^oddDEF({L1},"a",{L3},53))#2:^(53),1:0)
NotInheritable%Boolean弃用9 s {NotInheritable}=$s($d(^oddDEF({L1},"a",{L3},9))#2:^(9),1:0)
OnDelete%CacheString指定从外表中删除键值时要采取的参考操作。59 s {OnDelete}=$s($d(^oddDEF({L1},"a",{L3},59))#2:^(59),1:"")
Parameters%CacheString参数0 n sub s {Parameters}="",sub="" f s sub=$o(^oddDEF({L1},"a",{L3},"P",sub)) q:sub="" s {Parameters}={Parameters}_$lb($lb(sub,$g(^oddDEF({L1},"a",{L3},"P",sub))))
Private%Boolean指定该属性是私有的。私有属性只能由此类或其子类的实例方法使用。35 s {Private}=$s($d(^oddDEF({L1},"a",{L3},35))#2:^(35),1:0)
ReadOnly%Boolean指定该属性是只读的。52 s {ReadOnly}=$s($d(^oddDEF({L1},"a",{L3},52))#2:^(52),1:0)
Relationship%Boolean指定属性是关系属性。36 s {Relationship}=$s($d(^oddDEF({L1},"a",{L3},36))#2:^(36),1:0)
Required%Boolean对于持久类,指定必须先为属性的值指定一个值,然后才能将其存储到磁盘。37 s {Required}=$s($d(^oddDEF({L1},"a",{L3},37))#2:^(37),1:0)
SequenceNumber%Integer序号11 s {SequenceNumber}=$s($d(^oddDEF({L1},"a",{L3},11))#2:^(11),1:0)
ServerOnly%CacheString指定属性不会投影到 JavaC++ 客户端。57 s {ServerOnly}=$s($d(^oddDEF({L1},"a",{L3},57))#2:^(57),1:"")
SqlCollation%CacheString弃用42 s {SqlCollation}=$s($d(^oddDEF({L1},"a",{L3},42))#2:^(42),1:"")
SqlColumnNumber%CacheString显式设置此属性的 SQL 列号。这是为了支持遗留应用程序而提供的。43 s {SqlColumnNumber}=$s($d(^oddDEF({L1},"a",{L3},43))#2:^(43),1:"")
SqlComputeCode%CacheString指定缓存计算字段值的 ObjectScript 代码。44 s {SqlComputeCode}=$s($d(^oddDEF({L1},"a",{L3},44))#2:^(44),1:"")
SqlComputeOnChange%CacheString指定一个或多个属性,其修改将触发 SQL 中此计算字段的重新计算。46 s {SqlComputeOnChange}=$s($d(^oddDEF({L1},"a",{L3},46))#2:^(46),1:"")
SqlComputed%Boolean指定此属性是 SQL 计算字段。45 s {SqlComputed}=$s($d(^oddDEF({L1},"a",{L3},45))#2:^(45),1:0)
SqlFieldName%CacheString对于持久类,指定用于标识其 SQL 映射中的属性的列名。默认情况下SQL 列名称与属性名称相同。47 s {SqlFieldName}=$s($d(^oddDEF({L1},"a",{L3},47))#2:^(47),1:"")
SqlListDelimiter%CacheString指定 SQL 中用于列表的分隔符。这是为了支持遗留应用程序而提供的。48 s {SqlListDelimiter}=$s($d(^oddDEF({L1},"a",{L3},48))#2:^(48),1:"")
SqlListType%CacheString指定用于列表的表示形式。49 s {SqlListType}=$s($d(^oddDEF({L1},"a",{L3},49))#2:^(49),1:"")
Transient%Boolean对于持久类,指定该属性不存储在数据库中。51 s {Transient}=$s($d(^oddDEF({L1},"a",{L3},51))#2:^(51),1:0)
Type%Dictionary.CacheClassname指定与属性关联的类的名称,该类可以是数据类型类、持久类或可嵌入串行类。5 s {Type}=$s($d(^oddDEF({L1},"a",{L3},5))#2:^(5),1:"")
_Identity 56 s {_Identity}=$s($d(^oddDEF({L1},"a",{L3},56))#2:^(56),1:0)

%Dictionary.PropertyUDLTextDefinition - PropertyUDLText定义表

该表为%Dictionary.PropertyDefinition子表。

索引

取值索引 - ^oddDEF({%Dictionary.ClassDefinition.Name},"a",{%Dictionary.ForeignKeyDefinition.Name},"u",{%Dictionary.PropertyUDLTextDefinition.Name})

  • %Dictionary.ClassDefinition.Name - 类名
  • %Dictionary.ForeignKeyDefinition.Name - 外键名
  • %Dictionary.PropertyUDLTextDefinition.Name - PropertyUDLText

表结构

字检类型描述位置检索码
ID1
parent%Dictionary.ClassDefinition指向包含父对象的指针
Name%Dictionary.Identifier
Category%CacheString目录23 s {Category}=$s($d(^oddDEF({L1},"a",{L3},"u",{L5},23))#2:^(23),1:"comment")
Content%Stream.TmpCharacter保存 UDL 文本的内容。0 s {Content}=""
Position%CacheString位置24 s {Position}=$s($d(^oddDEF({L1},"a",{L3},"u",{L5},24))#2:^(24),1:"body")
SequenceNumber%Integer序号11 s {SequenceNumber}=$s($d(^oddDEF({L1},"a",{L3},"u",{L5},11))#2:^(11),1:0)
TextType%Integer文本类型22 s {TextType}=$s($d(^oddDEF({L1},"a",{L3},"u",{L5},22))#2:^(22),1:0)

%Dictionary.QueryDefinition - 查询定义表

简介

新建或修改Query定义时会修改此表字段。

该表为%Dictionary.ClassDefinition子表。

索引

取值索引 - ^oddDEF({%Dictionary.ClassDefinition.Name},"q",{%Dictionary.QueryDefinition.Name}

  • %Dictionary.ClassDefinition.Name - 类名
  • %Dictionary.QueryDefinition.Name - 查询名

示例

添加User.Human类如下Query方法:

Query QueryPersonByName(name As %String = "") As %SQLQuery(COMPILEMODE = "IMMEDIATE", CONTAINID = 1, ROWSPEC = "id:%Integer:ID,name:%String,age:%String", SELECTMODE = "RUNTIME") [ SqlName = QueryPersonByName, SqlProc ]
{SELECT top 10 ID, name, ageFROM SQLUser.HumanWHERE (name %STARTSWITH :name)ORDER BY id
}

查询SQL表:

在这里插入图片描述

Global示例:

USER>zw ^oddDEF("User.Human","q")
^oddDEF("User.Human","q","QueryPersonByName")=""
^oddDEF("User.Human","q","QueryPersonByName",4)="d ##class(%ResultSet).RunQuery(""M.Query"", ""QueryPersonByName"")"
^oddDEF("User.Human","q","QueryPersonByName",5)="%SQLQuery"
^oddDEF("User.Human","q","QueryPersonByName",11)=1
^oddDEF("User.Human","q","QueryPersonByName",24)="name:%String="""""
^oddDEF("User.Human","q","QueryPersonByName",27)="QueryPersonByName"
^oddDEF("User.Human","q","QueryPersonByName",28)=1
^oddDEF("User.Human","q","QueryPersonByName",29)=$c(9)_"SELECT top 10 ID, name, age"_$c(13,10,9)_"FROM SQLUser.Human"_$c(13,10,9)_"WHERE (name %STARTSWITH :name)"_$c(13,10,9)_"ORDER BY id"
^oddDEF("User.Human","q","QueryPersonByName","P","COMPILEMODE")="IMMEDIATE"
^oddDEF("User.Human","q","QueryPersonByName","P","CONTAINID")=1
^oddDEF("User.Human","q","QueryPersonByName","P","ROWSPEC")="id:%Integer:ID,name:%String,age:%String"
^oddDEF("User.Human","q","QueryPersonByName","P","SELECTMODE")="RUNTIME"

表结构

字检类型描述位置检索码
ID1
parent%Dictionary.ClassDefinition指向包含父对象的指针
Name%Dictionary.Identifier
ClientName%CacheString客户端名称41 s {ClientName}=$s($d(^oddDEF({L1},"q",{L3},41))#2:^(41),1:"")
Deprecated%Boolean如果此查询已弃用,则为 True17 s {Deprecated}=$s($d(^oddDEF({L1},"q",{L3},17))#2:^(17),1:0)
Description%CacheString指定查询的描述。4 s {Description}=$s($d(^oddDEF({L1},"q",{L3},4))#2:^(4),1:"")
Final%Boolean指定子类不能覆盖查询的定义。7 s {Final}=$s($d(^oddDEF({L1},"q",{L3},7))#2:^(7),1:0)
FormalSpec%CacheString指定传递给Execute方法的参数列表。每个参数的格式为`[&][:][=],其中&表示按引用传递,`表示仅输出。
Internal%Boolean如果为true,则不要在自动文档中显示此项。14 s {Internal}=$s($d(^oddDEF({L1},"q",{L3},14))#2:^(14),1:0)
NotInheritable%Boolean弃用9 s {NotInheritable}=$s($d(^oddDEF({L1},"q",{L3},9))#2:^(9),1:0)
Parameters%CacheString参数0 n sub s {Parameters}="",sub="" f s sub=$o(^oddDEF({L1},"q",{L3},"P",sub)) q:sub="" s {Parameters}={Parameters}_$lb($lb(sub,$g(^oddDEF({L1},"q",{L3},"P",sub))))
Private%Boolean弃用26 s {Private}=$s($d(^oddDEF({L1},"q",{L3},26))#2:^(26),1:0)
SequenceNumber%Integer序号11 s {SequenceNumber}=$s($d(^oddDEF({L1},"q",{L3},11))#2:^(11),1:0)
SoapBindingStyle%CacheString指定用于web方法的SOAP调用的类型。非web方法忽略此关键字。35 s {SoapBindingStyle}=$s($d(^oddDEF({L1},"q",{L3},35))#2:^(35),1:"")
SoapBodyUse%CacheString指定用于web方法的输入和输出的SOAP编码类型。非web方法忽略此关键字。36 s {SoapBodyUse}=$s($d(^oddDEF({L1},"q",{L3},36))#2:^(36),1:"")
SoapNameSpace%CacheStringSoap命名空间37 s {SoapNameSpace}=$s($d(^oddDEF({L1},"q",{L3},37))#2:^(37),1:"")
SqlName%CacheString如果将此查询映射为SQL存储过程,则使用此名称作为存储过程的名称。27 s {SqlName}=$s($d(^oddDEF({L1},"q",{L3},27))#2:^(27),1:"")
SqlProc%Boolean指定查询可以作为SQL存储过程调用。28 s {SqlProc}=$s($d(^oddDEF({L1},"q",{L3},28))#2:^(28),1:0)
SqlQuery%CacheString指定要用于基于SQL的查询的SQL语句。29 s {SqlQuery}=$s($d(^oddDEF({L1},"q",{L3},29))#2:^(29),1:"")
SqlView%Boolean指定是否将此查询映射为SQL视图。30 s {SqlView}=$s($d(^oddDEF({L1},"q",{L3},30))#2:^(30),1:0)
SqlViewName%CacheString为从该查询映射的视图指定SQL别名。31 s {SqlViewName}=$s($d(^oddDEF({L1},"q",{L3},31))#2:^(31),1:"")
Type%Dictionary.CacheClassname指定用于提供查询接口实现的Query类。5 s {Type}=$s($d(^oddDEF({L1},"q",{L3},5))#2:^(5),1:"")
WebMethod%Boolean指定该查询可以使用SOAP协议调用。33 s {WebMethod}=$s($d(^oddDEF({L1},"q",{L3},33))#2:^(33),1:0)

%Dictionary.StorageDefinition - Storage定义表

简介

新建或修改Storage定义时会修改此表字段。

该表为%Dictionary.ClassDefinition子表。

索引

取值索引 - ^oddDEF({%Dictionary.ClassDefinition.Name},"s",{%Dictionary.StorageDefinition.Name})

  • %Dictionary.ClassDefinition.Name - 类名
  • %Dictionary.StorageDefinition.Name - Storage

示例

User.Human类添加如下Storage定义:

Storage Default
{
<Data name="HumanDefaultData">
<Value name="1">
<Value>%%CLASSNAME</Value>
</Value>
<Value name="2">
<Value>name</Value>
</Value>
<Value name="3">
<Value>age</Value>
</Value>
<Value name="4">
<Value>menu</Value>
</Value>
</Data>
<DataLocation>^User.HumanD</DataLocation>
<DefaultData>HumanDefaultData</DefaultData>
<IdLocation>^User.HumanD</IdLocation>
<IndexLocation>^User.HumanI</IndexLocation>
<StreamLocation>^User.HumanS</StreamLocation>
<Type>%Library.CacheStorage</Type>
}

在这里插入图片描述

查询SQL表:

在这里插入图片描述

Global示例:

USER>zw ^oddDEF("User.Human","s")
^oddDEF("User.Human","s","Default")=""
^oddDEF("User.Human","s","Default",5)="%Library.CacheStorage"
^oddDEF("User.Human","s","Default",11)=11
^oddDEF("User.Human","s","Default",21)="^User.HumanD"
^oddDEF("User.Human","s","Default",22)="HumanDefaultData"
^oddDEF("User.Human","s","Default",24)="^User.HumanD"
^oddDEF("User.Human","s","Default",25)="^User.HumanI"
^oddDEF("User.Human","s","Default",33)="^User.HumanS"

表结构

字检类型描述位置检索码
ID1
parent%Dictionary.ClassDefinition指向包含父对象的指针
Name%Dictionary.Identifier
CounterLocation%CacheString为类型为%Library.Counter的属性指定计数器的基本位置。通常,这将是一个Global引用,如^User.PersonCGlobal引用还可以包括一个或多个前导下标。36 s {CounterLocation}=$s($d(^oddDEF({L1},"s",{L3},36))#2:^(36),1:"")
DataLocation%CacheString指定表达式,该表达式是该类的数据存储位置。通常,这将是Global引用,例如 ^User.PersonDGlobal引用还可以包括一个或多个前导下标。21 s {DataLocation}=$s($d(^oddDEF({L1},"s",{L3},21))#2:^(21),1:"")
DefaultData%CacheString指定类编译器数据结构生成器用来放置任何以前未存储的属性的 DATA 定义的名称。如果属性可存储,但未在任何 DATA 定义中列出,则该属性未存储。22 s {DefaultData}=$s($d(^oddDEF({L1},"s",{L3},22))#2:^(22),1:"")
Deprecated%Boolean如果此存储已弃用,则为 true17 s {Deprecated}=$s($d(^oddDEF({L1},"s",{L3},17))#2:^(17),1:0)
Description%CacheString指定存储定义的描述。此4 s {Description}=$s($d(^oddDEF({L1},"s",{L3},4))#2:^(4),1:"")
ExtentSize%CacheString范围大小34 s {ExtentSize}=$s($d(^oddDEF({L1},"s",{L3},34))#2:^(34),1:"")
Final%Boolean指定子类不能修改存储定义。7 s {Final}=$s($d(^oddDEF({L1},"s",{L3},7))#2:^(7),1:0)
IdExpression%CacheStringId表达式23 s {IdExpression}=$s($d(^oddDEF({L1},"s",{L3},23))#2:^(23),1:"")
IdFunction%CacheString指定用于分配新 id 值的系统函数。37 s {IdFunction}=$s($d(^oddDEF({L1},"s",{L3},37))#2:^(37),1:"")
IdLocation%CacheString指定 ID 计数器的位置。24 s {IdLocation}=$s($d(^oddDEF({L1},"s",{L3},24))#2:^(24),1:"")
IndexLocation%CacheString指定用于此类索引的Global。如果未指定,则索引位置为 ^MyApp.MyClassI,其中 MyApp.MyClass 是类名。25 s {IndexLocation}=$s($d(^oddDEF({L1},"s",{L3},25))#2:^(25),1:"")
Internal%Boolean如果为 true,则不在自动文档中显示此项。14 s {Internal}=$s($d(^oddDEF({L1},"s",{L3},14))#2:^(14),1:0)
SequenceNumber%Integer序号11 s {SequenceNumber}=$s($d(^oddDEF({L1},"s",{L3},11))#2:^(11),1:0)
SqlChildSub%CacheStringSqlChildSub27 s {SqlChildSub}=$s($d(^oddDEF({L1},"s",{L3},27))#2:^(27),1:"")
SqlIdExpression%CacheStringSqlIdExpression28 s {SqlIdExpression}=$s($d(^oddDEF({L1},"s",{L3},28))#2:^(28),1:"")
SqlRowIdName%CacheString指定投影到 SQL 的行 ID 列的名称。29 s {SqlRowIdName}=$s($d(^oddDEF({L1},"s",{L3},29))#2:^(29),1:"")
SqlRowIdProperty%CacheString指定 SQL RowId 属性。此关键字仅由从早期 ISC 产品迁移的类使用。30 s {SqlRowIdProperty}=$s($d(^oddDEF({L1},"s",{L3},30))#2:^(30),1:"")
SqlTableNumber%CacheString指定内部 SQL 表号。此关键字仅由从早期 ISC产品迁移的类使用。31 s {SqlTableNumber}=$s($d(^oddDEF({L1},"s",{L3},31))#2:^(31),1:"")
State%CacheString对于串行嵌入类,此关键字指定使用哪个数据定义来定义对象的序列化状态。这也是默认结构生成器将添加未存储属性的默认数据定义。32 s {State}=$s($d(^oddDEF({L1},"s",{L3},32))#2:^(32),1:"")
StreamLocation%CacheString指定用于存储此类中流属性的默认Global值。如果未指定,则索引位置为 ^MyApp.MyClassS,其中 MyApp.MyClass 是类名。33 s {StreamLocation}=$s($d(^oddDEF({L1},"s",{L3},33))#2:^(33),1:"")
Type%Dictionary.CacheClassname指定用于为此类提供持久性的存储类。5 s {Type}=$s($d(^oddDEF({L1},"s",{L3},5))#2:^(5),1:"")
VersionLocation%CacheString指定%Version计数器的位置。35 s {VersionLocation}=$s($d(^oddDEF({L1},"s",{L3},35))#2:^(35),1:"")

%Dictionary.StorageDataDefinition - StorageData定义表

简介

新建或修改StorageData定义时会修改此表字段。

该表为%Dictionary.StorageDefinition子表。

索引

取值索引 - ^oddDEF({%Dictionary.ClassDefinition.Name},"s",{%Dictionary.StorageDefinition.Name},"D",{%Dictionary.StorageDataDefinition.Name})

  • %Dictionary.ClassDefinition.Name - 类名
  • %Dictionary.StorageDefinition.Name - Storage名称
  • %Dictionary.StorageDataDefinition.Name - StorageData名称

示例

User.Human类添加如下StorageData定义:

在这里插入图片描述

查询SQL表:

在这里插入图片描述

Global示例:

USER>zw ^oddDEF("User.Human","s","Default","D")
^oddDEF("User.Human","s","Default","D","HumanDefaultData")=""

表结构

字检类型描述位置检索码
ID1
parent%Dictionary.ClassDefinition指向包含父对象的指针
Name%Dictionary.Identifier
Attribute%CacheString属性0 s {Attribute}=$g(^oddDEF({L1},"s",{L3},"D",{L5},21),$g(^%qCacheObjectKey(1,"D",21)))
Structure%CacheString指定如何将数据存储到Gloabl节点中。0 s {Structure}=$g(^oddDEF({L1},"s",{L3},"D",{L5},22),$g(^%qCacheObjectKey(1,"D",22)))
Subscript%CacheString下标0 s {Subscript}=$g(^oddDEF({L1},"s",{L3},"D",{L5},23),$g(^%qCacheObjectKey(1,"D",23)))

%Dictionary.StorageDataValueDefinition - StorageDataValue定义表

简介

新建或修改StorageDataValue定义时会修改此表字段。

该表为%Dictionary.StorageDataDefinition子表。

索引

取值索引 - ^oddDEF({%Dictionary.ClassDefinition.Name},"s",{%Dictionary.StorageDefinition.Name},"D",{%Dictionary.StorageDataDefinition.Name},"V",{%Dictionary.StorageDataValueDefinition.Name})

  • %Dictionary.ClassDefinition.Name - 类名
  • %Dictionary.StorageDefinition.Name - Storage名称
  • %Dictionary.StorageDataDefinition.Name - StorageData名称
  • %Dictionary.StorageDataValueDefinition.Name - StorageDataValue名称

示例

User.Human类添加如下StorageDataValue定义:

<Data name="HumanDefaultData">
<Value name="1">
<Value>%%CLASSNAME</Value>
</Value>
<Value name="2">
<Value>name</Value>
</Value>
<Value name="3">
<Value>age</Value>
</Value>
<Value name="4">
<Value>menu</Value>
</Value>
<Value name="5">
<Value>role</Value>
</Value>
</Data>

在这里插入图片描述

查询SQL表:

在这里插入图片描述

Global示例:

USER>zw ^oddDEF("User.Human","s","Default","D")
^oddDEF("User.Human","s","Default","D","HumanDefaultData")=""
^oddDEF("User.Human","s","Default","D","HumanDefaultData","V",1)=""
^oddDEF("User.Human","s","Default","D","HumanDefaultData","V",1,21)="%%CLASSNAME"
^oddDEF("User.Human","s","Default","D","HumanDefaultData","V",2)=""
^oddDEF("User.Human","s","Default","D","HumanDefaultData","V",2,21)="name"
^oddDEF("User.Human","s","Default","D","HumanDefaultData","V",3)=""
^oddDEF("User.Human","s","Default","D","HumanDefaultData","V",3,21)="age"
^oddDEF("User.Human","s","Default","D","HumanDefaultData","V",4)=""
^oddDEF("User.Human","s","Default","D","HumanDefaultData","V",4,21)="menu"
^oddDEF("User.Human","s","Default","D","HumanDefaultData","V",5)=""
^oddDEF("User.Human","s","Default","D","HumanDefaultData","V",5,21)="role"

表结构

字检类型描述位置检索码
ID1
parent%Dictionary.ClassDefinition指向包含父对象的指针
Name%Dictionary.Identifier
Value%CacheString0 s {Value}=$g(^oddDEF({L1},"s",{L3},"D",{L5},"V",{L7},21),$g(^%qCacheObjectKey(1,"V",21)))

%Dictionary.StorageIndexDefinition - StorageIndex定义表

简介

新建或修改StorageIndex定义时会修改此表字段。

该表为%Dictionary.StorageDefinition子表。

索引

取值索引 - ^oddDEF({%Dictionary.ClassDefinition.Name},"s",{%Dictionary.StorageDefinition.Name},"X",{%Dictionary.StorageIndexDefinition.Name})

  • %Dictionary.ClassDefinition.Name - 类名
  • %Dictionary.StorageDefinition.Name - Storage
  • %Dictionary.StorageIndexDefinition.Name - StorageIndex名称

示例

User.Human类添加如下StorageIndex定义:

<Index name="IndexName">
<Location>^User.HumanI</Location>
</Index>

在这里插入图片描述

查询SQL表:

在这里插入图片描述

Global示例:

USER>zw ^oddDEF("User.Human","s","Default","X")
^oddDEF("User.Human","s","Default","X","IndexName")=""
^oddDEF("User.Human","s","Default","X","IndexName",11)=1
^oddDEF("User.Human","s","Default","X","IndexName",21)="^User.HumanI"

表结构

字检类型描述位置检索码
ID1
parent%Dictionary.ClassDefinition指向包含父对象的指针
Name%Dictionary.Identifier
Location%CacheString位置21 s {Location}=$g(^oddDEF({L1},"s",{L3},"X",{L5},21),$g(^%qCacheObjectKey(1,"X",21)))

%Dictionary.StoragePropertyDefinition - StorageProperty定义表

简介

新建或修改StorageProperty定义时会修改此表字段。

进行调优表时会自动添加该属性,调优表时需要表存在数据。

该表为%Dictionary.StorageDefinition子表。

索引

  • 取值索引 - ^oddDEF({%Dictionary.ClassDefinition.Name},"s",{%Dictionary.StorageDefinition.Name},"M",{%Dictionary.StoragePropertyDefinition.Name})
    • %Dictionary.ClassDefinition.Name - 类名
    • %Dictionary.StorageDefinition.Name - Storage
    • %Dictionary.StoragePropertyDefinition.Name - StorageProperty名称

示例

User.Status类进行调优表:

<Property name="%%CLASSNAME">
<AverageFieldSize>1</AverageFieldSize>
<Selectivity>100.0000%</Selectivity>
</Property>
<Property name="%%ID">
<AverageFieldSize>1.1</AverageFieldSize>
<Selectivity>1</Selectivity>
</Property>
<Property name="code">
<AverageFieldSize>3</AverageFieldSize>
<Selectivity>33.3333%</Selectivity>
</Property>
<Property name="name">
<AverageFieldSize>2</AverageFieldSize>
<Selectivity>33.3333%</Selectivity>
</Property>

在这里插入图片描述

查询SQL表:

在这里插入图片描述

Global示例:

USER>zw ^oddDEF("User.Status","s","Default","M")
^oddDEF("User.Status","s","Default","M","%%CLASSNAME",21)="100.0000%"
^oddDEF("User.Status","s","Default","M","%%CLASSNAME",26)=1
^oddDEF("User.Status","s","Default","M","%%ID",21)=1
^oddDEF("User.Status","s","Default","M","%%ID",26)=1.1
^oddDEF("User.Status","s","Default","M","code",21)="33.3333%"
^oddDEF("User.Status","s","Default","M","code",26)=3
^oddDEF("User.Status","s","Default","M","name",21)="33.3333%"
^oddDEF("User.Status","s","Default","M","name",26)=2

表结构

字检类型描述位置检索码
ID1
parent%Dictionary.ClassDefinition指向包含父对象的指针
Name%Dictionary.Identifier
AverageFieldSize%CacheString平均字段大小26 s {AverageFieldSize}=$g(^oddDEF({L1},"s",{L3},"M",{L5},26),$g(^%qCacheObjectKey(1,"M",26)))
BiasQueriesAsOutlier%CacheString偏差查询作为异常值25 s {BiasQueriesAsOutlier}=$g(^oddDEF({L1},"s",{L3},"M",{L5},25),$g(^%qCacheObjectKey(1,"M",25)))
ChildBlockCount%CacheString子块计数27 s {ChildBlockCount}=$g(^oddDEF({L1},"s",{L3},"M",{L5},27),$g(^%qCacheObjectKey(1,"M",27)))
ChildExtentSize%CacheString子范围大小23 s {ChildExtentSize}=$g(^oddDEF({L1},"s",{L3},"M",{L5},23),$g(^%qCacheObjectKey(1,"M",23)))
OutlierSelectivity%CacheString异常值选择性24 s {OutlierSelectivity}=$g(^oddDEF({L1},"s",{L3},"M",{L5},24),$g(^%qCacheObjectKey(1,"M",24)))
Selectivity%CacheString离散值21 s {Selectivity}=$g(^oddDEF({L1},"s",{L3},"M",{L5},21),$g(^%qCacheObjectKey(1,"M",21)))
StreamLocation%CacheString流位置22 s {StreamLocation}=$g(^oddDEF({L1},"s",{L3},"M",{L5},22),$g(^%qCacheObjectKey(1,"M",22)))

%Dictionary.StorageSQLMapDefinition - StorageSQLMap定义表

简介

新建或修改StorageSQLMap定义时会修改此表字段。

此表为储存定义为SQLStorage时生效。

该表为%Dictionary.StorageDefinition子表。

取值

  • 取值索引 - ^oddDEF({%Dictionary.ClassDefinition.Name},"s",{%Dictionary.StorageDefinition.Name},"S",{%Dictionary.StorageSQLMapDefinition.Name})
    • %Dictionary.ClassDefinition.Name - 类名
    • %Dictionary.StorageDefinition.Name - Storage
    • %Dictionary.StorageSQLMapDefinition.Name - StorageSQLMap名称

示例

User.Human类增加SQLStorage并且维护主索引Master,如下:

Storage SQLStorage
{
<SQLMap name="Master">
<ConditionalWithHostVars></ConditionalWithHostVars>
<Data name="age">
<Delimiter>"^"</Delimiter>
<Piece>2</Piece>
</Data>
<Data name="menu">
<Delimiter>"^"</Delimiter>
<Piece>3</Piece>
</Data>
<Data name="name">
<Delimiter>"^"</Delimiter>
<Piece>1</Piece>
</Data>
<Global>^User.Human</Global>
<PopulationType>nonnull</PopulationType>
<Subscript name="1">
<Expression>{id}</Expression>
</Subscript>
<Type>data</Type>
</SQLMap>
<StreamLocation>^User.HumanS</StreamLocation>
<Type>%CacheSQLStorage</Type>
}

在这里插入图片描述

查询SQL表:

在这里插入图片描述

Global示例:

USER>zw ^oddDEF("User.Human","s","SQLStorage","S")
^oddDEF("User.Human","s","SQLStorage","S","Master")=""
^oddDEF("User.Human","s","SQLStorage","S","Master",5)="data"
^oddDEF("User.Human","s","SQLStorage","S","Master",11)=1
^oddDEF("User.Human","s","SQLStorage","S","Master",22)=""
^oddDEF("User.Human","s","SQLStorage","S","Master",24)="^User.Human"
^oddDEF("User.Human","s","SQLStorage","S","Master",26)="nonnull"

表结构

字检类型描述位置检索码
ID1
parent%Dictionary.ClassDefinition指向包含父对象的指针
Name%Dictionary.Identifier
BlockCount%Integer块数29 s {BlockCount}=$g(^oddDEF({L1},"s",{L3},"S",{L5},29),$g(^%qCacheObjectKey(1,"S",29)))
Condition%CacheString条件21 s {Condition}=$g(^oddDEF({L1},"s",{L3},"S",{L5},21),$g(^%qCacheObjectKey(1,"S",21)))
ConditionFields%CacheString条件字段23 s {ConditionFields}=$g(^oddDEF({L1},"s",{L3},"S",{L5},23),$g(^%qCacheObjectKey(1,"S",23)))
ConditionalWithHostVars%Boolean有条件的主机变量22 s {ConditionalWithHostVars}=$g(^oddDEF({L1},"s",{L3},"S",{L5},22),$g(^%qCacheObjectKey(1,"S",22)))
PopulationPct%CacheStringPopulationPct25 s {PopulationPct}=$g(^oddDEF({L1},"s",{L3},"S",{L5},25),$g(^%qCacheObjectKey(1,"S",25)))
PopulationType%CacheString填充类型26 s {PopulationType}=$g(^oddDEF({L1},"s",{L3},"S",{L5},26),$g(^%qCacheObjectKey(1,"S",26)))
RowReference%CacheString行引用27 s {RowReference}=$g(^oddDEF({L1},"s",{L3},"S",{L5},27),$g(^%qCacheObjectKey(1,"S",27)))
Structure%CacheString结构28 s {Structure}=$g(^oddDEF({L1},"s",{L3},"S",{L5},28),$g(^%qCacheObjectKey(1,"S",28)))
Type%CacheString指定这是什么类型的映射。5 s {Type}=$g(^oddDEF({L1},"s",{L3},"S",{L5},5),$g(^%qCacheObjectKey(1,"S",5)))
_Global 24 s {_Global}=$g(^oddDEF({L1},"s",{L3},"S",{L5},24),$g(^%qCacheObjectKey(1,"S",24)))

%Dictionary.StorageSQLMapDataDefinition -StorageSQLMapData定义表

简介

新建或修改StorageSQLMapData定义时会修改此表字段。

此表为储存定义为SQLStorage时生效。

该表为%Dictionary.StorageSQLMapDefinition子表。

索引

  • 取值索引 - ^oddDEF({%Dictionary.ClassDefinition.Name},"s",{%Dictionary.StorageDefinition.Name},"S",{%Dictionary.StorageSQLMapDefinition.Name},"T",{%Dictionary.StorageSQLMapDataDefinition.Name})
    • %Dictionary.ClassDefinition.Name - 类名
    • %Dictionary.StorageDefinition.Name - Storage
    • %Dictionary.StorageSQLMapDefinition.Name - StorageSQLMap名称
    • %Dictionary.StorageSQLMapDataDefinition.Name - StorageSQLMapData名称

示例

User.Human类增加SQLStorage并且维护主索引Master,添加字段映射,如下:

<Data name="age">
<Delimiter>"^"</Delimiter>
<Piece>2</Piece>
</Data>
<Data name="menu">
<Delimiter>"^"</Delimiter>
<Piece>3</Piece>
</Data>
<Data name="name">
<Delimiter>"^"</Delimiter>
<Piece>1</Piece>
</Data>

在这里插入图片描述

查询SQL表:

在这里插入图片描述

Global示例:

USER>zw ^oddDEF("User.Human","s","SQLStorage","S","Master","T")
^oddDEF("User.Human","s","SQLStorage","S","Master","T","age")=""
^oddDEF("User.Human","s","SQLStorage","S","Master","T","age",11)=14
^oddDEF("User.Human","s","SQLStorage","S","Master","T","age",21)="""^"""
^oddDEF("User.Human","s","SQLStorage","S","Master","T","age",23)=2
^oddDEF("User.Human","s","SQLStorage","S","Master","T","menu")=""
^oddDEF("User.Human","s","SQLStorage","S","Master","T","menu",11)=15
^oddDEF("User.Human","s","SQLStorage","S","Master","T","menu",21)="""^"""
^oddDEF("User.Human","s","SQLStorage","S","Master","T","menu",23)=3
^oddDEF("User.Human","s","SQLStorage","S","Master","T","name")=""
^oddDEF("User.Human","s","SQLStorage","S","Master","T","name",11)=13
^oddDEF("User.Human","s","SQLStorage","S","Master","T","name",21)="""^"""
^oddDEF("User.Human","s","SQLStorage","S","Master","T","name",23)=1

表结构

字检类型描述位置检索码
ID1
parent%Dictionary.ClassDefinition指向包含父对象的指针
Name%Dictionary.Identifier
Delimiter%CacheString分隔符21 s {Delimiter}=$g(^oddDEF({L1},"s",{L3},"S",{L5},"T",{L7},21),$g(^%qCacheObjectKey(1,"T",21)))
Node%CacheString节点22 s {Node}=$g(^oddDEF({L1},"s",{L3},"S",{L5},"T",{L7},22),$g(^%qCacheObjectKey(1,"T",22)))
Piece%CacheString位置23 s {Piece}=$g(^oddDEF({L1},"s",{L3},"S",{L5},"T",{L7},23),$g(^%qCacheObjectKey(1,"T",23)))
RetrievalCode%CacheString检索码24 s {RetrievalCode}=$g(^oddDEF({L1},"s",{L3},"S",{L5},"T",{L7},24),$g(^%qCacheObjectKey(1,"T",24)))

%Dictionary.StorageSQLMapRowIdSpecDefinition - StorageSQLMapRowIdSpec定义表

简介

新建或修改StorageSQLMapRowIdSpec定义时会修改此表字段。

此表为储存定义为SQLStorage时生效。

该表为%Dictionary.StorageSQLMapDefinition子表。

索引

  • 取值索引 - ^oddDEF({%Dictionary.ClassDefinition.Name},"s",{%Dictionary.StorageDefinition.Name},"S",{%Dictionary.StorageSQLMapDefinition.Name},"R",{%Dictionary.StorageSQLMapRowIdSpecDefinition.Name})
    • %Dictionary.ClassDefinition.Name - 类名
    • %Dictionary.StorageDefinition.Name - Storage
    • %Dictionary.StorageSQLMapDefinition.Name - StorageSQLMap名称
    • %Dictionary.StorageSQLMapRowIdSpecDefinition.Name - StorageSQLMapRowIdSpec名称

示例

User.Human类增加SQLStorage并且维护主索引Master,添加RowID映射,如下:

在这里插入图片描述

查询SQL表:

在这里插入图片描述

Global示例:

USER>zw ^oddDEF("User.Human","s","SQLStorage","S","Master","R")
^oddDEF("User.Human","s","SQLStorage","S","Master","R",1)=""
^oddDEF("User.Human","s","SQLStorage","S","Master","R",1,11)=21
^oddDEF("User.Human","s","SQLStorage","S","Master","R",1,21)="{L1}"
^oddDEF("User.Human","s","SQLStorage","S","Master","R",1,22)="id"

表结构

字检类型描述位置检索码
ID1
parent%Dictionary.ClassDefinition指向包含父对象的指针
Name%Dictionary.Identifier
Expression%CacheStringExpression21 s {Expression}=$g(^oddDEF({L1},"s",{L3},"S",{L5},"R",{L7},21),$g(^%qCacheObjectKey(1,"R",21)))
Field%CacheStringField22 s {Field}=$g(^oddDEF({L1},"s",{L3},"S",{L5},"R",{L7},22),$g(^%qCacheObjectKey(1,"R",22)))

%Dictionary.StorageSQLMapSubDefinition - StorageSQLMapSub定义表

简介

新建或修改StorageSQLMapSub定义时会修改此表字段。

此表为储存定义为SQLStorage时生效。

该表为%Dictionary.StorageSQLMapDefinition子表。

索引

  • 取值索引 - ^oddDEF({%Dictionary.ClassDefinition.Name},"s",{%Dictionary.StorageDefinition.Name},"S",{%Dictionary.StorageSQLMapDefinition.Name},"B",{%Dictionary.StorageSQLMapSubDefinition.Name})
    • %Dictionary.ClassDefinition.Name - 类名
    • %Dictionary.StorageDefinition.Name - Storage
    • %Dictionary.StorageSQLMapDefinition.Name - StorageSQLMap名称
    • %Dictionary.StorageSQLMapSubDefinition.Name - StorageSQLMapSub名称

示例

User.Human类增加SQLStorage并且维护主索引Master,添加Subscripts映射,如下:

在这里插入图片描述

查询SQL表:

在这里插入图片描述

Global示例:

USER>zw ^oddDEF("User.Human","s","SQLStorage","S","Master","B")
^oddDEF("User.Human","s","SQLStorage","S","Master","B",1)=""
^oddDEF("User.Human","s","SQLStorage","S","Master","B",1,11)=20
^oddDEF("User.Human","s","SQLStorage","S","Master","B",1,24)="{id}"

表结构

字检类型描述位置检索码
ID1
parent%Dictionary.ClassDefinition指向包含父对象的指针
Name%Dictionary.Identifier
AccessType%CacheString接入类型0 s {AccessType}=$g(^oddDEF({L1},"s",{L3},"S",{L5},"B",{L7},21),$g(^%qCacheObjectKey(1,"B",21)))
DataAccess%CacheString数据存取0 s {DataAccess}=$g(^oddDEF({L1},"s",{L3},"S",{L5},"B",{L7},22),$g(^%qCacheObjectKey(1,"B",22)))
Delimiter%CacheString分隔符0 s {Delimiter}=$g(^oddDEF({L1},"s",{L3},"S",{L5},"B",{L7},23),$g(^%qCacheObjectKey(1,"B",23)))
Expression%CacheString表达式0 s {Expression}=$g(^oddDEF({L1},"s",{L3},"S",{L5},"B",{L7},24),$g(^%qCacheObjectKey(1,"B",24)))
LoopInitValue%CacheString循环初始值0 s {LoopInitValue}=$g(^oddDEF({L1},"s",{L3},"S",{L5},"B",{L7},25),$g(^%qCacheObjectKey(1,"B",25)))
NextCode%CacheString下一个代码0 s {NextCode}=$g(^oddDEF({L1},"s",{L3},"S",{L5},"B",{L7},26),$g(^%qCacheObjectKey(1,"B",26)))
NullMarker%CacheString空标记0 s {NullMarker}=$g(^oddDEF({L1},"s",{L3},"S",{L5},"B",{L7},27),$g(^%qCacheObjectKey(1,"B",27)))
StartValue%CacheString起始值0 s {StartValue}=$g(^oddDEF({L1},"s",{L3},"S",{L5},"B",{L7},28),$g(^%qCacheObjectKey(1,"B",28)))
StopExpression%CacheString停止表达式0 s {StopExpression}=$g(^oddDEF({L1},"s",{L3},"S",{L5},"B",{L7},29),$g(^%qCacheObjectKey(1,"B",29)))
StopValue%CacheString停止值0 s {StopValue}=$g(^oddDEF({L1},"s",{L3},"S",{L5},"B",{L7},30),$g(^%qCacheObjectKey(1,"B",30)))

%Dictionary.StorageSQLMapSubAccessvarDefinition - StorageSQLMapSubAccessvar定义表

简介

新建或修改StorageSQLMapSubAccessvar定义时会修改此表字段。

此表为储存定义为SQLStorage时生效。

该表为%Dictionary.StorageSQLMapSubDefinition子表。

索引

  • 取值索引 - ^oddDEF({%Dictionary.ClassDefinition.Name},"s",{%Dictionary.StorageDefinition.Name},"S",{%Dictionary.StorageSQLMapDefinition.Name},"B",{%Dictionary.StorageSQLMapSubDefinition.Name},"A",{%Dictionary.StorageSQLMapSubAccessvarDefinition.Name})
    • %Dictionary.ClassDefinition.Name - 类名
    • %Dictionary.StorageDefinition.Name - Storage
    • %Dictionary.StorageSQLMapDefinition.Name - StorageSQLMap名称
    • %Dictionary.StorageSQLMapSubDefinition.Name - StorageSQLMapSub名称
    • %Dictionary.StorageSQLMapSubAccessvarDefinition.Name - StorageSQLMapSubAccessvar名称

示例

在表的StorageSubscriptsAccessVariables中维护:

在这里插入图片描述

查询SQL表:

在这里插入图片描述

Global示例:

USER>zw ^oddDEF("%SYS.ProcessQuery","s","Process","S","Map1","B",1,"A")
^oddDEF("%SYS.ProcessQuery","s","Process","S","Map1","B",1,"A",1)=""
^oddDEF("%SYS.ProcessQuery","s","Process","S","Map1","B",1,"A",1,21)=" s {1D1}=$zu(67,3,{L1})"
^oddDEF("%SYS.ProcessQuery","s","Process","S","Map1","B",1,"A",1,22)="{1D1}"
^oddDEF("%SYS.ProcessQuery","s","Process","S","Map1","B",1,"A",2)=""
^oddDEF("%SYS.ProcessQuery","s","Process","S","Map1","B",1,"A",2,21)=" s {1D2}="""""
^oddDEF("%SYS.ProcessQuery","s","Process","S","Map1","B",1,"A",2,22)="{1D2}"

表结构

字检类型描述位置检索码
ID1
parent%Dictionary.ClassDefinition指向包含父对象的指针
Name%Dictionary.Identifier
Code%CacheString代码21 s {Code}=$g(^oddDEF({L1},"s",{L3},"S",{L5},"B",{L7},"A",{L9},21),$g(^%qCacheObjectKey(1,"A",21)))
Variable%CacheString变量22 s {Variable}=$g(^oddDEF({L1},"s",{L3},"S",{L5},"B",{L7},"A",{L9},22),$g(^%qCacheObjectKey(1,"A",22)))

%Dictionary.StorageSQLMapSubInvalidconditionDefinition - StorageSQLMapSubInvalidcondition定义表

简介

新建或修改StorageSQLMapSubInvalidcondition定义时会修改此表字段。

此表为储存定义为SQLStorage时生效。

该表为%Dictionary.StorageSQLMapSubDefinition子表。

索引

  • 取值索引 - ^oddDEF({%Dictionary.ClassDefinition.Name},"s",{%Dictionary.StorageDefinition.Name},"S",{%Dictionary.StorageSQLMapDefinition.Name},"B",{%Dictionary.StorageSQLMapSubDefinition.Name},"N","{%Dictionary.StorageSQLMapSubInvalidconditionDefinition.Name}")
    • %Dictionary.ClassDefinition.Name - 类名
    • %Dictionary.StorageDefinition.Name - Storage
    • %Dictionary.StorageSQLMapDefinition.Name - StorageSQLMap名称
    • %Dictionary.StorageSQLMapSubDefinition.Name - StorageSQLMapSub名称
    • %Dictionary.StorageSQLMapSubInvalidconditionDefinition.Name - StorageSQLMapSubInvalidcondition名称

示例

在表的StorageSubscriptsInvalidconditions中维护:

在这里插入图片描述

查询SQL表:

在这里插入图片描述

Global示例:

USER>zw ^oddDEF("%SYS.ProcessQuery","s","Process","S","Map1","B",1,"N")
^oddDEF("%SYS.ProcessQuery","s","Process","S","Map1","B",1,"N",1)=""
^oddDEF("%SYS.ProcessQuery","s","Process","S","Map1","B",1,"N",1,21)="##Class(%SYS.ProcessQuery).AllowToOpen({L1})'=1"

表结构

字检类型描述位置检索码
ID1
parent%Dictionary.ClassDefinition指向包含父对象的指针
Name%Dictionary.Identifier
Expression%CacheString表达式0 s {Expression}=$g(^oddDEF({L1},"s",{L3},"S",{L5},"B",{L7},"N",{L9},21),$g(^%qCacheObjectKey(1,"N",21)))

%Dictionary.TriggerDefinition - 触发器定义表

简介

新建或修改触发器时会修改此表字段。

该表为%Dictionary.ClassDefinition子表。

索引

  • 取值索引 - ^oddDEF({%Dictionary.ClassDefinition.Name},"t",{%Dictionary.TriggerDefinition.Name})
    • %Dictionary.ClassDefinition.Name - 类名
    • %Dictionary.TriggerDefinition.Name - 触发器名称

示例

添加User.Human类如下LogEvent触发器:

Trigger LogEvent [ Event = INSERT, Time = AFTER ]
{
}

查询SQL表:

在这里插入图片描述

Global示例:

USER>zw ^oddDEF("User.Human","t")
^oddDEF("User.Human","t","LogEvent")=""
^oddDEF("User.Human","t","LogEvent",11)=1
^oddDEF("User.Human","t","LogEvent",22)="INSERT"
^oddDEF("User.Human","t","LogEvent",25)="AFTER"

表结构

字检类型描述位置检索码
ID1
parent%Dictionary.ClassDefinition指向包含父对象的指针
Name%Dictionary.Identifier
Code%CacheString触发触发器时执行的代码。21 s {Code}=$s($d(^oddDEF({L1},"t",{L3},21))#2:^(21),1:"")
CodeMode%CacheString指定如何实现给定方法:要编译的代码行,或将生成结果方法或对象的方法。31 s {CodeMode}=$s($d(^oddDEF({L1},"t",{L3},31))#2:^(31),1:"code")
Deprecated%Boolean如果此触发器已弃用,则为 True17 s {Deprecated}=$s($d(^oddDEF({L1},"t",{L3},17))#2:^(17),1:0)
Description%CacheString指定 SQL 触发器的描述。4 s {Description}=$s($d(^oddDEF({L1},"t",{L3},4))#2:^(4),1:"")
Event%CacheString指定将触发触发器的 SQL 事件。22 s {Event}=$s($d(^oddDEF({L1},"t",{L3},22))#2:^(22),1:"")
Final%Boolean指定子类不能覆盖 SQL 触发器的定义。7 s {Final}=$s($d(^oddDEF({L1},"t",{L3},7))#2:^(7),1:0)
Foreach%CacheString指示是否将为每行、行和对象或每个语句调用触发器26 s {Foreach}=$s($d(^oddDEF({L1},"t",{L3},26))#2:^(26),1:"")
Internal%Boolean如果为 true,则不在自动文档中显示此项。14 s {Internal}=$s($d(^oddDEF({L1},"t",{L3},14))#2:^(14),1:0)
NewTable%CacheString保存触发器新值的 SQL 表的名称。29 s {NewTable}=$s($d(^oddDEF({L1},"t",{L3},29))#2:^(29),1:"")
OldTable%CacheString保存触发器旧值的 SQL 表的名称。30 s {OldTable}=$s($d(^oddDEF({L1},"t",{L3},30))#2:^(30),1:"")
Order%Integer如果同一事件和时间有多个触发器,请指定触发器的触发顺序。23 s {Order}=$s($d(^oddDEF({L1},"t",{L3},23))#2:^(23),1:0)
SequenceNumber%Integer序号11 s {SequenceNumber}=$s($d(^oddDEF({L1},"t",{L3},11))#2:^(11),1:0)
SqlName%CacheString指定 SQL 使用此触发器时的备用名称。24 s {SqlName}=$s($d(^oddDEF({L1},"t",{L3},24))#2:^(24),1:"")
UpdateColumnList%CacheString指定一个或多个列,其修改会导致 SQL 拉动触发器。28 s {UpdateColumnList}=$s($d(^oddDEF({L1},"t",{L3},28))#2:^(28),1:"")
_Language 27 s {_Language}=$s($d(^oddDEF({L1},"t",{L3},27))#2:^(27),1:"")
_Time 25 s {_Time}=$s($d(^oddDEF({L1},"t",{L3},25))#2:^(25),1:"BEFORE")

%Dictionary.UDLTextDefinition - UDLText定义表

简介

新建或修改UDLText时会修改此表字段。

该注释只在类中生效,在方法中不会添加到此表中。

该表为%Dictionary.ClassDefinition子表。

索引

取值索引 - ^oddDEF({%Dictionary.ClassDefinition.Name},"u",{%Dictionary.UDLTextDefinition.Name})

  • %Dictionary.ClassDefinition.Name - 类名
  • %Dictionary.UDLTextDefinition.Name - UDLText

示例

添加User.Human\\注释:

// todo:对外提供接口// Property type As %String;

查询SQL表:

在这里插入图片描述

Global示例:

USER>zw ^oddDEF("User.Human","u")
^oddDEF("User.Human","u","T1")=""
^oddDEF("User.Human","u","T1",11)=1
^oddDEF("User.Human","u","T1",21)=2
^oddDEF("User.Human","u","T1",21,1)="// todo:对外提供接口"
^oddDEF("User.Human","u","T1",21,2)=""
^oddDEF("User.Human","u","T2")=""
^oddDEF("User.Human","u","T2",11)=2
^oddDEF("User.Human","u","T2",21)=2
^oddDEF("User.Human","u","T2",21,1)="// Property type As %String;"
^oddDEF("User.Human","u","T2",21,2)=""

表结构

字检类型描述位置检索码
ID1
parent%Dictionary.ClassDefinition指向包含父对象的指针
Name%Dictionary.Identifier
Category%CacheStringCategory23 s {Category}=$s($d(^oddDEF({L1},"u",{L3},23))#2:^(23),1:"comment")
Content%Stream.TmpCharacter保存 UDL 文本的内容。0 s {Content}=""
Position%CacheString位置24 s {Position}=$s($d(^oddDEF({L1},"u",{L3},24))#2:^(24),1:"body")
SequenceNumber%Integer序号11 s {SequenceNumber}=$s($d(^oddDEF({L1},"u",{L3},11))#2:^(11),1:0)
TextType%Integer文本类型22 s {TextType}=$s($d(^oddDEF({L1},"u",{L3},22))#2:^(22),1:0)

%Dictionary.XDataDefinition - XData定义表

简介

新建或修改XData时会修改此表字段。

该表为%Dictionary.ClassDefinition子表。

索引

取值索引 - ^oddDEF({%Dictionary.ClassDefinition.Name},"x",{%Dictionary.XDataDefinition.Name})

  • %Dictionary.ClassDefinition.Name - 类名
  • %Dictionary.XDataDefinition.Name - XData

示例

添加User.Human类如下Xdata

XData XmlData [ MimeType = application/xml ]
{
<person><name>yx</name><age>18</age>
</person>
}

查询SQL表:

在这里插入图片描述

Global示例:

USER>zw ^oddDEF("User.Human","x")
^oddDEF("User.Human","x","XmlData")=""
^oddDEF("User.Human","x","XmlData",11)=16
^oddDEF("User.Human","x","XmlData",21)=4
^oddDEF("User.Human","x","XmlData",21,1)="<person>"
^oddDEF("User.Human","x","XmlData",21,2)=" <name>yx</name>"
^oddDEF("User.Human","x","XmlData",21,3)=" <age>18</age>"
^oddDEF("User.Human","x","XmlData",21,4)="</person>"
^oddDEF("User.Human","x","XmlData",24)="application/xml"

表结构

字检类型描述位置检索码
ID1
parent%Dictionary.ClassDefinition指向包含父对象的指针
Name%Dictionary.Identifier
Data%Stream.TmpCharacter数据流。0 s {Data}=""
Deprecated%Boolean如果此 XDATA 已弃用,则为 True17 s {Deprecated}=$s($d(^oddDEF({L1},"x",{L3},17))#2:^(17),1:0)
Description%CacheString指定 XData 的描述。4 s {Description}=$s($d(^oddDEF({L1},"x",{L3},4))#2:^(4),1:"")
Internal%Boolean如果为真,则不在文档中显示此项。14 s {Internal}=$s($d(^oddDEF({L1},"x",{L3},14))#2:^(14),1:0)
MimeType%CacheStringXData 块的 Mime 类型。24 s {MimeType}=$s($d(^oddDEF({L1},"x",{L3},24))#2:^(24),1:"text/xml")
SchemaSpec%CacheString数据的模式定义。22 s {SchemaSpec}=$s($d(^oddDEF({L1},"x",{L3},22))#2:^(22),1:"")
SequenceNumber%Integer序号11 s {SequenceNumber}=$s($d(^oddDEF({L1},"x",{L3},11))#2:^(11),1:0)
XMLNamespace%CacheStringXDATA 的默认 XML 命名空间。23 s {XMLNamespace}=$s($d(^oddDEF({L1},"x",{L3},23))#2:^(23),1:"")

^oddDEF一览

表名索引关键字索引
%Dictionary.ClassDefinition^oddDEF({%Dictionary.ClassDefinition.Name})
%Dictionary.ForeignKeyDefinitionf^oddDEF({%Dictionary.ClassDefinition.Name},"f",{%Dictionary.ForeignKeyDefinition.Name})
%Dictionary.IndexDefinitioni^oddDEF({%Dictionary.ClassDefinition.Name},"i",{%Dictionary.IndexDefinition.Name})
%Dictionary.MethodDefinitionm^oddDEF({%Dictionary.ClassDefinition.Name},"m",{%Dictionary.MethodDefinition.Name})
%Dictionary.ParameterDefinitionp^oddDEF({%Dictionary.ClassDefinition.Name},"p",{%Dictionary.ParameterDefinition.Name})
%Dictionary.ProjectionDefinitionj^oddDEF({%Dictionary.ClassDefinition.Name},"j",{%Dictionary.ProjectionDefinition.Name})
%Dictionary.PropertyDefinitiona^oddDEF({%Dictionary.ClassDefinition.Name},"a",{%Dictionary.PropertyDefinition.Name})
%Dictionary.PropertyUDLTextDefinitiona,u^oddDEF({%Dictionary.ClassDefinition.Name},"a",{%Dictionary.ForeignKeyDefinition.Name},"u",{%Dictionary.PropertyUDLTextDefinition.Name})
%Dictionary.QueryDefinitionq^oddDEF({%Dictionary.ClassDefinition.Name},"q",{%Dictionary.QueryDefinition.Name}
%Dictionary.StorageDefinitions^oddDEF({%Dictionary.ClassDefinition.Name},"s",{%Dictionary.StorageDefinition.Name})
%Dictionary.StorageDataDefinitions,D^oddDEF({%Dictionary.ClassDefinition.Name},"s",{%Dictionary.StorageDefinition.Name},"D",{%Dictionary.StorageDataDefinition.Name})
%Dictionary.StorageDataValueDefinitions,D,V^oddDEF({%Dictionary.ClassDefinition.Name},"s",{%Dictionary.StorageDefinition.Name},"D",{%Dictionary.StorageDataDefinition.Name},"V",{%Dictionary.StorageDataValueDefinition.Name})
%Dictionary.StorageIndexDefinitions,X^oddDEF({%Dictionary.ClassDefinition.Name},"s",{%Dictionary.StorageDefinition.Name},"X",{%Dictionary.StorageIndexDefinition.Name})
%Dictionary.StoragePropertyDefinitions,M^oddDEF({%Dictionary.ClassDefinition.Name},"s",{%Dictionary.StorageDefinition.Name},"M",{%Dictionary.StoragePropertyDefinition.Name})
%Dictionary.StorageSQLMapDefinitions,S^oddDEF({%Dictionary.ClassDefinition.Name},"s",{%Dictionary.StorageDefinition.Name},"S",{%Dictionary.StorageSQLMapDefinition.Name})
%Dictionary.StorageSQLMapDataDefinitions,S,T- ^oddDEF({%Dictionary.ClassDefinition.Name},"s",{%Dictionary.StorageDefinition.Name},"S",{%Dictionary.StorageSQLMapDefinition.Name},"T",{%Dictionary.StorageSQLMapDataDefinition.Name})
%Dictionary.StorageSQLMapRowIdSpecDefinitions,S,R^oddDEF({%Dictionary.ClassDefinition.Name},"s",{%Dictionary.StorageDefinition.Name},"S",{%Dictionary.StorageSQLMapDefinition.Name},"R",{%Dictionary.StorageSQLMapRowIdSpecDefinition.Name})
%Dictionary.StorageSQLMapSubDefinitions,S,B^oddDEF({%Dictionary.ClassDefinition.Name},"s",{%Dictionary.StorageDefinition.Name},"S",{%Dictionary.StorageSQLMapDefinition.Name},"B",{%Dictionary.StorageSQLMapSubDefinition.Name})
%Dictionary.StorageSQLMapSubAccessvarDefinitions,S,B,A^oddDEF({%Dictionary.ClassDefinition.Name},"s",{%Dictionary.StorageDefinition.Name},"S",{%Dictionary.StorageSQLMapDefinition.Name},"B",{%Dictionary.StorageSQLMapSubDefinition.Name},"A",{%Dictionary.StorageSQLMapSubAccessvarDefinition.Name})
%Dictionary.StorageSQLMapSubInvalidconditionDefinitions,S,B,N^oddDEF({%Dictionary.ClassDefinition.Name},"s",{%Dictionary.StorageDefinition.Name},"S",{%Dictionary.StorageSQLMapDefinition.Name},"B",{%Dictionary.StorageSQLMapSubDefinition.Name},"N","{%Dictionary.StorageSQLMapSubInvalidconditionDefinition.Name}")
%Dictionary.TriggerDefinitiont^oddDEF({%Dictionary.ClassDefinition.Name},"t",{%Dictionary.TriggerDefinition.Name})
%Dictionary.UDLTextDefinitionu^oddDEF({%Dictionary.ClassDefinition.Name},"u",{%Dictionary.UDLTextDefinition.Name})
%Dictionary.XDataDefinitionx^oddDEF({%Dictionary.ClassDefinition.Name},"x",{%Dictionary.XDataDefinition.Name})

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.rhkb.cn/news/77920.html

如若内容造成侵权/违法违规/事实不符,请联系长河编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

前端js--旋转幻灯片

效果图 代码 <!DOCTYPE html> <html lang"en"><head><meta charset"UTF-8" /><meta name"viewport" content"widthdevice-width, initial-scale1.0" /><link rel"stylesheet" href"…

基于RASC的keil电子时钟制作(瑞萨RA)(8)----按键修改数码管时间

基于RASC的keil电子时钟制作8_按键修改数码管时间 概述硬件准备视频教程配置按键管脚按键设置主程序timer_smg.ctimer_smg.h 概述 前几节课程已经单独驱动了数码管和RTC&#xff0c;同时已经整合成了能够用数码管显示具体时间&#xff0c;但是无法修改时间&#xff0c;这节就来…

【C# 基础精讲】为什么选择C# ?

C#&#xff08;C Sharp&#xff09;是由微软开发的一种通用、面向对象的编程语言。它最初于2000年发布&#xff0c;自那时以来逐渐成为开发者的首选之一。C#的设计目标是提供一种简单、现代、可靠且安全的编程语言&#xff0c;使开发者能够轻松构建各种类型的应用程序。 为什么…

Android Studio 的Gradle版本修改

使用Android Studio构建项目时&#xff0c;需要配置Gradle&#xff0c;与Gradle插件。 Gradle是一个构建工具&#xff0c;用于管理和自动化Android项目的构建过程。它使用Groovy或Kotlin作为脚本语言&#xff0c;并提供了强大的配置能力来定义项目的依赖关系、编译选项、打包方…

Python-flask项目入门

一、flask对于简单搭建一个基于python语言-的web项目非常简单 二、项目目录 示例代码 git路径 三、代码介绍 1、安装pip依赖 通过pip插入数据驱动依赖pip install flask-sqlalchemy 和 pip install pymysql 2.配置数据源 config.py DIALECT mysql DRIVER pymysql USERN…

抖音seo矩阵系统源代码开发搭建技术分享

抖音SEO矩阵系统是一个较为复杂的系统&#xff0c;其开发和搭建需要掌握一定的技术。以下是一些技术分享&#xff1a; 技术分享 抖音SEO矩阵系统的源代码可以使用JAVA、Python、PHP等多种语言进行开发。其中&#xff0c;JAVA语言的应用较为广泛&#xff0c;因为JAVA语言有良好…

Stephen Wolfram:ChatGPT 的训练

The Training of ChatGPT ChatGPT 的训练 OK, so we’ve now given an outline of how ChatGPT works once it’s set up. But how did it get set up? How were all those 175 billion weights in its neural net determined? Basically they’re the result of very large…

《UNIX 传奇:历史与回忆》读后感

《UNIX 传奇&#xff1a;历史与回忆》 是 bwk&#xff08;Brian W. Kernighan&#xff09;2019 年的新作&#xff0c;回忆了 UNIX 在大半个世纪的风雨历程&#xff0c;是一本引人入胜的书籍。通过对 UNIX 操作系统的历史和发展进行详细的叙述和回顾&#xff0c;让我对这个操作系…

SpringBoot整合redis集群实现读写分离(哨兵模式)

1 首先要在Linux虚拟机上安装redis # 安装包存放目录 cd /usr/local/redis # 下载最新稳定版 wget https://download.redis.io/releases/redis-6.2.6.tar.gz # 解压 tar -zxvf redis-6.2.6.tar.gz # 进入解压后的目录 cd /usr/local/redis/redis-6.2.6/ # 编译 make # 执行 &q…

iOS——Block循环引用

Capturing ‘self’ strongly in this block is likely to lead to a retain cycle 典型的循环引用 self持有了blockblock持有了self(self.name) 这样就形成了self -> block -> self的循环引用 解决办法 强弱共舞 使用 中介者模式 __weak typeof(self) weakSelf sel…

以产品经理的角度去讲解原型图---会议OA项目

目录 一.前言 二.原型图 2.1 原型图是什么 3.1 原型图的作用 三.演示讲解 3.1 项目背景 3.2 项目介绍 3.2.1 会议管理&#xff08;会议的发起&#xff0c;通知&#xff09; 3.2.2 投票管理&#xff08;会议的流程重大决策记录&#xff09; 3.2.3 会议室管理 3.2.4 系统管…

谷粒商城第九天-对商品服务中所涉及到的表的思考

目录 一、总述 二、spu、sku、规格参数、销售属性之间的关系理解 三、相关表设计 1. 属性表 2. 基本属性分组表 3. 分组-基本属性关系表 ​4. spu基本属性值表 5. spu详情信息表 6. spu评论表 7. 商品sku值表 8. sku详情表 9. sku图片表 10. 分类表 11. 品牌表 …

助力工业物联网,工业大数据之服务域:安装主题分析实现【二十七】

文章目录 09&#xff1a;服务域&#xff1a;安装主题分析实现10&#xff1a;服务域&#xff1a;维修主题分析实现 09&#xff1a;服务域&#xff1a;安装主题分析实现 目标&#xff1a;掌握安装主题的需求分析及实现 路径 step1&#xff1a;需求step2&#xff1a;分析step3&am…

深入解析人脸识别技术:原理、应用与未来发展

人脸识别技术&#xff1a;从原理到应用 引言人脸识别技术的重要性和应用领域 人脸识别的基本原理图像采集与预处理特征提取与表征数据匹配与比对 传统人脸识别方法主成分分析&#xff08;PCA&#xff09;线性判别分析&#xff08;LDA&#xff09;小波变换在人脸识别中的应用 深…

Grafana集成prometheus(3.Grafana添加promethus数据)

添加数据库 选择Connections -> Datasources&#xff0c;点击Add New data source&#xff0c;填写Promitheus Server Url,点击 save & test完成配置 添加DashBorad 选择prometheus数据库选择code填入对应的查询公式(监控公式参考Prometheus监控公式)修改面板名称Ti…

Centos虚拟机忘记密码-修改密码

1.重启系统 2.在这个选择界面&#xff0c;按e建 3.找到如下位置&#xff0c;插入init/bin/sh 4.填写完成后按Ctrlx引导启动 5.输入mount -o remount, rw / (注意空格) 6.重置密码 出现以下为重置成功 7.执行touch /.autorelabel 8.退出exec /sbin/init 9.输入你的新密…

flutter开发实战-video_player视频播放功能及视频缓存

flutter开发实战-video_player视频播放功能及视频缓存 最近开发过程中video_player播放视频&#xff0c; 一、引入video_player 在pubspec.yaml引入video_player video_player: ^2.7.0在iOS上&#xff0c;video_player使用的是AVPlayer进行播放。 在Android上&#xff0c;…

代码分析:循环创建N个子进程——为什么最后一个属于父进程?

黑马C/C 2018年32期代码分析 //循环创建n个子进程 #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/types.h> #include <unistd.h>int main() {int i 0;for(i0; i<3; i){//创建子进程pid_t pid fork();if(pid&…

EMD经验模态分解介绍

EMD概述 其实一种信号分解方法&#xff0c;是一种自适应的数据处理方法&#xff0c;适合非线性和非平稳时间序列的分析和研究&#xff0c;其本质是对数据序列或信号的平稳化处理。 将上面6个信号叠加如下&#xff1a; 就是6个简单信号叠加&#xff0c;形成一个复杂信号。 核心…

关于 Ubuntu 长按 shift 无效, 按 Esc 直接进入 grub 改密码的解决方法

本次长按shift没有反应&#xff0c;直接进入了系统界面&#xff0c;所以改用长按Esc键&#xff0c;步骤如下&#xff1a; 1. 长按esc&#xff0c;进入grub>提示 2.输入grub>normal &#xff0c;回车 3.上一步回车后&#xff0c;继续敲击Esc &#xff0c;出现grub界面 …