4 Database Interface数据库接口
The classes fall into the following groups:
这个类分成以下几组:
Data model definition classes
Basic database access, query and modification.
Filters and iterators
Dabacon table access
DB, MDB, Project access
Events and pseudo attribute plugins
数据模型定义类
基本数据库存取,查询和修改
过滤和循环
Dabacon表存取
数据库,数据库组,项目存取
事件和隐含属性
4.1 Data Model Definition Classes
The classes are:
DbElementType
DbAttribute
DbElementTypeInstance
DbAttributeInstance
这个类是:
数据库元素类型
数据库属性
数据库元素类型实例
数据库属性实例
4.1.1 DbElementType 数据库元素类型
Overview
There is a single class for all element types.
一个类包含所有元素类型。
The purpose of the class is to:
Instances of the class identify the element type. i.e. methods on other classes take a DbElementType as an argument rather than a string to denote an Element type. The DbElementType has ‘value’ semantics for comparison purposes. i.e. comparing of two DbElementTypes will always return true if they refer to the same type, even if they are different objects.
Access the metadata associated with element types.
External to PDMS/Marine, the hash value can be used to uniquely identify an Element type. The hash value is a 32 bit integer.
这个类的用途是:
这个类的实例确定元素类型,比如在其他类的方法中调用一个DbElementType作为参数而不是一个字符串来表示一个元素类型。这个DbElementType可以用于比较,例如如果两个不同的对象如果有相同的类型,在比较的时候将返回True。
Constructors 构造方法
In C# a DbElementType object may be obtained in one of three ways:
在 C# 中DbElementType对象有三种获取方式:
Use the globally de