oaChangeRec
模块: oapy._oa._cms
导入: from oapy._oa import _cms
概览
oaChangeRec 在 oapy 中可用,可通过 _cms 模块访问。
本页汇总 oaChangeRec 当前在 oapy 中可用的 Python 接口。
详细说明
A change record represents a change or an event in the database。 A change record includes information about the type of the change, the subject of the change, and the value of the change。 The oaChangeRec class is the base class。 Derived classes provide the ability to create change records for: Simple leaf-level changes such as a changed attribute value。 More complex changes with side effects, such as the destruction of a block net。 These changes are referred to as hierarchical changes。 Marker type change records: Design checkpoints used for undo and redo operations。 Markers used to indicate the point at which a set of changes in a change set was last exported。 变更记录由 OpenAccess 变更管理系统(CMS)使用。
构造函数
_cms.oaChangeRec(changeSetIn)
obj = _cms.oaChangeRec(changeSetIn)
方法总览
| 状态 | Python 调用 |
|---|---|
| ✅ | obj.accept(visitor, forward=true) |
| ✅ | obj.getTimeStamp() |
| ✅ | obj.getChangeSet() |
| ✅ | obj.getParent() |
| ✅ | obj.setParent(parent) |
| ✅ | obj.isMarkerChangeRec() |
| ✅ | obj.isConvertObjectChangeRec() |
| ✅ | obj.isCreateObjectChangeRec() |
| ✅ | obj.isDestroyObjectChangeRec() |
方法说明
obj.accept(visitor, forward=true)
绑定状态: 已绑定
Python 调用: obj.accept(visitor, forward=true)
This function accepts a change record visitor to allow access to the change record。 It calls the visit function of the specified visitor on this object。 The forward parameter indicates the direction in which the change records are being visited。 The forward parameter might be set to false if the goal of the visit is to roll back changes due to an undo command。 由 oaSetAttributeChangeRec、oaUnsetAttributeChangeRec、oaCreate1to1RelationshipChangeRec、oaCreate1toNRelationshipChangeRec、oaCreate2DTableRelationshipChangeRec、oaDestroy1to1RelationshipChangeRec、oaDestroy1toNRelationshipChangeRec、oaDestroy2DTableRelationshipChangeRec、oaCreateObjectChangeRec、oaDestroyObjectChangeRec、oaConvertObjectChangeRec、oaHierChangeRec、oaMarkerChangeRec、oaExportMarkerChangeRec 和 oaTransientMarkerChangeRec 实现。
参数
visitor: A pointer to the change record visitor to call on this object。forward: Specifies the direction in which change records are being visited。
Python 示例
from oapy._oa import _cms
# assume obj is a oaChangeRec
obj.accept(visitor, forward=true)
obj.getTimeStamp()
绑定状态: 已绑定
Python 调用: obj.getTimeStamp()
This function returns the time stamp of this change record。
Python 示例
from oapy._oa import _cms
# assume obj is a oaChangeRec
obj.getTimeStamp()
obj.getChangeSet()
绑定状态: 已绑定
Python 调用: obj.getChangeSet()
This function returns the change set that contains this change record。
Python 示例
from oapy._oa import _cms
# assume obj is a oaChangeRec
obj.getChangeSet()
obj.getParent()
绑定状态: 已绑定
Python 调用: obj.getParent()
This function returns the parent change record of this change record。
Python 示例
from oapy._oa import _cms
# assume obj is a oaChangeRec
obj.getParent()
obj.setParent(parent)
绑定状态: 已绑定
Python 调用: obj.setParent(parent)
This function sets the parent change record for this change record。
参数
parent: The parent change record for this set of hierarchical changes。
Python 示例
from oapy._oa import _cms
# assume obj is a oaChangeRec
obj.setParent(parent)
obj.isMarkerChangeRec()
绑定状态: 已绑定
Python 调用: obj.isMarkerChangeRec()
This function returns a boolean indicating whether or not this change record represents a marker change record。 Marker change records can represent: Design checkpoints used for undo and redo operations。 Markers used to indicate the point at which a set of changes in a change set was last exported。 在 oaMarkerChangeRec 中重新实现。
Python 示例
from oapy._oa import _cms
# assume obj is a oaChangeRec
obj.isMarkerChangeRec()
obj.isConvertObjectChangeRec()
绑定状态: 已绑定
Python 调用: obj.isConvertObjectChangeRec()
This function returns true if this is an object type-conversion change record。 在 oaConvertObjectChangeRec 中重新实现。
Python 示例
from oapy._oa import _cms
# assume obj is a oaChangeRec
obj.isConvertObjectChangeRec()
obj.isCreateObjectChangeRec()
绑定状态: 已绑定
Python 调用: obj.isCreateObjectChangeRec()
This function returns true if this change record represents the creation of an object; false otherwise。 在 oaCreateObjectChangeRec 中重新实现。
Python 示例
from oapy._oa import _cms
# assume obj is a oaChangeRec
obj.isCreateObjectChangeRec()
obj.isDestroyObjectChangeRec()
绑定状态: 已绑定
Python 调用: obj.isDestroyObjectChangeRec()
This function returns true if this change record represents the destruction of an object; false otherwise。 在 oaDestroyObjectChangeRec 中重新实现。
Python 示例
from oapy._oa import _cms
# assume obj is a oaChangeRec
obj.isDestroyObjectChangeRec()