首页 / dm / oaViewType

oaViewType

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

概览

oaViewTypeoapy 中可用,可通过 _dm 模块访问。

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

详细说明

This session object represents the type of a view。 See oaReservedViewType for predefined OpenAccess viewTypes。 The oaViewType class can be observed by deriving from oaObserver

方法总览

状态 Python 调用
obj.getName(name)
_dm.oaViewType.create(name)
_dm.oaViewType.find(name)
_dm.oaViewType.get(type)
_dm.oaViewType.getViewTypes()

方法说明

obj.getName(name)

绑定状态: 已绑定

Python 调用: obj.getName(name)

This function returns the string name of this viewType。

参数

  • name: returned name of this viewType。

Python 示例

from oapy._oa import _dm

# assume obj is a oaViewType
obj.getName(name)

_dm.oaViewType.create(name)

绑定状态: 已绑定

Python 调用: _dm.oaViewType.create(name)

This function creates a viewType with the specified name。 An exception is thrown if the viewType already exists。

参数

  • name: the name of the viewType to create。

异常

  • oacViewTypeExists

Python 示例

from oapy._oa import _dm

_dm.oaViewType.create(name)

_dm.oaViewType.find(name)

绑定状态: 已绑定

Python 调用: _dm.oaViewType.find(name)

This function attempts to find the viewType with the specified name。 If not found, NULL is returned。

参数

  • name: the name of the viewType to find。

Python 示例

from oapy._oa import _dm

_dm.oaViewType.find(name)

_dm.oaViewType.get(type)

绑定状态: 已绑定

Python 调用: _dm.oaViewType.get(type)

This function gets a pointer to a viewType that corresponds to the specified type oaReservedViewType 。

参数

  • type: an oaReservedViewType wrapper object。

Python 示例

from oapy._oa import _dm

_dm.oaViewType.get(type)

_dm.oaViewType.getViewTypes()

绑定状态: 已绑定

Python 调用: _dm.oaViewType.getViewTypes()

This function returns a collection of viewTypes in this session。

Python 示例

from oapy._oa import _dm

_dm.oaViewType.getViewTypes()