首页 / base / oaIntAppDef

oaIntAppDef

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

概览

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

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

详细说明

template class oaIntAppDef< T > The oaIntAppDef class implements an application-specific extension for a particular type of data in a database。 Once created, an integer field is added to each object of the specified dataType。 The default value for this extension is INT_MAX。 Applications can use the new field for whatever purpose is necessary。 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.oaIntAppDef.get(object)
obj.getDefault()
_base.oaIntAppDef.get(name, defValue=0, persist=true)
_base.oaIntAppDef.get(name, objDef, defValue=0, persist=true)
_base.oaIntAppDef.find(name)
_base.oaIntAppDef.find(name, objDef)

方法说明

obj.set(object, value)

绑定状态: 已绑定

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

Python 示例

from oapy._oa import _base

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

_base.oaIntAppDef.get(object)

绑定状态: 已绑定

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

Python 示例

from oapy._oa import _base

_base.oaIntAppDef.get(object)

obj.getDefault()

绑定状态: 已绑定

Python 调用: obj.getDefault()

Python 示例

from oapy._oa import _base

# assume obj is a oaIntAppDef
obj.getDefault()

_base.oaIntAppDef.get(name, defValue=0, persist=true)

绑定状态: 已绑定

Python 调用: _base.oaIntAppDef.get(name, defValue=0, persist=true)

Python 示例

from oapy._oa import _base

_base.oaIntAppDef.get(name, defValue=0, persist=true)

_base.oaIntAppDef.get(name, objDef, defValue=0, persist=true)

绑定状态: 已绑定

Python 调用: _base.oaIntAppDef.get(name, objDef, defValue=0, persist=true)

Python 示例

from oapy._oa import _base

_base.oaIntAppDef.get(name, objDef, defValue=0, persist=true)

_base.oaIntAppDef.find(name)

绑定状态: 已绑定

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

Python 示例

from oapy._oa import _base

_base.oaIntAppDef.find(name)

_base.oaIntAppDef.find(name, objDef)

绑定状态: 已绑定

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

Python 示例

from oapy._oa import _base

_base.oaIntAppDef.find(name, objDef)