首页 / base / oaInterPointerAppDef

oaInterPointerAppDef

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

概览

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

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

详细说明

template class oaInterPointerAppDef< T > The oaInterPointerAppDef class implements an application-specific extension to a particular type of data in a database。 Once created, a database object pointer field is added to each object of the specified dataType。 The default value for the object pointer is NULL。 Applications can use the new field for whatever purpose is necessary。 Note: The pointer must be NULL or must point to a persistent object in the same database。 The pointer must not point at objects in another database, objects not in a database, the database itself ( oaDesign or oaTech ), or utility objects。 This extension is similar to the oaIntraPointerAppDef , except that oaInterPointerAppDef supports pointers to other types of objects within the same database。 If only pointers to objects of the same type are created, use oaIntraPointerAppDef , since it requires slightly less memory and is slightly faster。 For additional information on defining and using AppDefs, see oaAppDef and Extending the Database in the Programmer's Guide。

方法总览

状态 Python 调用
obj.set(object, otherObject)
_base.oaInterPointerAppDef.get(object)
_base.oaInterPointerAppDef.get(name, persist=true)
_base.oaInterPointerAppDef.get(name, objDef, persist=true)
_base.oaInterPointerAppDef.find(name)
_base.oaInterPointerAppDef.find(name, objDef)

方法说明

obj.set(object, otherObject)

绑定状态: 已绑定

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

Python 示例

from oapy._oa import _base

# assume obj is a oaInterPointerAppDef
obj.set(object, otherObject)

_base.oaInterPointerAppDef.get(object)

绑定状态: 已绑定

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

Python 示例

from oapy._oa import _base

_base.oaInterPointerAppDef.get(object)

_base.oaInterPointerAppDef.get(name, persist=true)

绑定状态: 已绑定

Python 调用: _base.oaInterPointerAppDef.get(name, persist=true)

Python 示例

from oapy._oa import _base

_base.oaInterPointerAppDef.get(name, persist=true)

_base.oaInterPointerAppDef.get(name, objDef, persist=true)

绑定状态: 已绑定

Python 调用: _base.oaInterPointerAppDef.get(name, objDef, persist=true)

Python 示例

from oapy._oa import _base

_base.oaInterPointerAppDef.get(name, objDef, persist=true)

_base.oaInterPointerAppDef.find(name)

绑定状态: 已绑定

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

Python 示例

from oapy._oa import _base

_base.oaInterPointerAppDef.find(name)

_base.oaInterPointerAppDef.find(name, objDef)

绑定状态: 已绑定

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

Python 示例

from oapy._oa import _base

_base.oaInterPointerAppDef.find(name, objDef)