首页 / base / oaVoidPointerAppDef

oaVoidPointerAppDef

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

概览

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

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

详细说明

template class oaVoidPointerAppDef< T > The oaVoidPointerAppDef class implements an application-specific extension to a particular type of data in a database。 Once created, a pointer field is added to each object of the specified dataType, with the specified default value。 Applications can use the new data field for whatever purpose is necessary。 This type of extension is useful because it allows externally defined memory to be stored with each object being extended。 Note: Because the data is externally defined, this extension type cannot be marked persistent。 For additional information on defining and using AppDefs, see oaAppDef and Extending the Database in the Programmer's Guide。

方法总览

状态 Python 调用
obj.set(object, value)
_base.oaVoidPointerAppDef.get(object)
_base.oaVoidPointerAppDef.get(name)
_base.oaVoidPointerAppDef.get(name, objDef)
_base.oaVoidPointerAppDef.find(name)
_base.oaVoidPointerAppDef.find(name, objDef)

方法说明

obj.set(object, value)

绑定状态: 已绑定

Python 调用: obj.set(object, value)

Python 示例

from oapy._oa import _base

# assume obj is a oaVoidPointerAppDef
obj.set(object, value)

_base.oaVoidPointerAppDef.get(object)

绑定状态: 已绑定

Python 调用: _base.oaVoidPointerAppDef.get(object)

Python 示例

from oapy._oa import _base

_base.oaVoidPointerAppDef.get(object)

_base.oaVoidPointerAppDef.get(name)

绑定状态: 已绑定

Python 调用: _base.oaVoidPointerAppDef.get(name)

Python 示例

from oapy._oa import _base

_base.oaVoidPointerAppDef.get(name)

_base.oaVoidPointerAppDef.get(name, objDef)

绑定状态: 已绑定

Python 调用: _base.oaVoidPointerAppDef.get(name, objDef)

Python 示例

from oapy._oa import _base

_base.oaVoidPointerAppDef.get(name, objDef)

_base.oaVoidPointerAppDef.find(name)

绑定状态: 已绑定

Python 调用: _base.oaVoidPointerAppDef.find(name)

Python 示例

from oapy._oa import _base

_base.oaVoidPointerAppDef.find(name)

_base.oaVoidPointerAppDef.find(name, objDef)

绑定状态: 已绑定

Python 调用: _base.oaVoidPointerAppDef.find(name, objDef)

Python 示例

from oapy._oa import _base

_base.oaVoidPointerAppDef.find(name, objDef)