oaCMObjectRef
模块: oapy._oa._cms
导入: from oapy._oa import _cms
概览
oaCMObjectRef 在 oapy 中可用,可通过 _cms 模块访问。
本页汇总 oaCMObjectRef 当前在 oapy 中可用的 Python 接口。
详细说明
The oaCMObjectRef class is an abstract class that adds lifecycle management to schema representation (sr) object references, and is used in the OpenAccess Change Management System (CMS) 。 An oaCMObjectRef is an object reference that is managed by an oaChangeSet 。
方法总览
| 状态 | Python 调用 |
|---|---|
| ✅ | obj.passivate() |
| ✅ | obj.activate() |
| ✅ | obj.getDatabase() |
| ✅ | obj.isAlive() |
| ✅ | obj.isNew() |
| ✅ | obj.getTimeStamp() |
| ✅ | obj.setIsNew(isNew) |
方法说明
obj.passivate()
绑定状态: 已绑定
Python 调用: obj.passivate()
This function sets a boolean flag on the oaCMObjectRef to indicate that the corresponding live object for this reference has been destroyed。 在 oaCMDatabaseRef、oaCMObjectIDRef 和 oaCMObjectStateRef 中重新实现。
Python 示例
from oapy._oa import _cms
# assume obj is a oaCMObjectRef
obj.passivate()
obj.activate()
绑定状态: 已绑定
Python 调用: obj.activate()
This function resets a boolean flag on the oaCMObjectRef to indicate that the corresponding live object for this reference has been recreated (due to an undo operation after the live object was destroyed)。 在 oaCMDatabaseRef、oaCMObjectIDRef 和 oaCMObjectStateRef 中重新实现。
Python 示例
from oapy._oa import _cms
# assume obj is a oaCMObjectRef
obj.activate()
obj.getDatabase()
绑定状态: 已绑定
Python 调用: obj.getDatabase()
This function returns a smart pointer to the database for this oaCMObjectRef。 由 oaCMDatabaseRef、oaCMObjectIDRef 和 oaCMObjectStateRef 实现。
Python 示例
from oapy._oa import _cms
# assume obj is a oaCMObjectRef
obj.getDatabase()
obj.isAlive()
绑定状态: 已绑定
Python 调用: obj.isAlive()
This function returns true if this oaCMObjectRef refers to a live object。
Python 示例
from oapy._oa import _cms
# assume obj is a oaCMObjectRef
obj.isAlive()
obj.isNew()
绑定状态: 已绑定
Python 调用: obj.isNew()
This function returns true if this oaCMObjectRef refers to an object that was created during the course of this change set。
Python 示例
from oapy._oa import _cms
# assume obj is a oaCMObjectRef
obj.isNew()
obj.getTimeStamp()
绑定状态: 已绑定
Python 调用: obj.getTimeStamp()
This function returns the timestamp for the object that was assigned during its construction。
Python 示例
from oapy._oa import _cms
# assume obj is a oaCMObjectRef
obj.getTimeStamp()
obj.setIsNew(isNew)
绑定状态: 已绑定
Python 调用: obj.setIsNew(isNew)
This function sets the oaBoolean flag that indicates whether or not the object associated with this reference was created during the course of the containing change set。
参数
isNew: Set to true or false。
Python 示例
from oapy._oa import _cms
# assume obj is a oaCMObjectRef
obj.setIsNew(isNew)