首页 / base / oaAppObjectDef

oaAppObjectDef

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

概览

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

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

详细说明

The oaAppObjectDef class registers an object extension with a specified extension name in the specified database。

方法总览

状态 Python 调用
obj.getName(name)
obj.isUsedIn(database)
obj.remove(database)
obj.getTimeStamp(database)
_base.oaAppObjectDef.get(nameIn)
_base.oaAppObjectDef.find(nameIn)

方法说明

obj.getName(name)

绑定状态: 已绑定

Python 调用: obj.getName(name)

This function fills out the name of this object extension。

参数

  • name: The string to fill out with this extensions name。

Python 示例

from oapy._oa import _base

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

obj.isUsedIn(database)

绑定状态: 已绑定

Python 调用: obj.isUsedIn(database)

This function returns true if the specified extension is used in the specified database。

参数

  • database: The database to search for this extension。

异常

  • oacInvalidDatabase

Python 示例

from oapy._oa import _base

# assume obj is a oaAppObjectDef
obj.isUsedIn(database)

obj.remove(database)

绑定状态: 已绑定

Python 调用: obj.remove(database)

This function destroys all oaAppObjects for this oaAppObjectDef in the specified database。

异常

  • oacInvalidDatabase

Python 示例

from oapy._oa import _base

# assume obj is a oaAppObjectDef
obj.remove(database)

obj.getTimeStamp(database)

绑定状态: 已绑定

Python 调用: obj.getTimeStamp(database)

This function returns the timestamp for the appObjectTbl in the specified database。

参数

  • database: The database to search for this extension。

异常

  • oacInvalidDatabase

Python 示例

from oapy._oa import _base

# assume obj is a oaAppObjectDef
obj.getTimeStamp(database)

_base.oaAppObjectDef.get(nameIn)

绑定状态: 已绑定

Python 调用: _base.oaAppObjectDef.get(nameIn)

This function returns the oaAppObjectDef with the specified name, creating it if it does not yet exist。

参数

  • nameIn: The name of the oaAppObjectDef to create。

Python 示例

from oapy._oa import _base

_base.oaAppObjectDef.get(nameIn)

_base.oaAppObjectDef.find(nameIn)

绑定状态: 已绑定

Python 调用: _base.oaAppObjectDef.find(nameIn)

This function returns the oaAppObjectDef with the specified name if it exists。

参数

  • nameIn: The name of the oaAppObjectDef to search for。

Python 示例

from oapy._oa import _base

_base.oaAppObjectDef.find(nameIn)