首页 / base / oaAppObject

oaAppObject

模块: oapy._oa._base 导入: from oapy._oa import _base

概览

oaAppObjectoapy 中可用,可通过 _base 模块访问。

本页汇总 oaAppObject 当前在 oapy 中可用的 Python 接口。

详细说明

The oaAppObject class implements an extension object。 You can create extension objects for object extensions that are registered in a database。 Functions for creating, deleting, and querying extension object attributes are in this class。 The oaAppObject class can be observed by deriving from oaObserver

方法总览

状态 Python 调用
obj.destroy()
obj.getAppObjectDef()
_base.oaAppObject.create(database, def)

方法说明

obj.destroy()

绑定状态: 已绑定

Python 调用: obj.destroy()

This function destroys this extension object, removing it from the database。

Python 示例

from oapy._oa import _base

# assume obj is a oaAppObject
obj.destroy()

obj.getAppObjectDef()

绑定状态: 已绑定

Python 调用: obj.getAppObjectDef()

The function returns the oaAppObjectDef for this object。

Python 示例

from oapy._oa import _base

# assume obj is a oaAppObject
obj.getAppObjectDef()

_base.oaAppObject.create(database, def)

绑定状态: 已绑定

Python 调用: _base.oaAppObject.create(database, def)

This function creates a new extension object for the ext object extension in the specified database。 For more information, see Extending the Database in the Programmers Guide。

异常

  • oacInvalidAppObjectDef
  • oacInvalidDatabase

Python 示例

from oapy._oa import _base

_base.oaAppObject.create(database, def)