首页 / cms / oaChangeSet

oaChangeSet

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

概览

oaChangeSetoapy 中可用,可通过 _cms 模块访问。

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

详细说明

A change set manages individual change records, which represent changes made to a design。 The oaChangeSet and oaChangeRec classes are involved in the communication between tracking and export plug-ins in the OpenAccess change management system (CMS) 。 Change tracking is global across all open designs in the session。 The change set preserves the order of creation of change records, which is reflected at the time of traversal。 Change sets provide sequencing of change records, which is needed when an export plug-in emits change records to an external representation。 Database-level changes such as open, purge, and undo/redo are reflected in the change set。 Users of a change set can add change records to the change set with the addChangeRec function。 References to public objects are stored in change records。 These references cannot be stored directly in the form of database-specific handles (like public object pointers) because they might become invalid if the object is destroyed during the span of the change set。 OpenAccess CMS provides an additional layer of abstraction that preserves references to live objects as well as objects that have been destroyed。 This functionality is provided by the oaCMObjectRef class and its derived classes。 A change set manages all the oaCMObjectRefs used in change records。 The change set also manages the following objects used by those oaCMObjectRefs: oaCMStringEntry objects, which handle strings for uniquely named OpenAccess objects。 oaCMObjectStateEntry objects, which handle the states for unnamed objects such as routes that are identied by a unique combination of attributes。 A tracking plug-in creates an oaChangeSet instantiation when a change set is opened by the application (through the oaChangeMgr::beginTracking call)。 The oaChangeMgr owns the change set through its lifetime after it has been created and passed to oaChangeMgr by the plug-in or the application。 Building a change set includes setting the header information, such as name and attributes, and aggregating change records into the change set。 The client can destroy a change set by finding the change set by name and explicitly deleting the returned pointer。 The process of deleting a change set removes it from the oaChangeMgr 。 The client can also delete a change set directly, which also removes it from the oaChangeMgr 。 The oaChangeSet class supports a visitor pattern interface to traverse the contents。 Several oaChangeSet::accept functions provide access for change set visitors。 These accept functions call the visit function of the specified visitor on the object。 This interface provides access to the oaChangeSet object itself and some of its components。 A plug-in implementation can extend oaChangeSet by creating a class derived from it。 A derived oaChangeSet class must implement a derived interface for the visitor pattern, which visits the derived class and accesses any component specific to the derived class。

构造函数

_cms.oaChangeSet(name)

obj = _cms.oaChangeSet(name)

方法总览

状态 Python 调用
obj.getCurrentChangeRec(database)
obj.beginChangeRec(database)
obj.endChangeRec(database)
obj.addChangeRec(lcr)
obj.rollBackChangeRecs(dbRef, target=NULL, inclusive=false)
obj.removeChangeRec(dbRef, rec)
obj.passivateRefs(dbRef)
obj.allocSetAttributeChangeRec(value)
obj.allocUnsetAttributeChangeRec(owner, attr)
obj.allocCreate1to1RelationshipChangeRec(value)
obj.allocCreate1toNRelationshipChangeRec(value)
obj.allocDestroy1to1RelationshipChangeRec(value)
obj.allocDestroy1toNRelationshipChangeRec(value)
obj.allocCreateObjectChangeRec(object, state)
obj.allocDestroyObjectChangeRec(object)
obj.allocConvertObjectChangeRec(object, newObject)
obj.allocHierChangeRec()
obj.findLastMarkerChangeRec(typeIn, dbRef)
obj.findLastConvertObjectChangeRec(hcr)
obj.allocExportMarkerChangeRec(typeIn, dbRef)
obj.allocTransientMarkerChangeRec(typeIn, dbRef)
obj.cloneMarkerChangeRec(cr)
obj.cloneMarkerChangeRec(cr)
obj.findDatabaseRef(obj)
obj.allocDatabaseRef(obj, sd, isNew=false)
obj.findObjectIDRef(database, obj)
obj.allocObjectIDRef(database, obj, sd, isNew=false, scope=NULL)
obj.findObjectStateRef(database, obj)
obj.allocObjectStateRef(database, obj, sd, isNew=false, scope=NULL)
obj.findStringEntry(database, string)
obj.allocStringEntry(database, string)
obj.allocObjectStateEntry(database, def, attributes, relationships)
obj.accept(visitor)
obj.accept(visitor, minAge=0)
obj.getName(name)
obj.getTimeStamp()
obj.isActive()
obj.setActive(state)
obj.isExported()
obj.setExported()
obj.beginDatabaseRefs()
obj.endDatabaseRefs()
obj.beginObjectRefs(database)
obj.endObjectRefs(database)
obj.beginObjectStates(database)
obj.endObjectStates(database)
obj.beginStrings(database)
obj.endStrings(database)
obj.allocAttributeChangeRec(value, action, type)
obj.allocRelationshipChangeRec(value, action, type)

方法说明

obj.getCurrentChangeRec(database)

绑定状态: 已绑定

Python 调用: obj.getCurrentChangeRec(database)

This function gets the current hierarchical change record for the specified database。 It returns null if there is no current change record, which means the next change record to be added will be a top-level change record。 实现 oaChangeSetBase。

参数

  • database: A smart pointer to the database reference。

Python 示例

from oapy._oa import _cms

# assume obj is a oaChangeSet
obj.getCurrentChangeRec(database)

obj.beginChangeRec(database)

绑定状态: 已绑定

Python 调用: obj.beginChangeRec(database)

This function begins a new hierarchical change record on the specified database。 It inserts an empty hierarchical change record as a child to the current change record。 If there’s no current change record, then it adds an empty hierarchical change record to the top level。 In either case, the empty hierarchical change record is set as the current change record。 实现 oaChangeSetBase。

参数

  • database: A smart pointer to the database reference。

Python 示例

from oapy._oa import _cms

# assume obj is a oaChangeSet
obj.beginChangeRec(database)

obj.endChangeRec(database)

绑定状态: 已绑定

Python 调用: obj.endChangeRec(database)

This function ends the current hierarchical change record on the specified database。 This function concludes the current change record。 It collapses the current change record to a leaf-level change record if it has only one child, then it resets the current change record pointer to the parent of the current one, or sets it to NULL if it has no parent。 实现 oaChangeSetBase。

参数

  • database: A smart pointer to the database reference。

Python 示例

from oapy._oa import _cms

# assume obj is a oaChangeSet
obj.endChangeRec(database)

obj.addChangeRec(lcr)

绑定状态: 已绑定

Python 调用: obj.addChangeRec(lcr)

This function adds a leaf change record to the change set if there is no top-level hierarchical change record。 实现 oaChangeSetBase。

参数

  • lcr: Pointer to the leaf change record to add to the change set。

Python 示例

from oapy._oa import _cms

# assume obj is a oaChangeSet
obj.addChangeRec(lcr)

obj.rollBackChangeRecs(dbRef, target=NULL, inclusive=false)

绑定状态: 已绑定

Python 调用: obj.rollBackChangeRecs(dbRef, target=NULL, inclusive=false)

This function removes changes records from the change set associated with the specified database reference。 All changes that occurred after the target marker change record are removed。 If inclusive is set to true, the change marker itself is also removed。 实现 oaChangeSetBase。

参数

  • dbRef: The database reference associated with the change set for which to rollback changes。
  • target: The marker change record to delimit the rollback。
  • inclusive: A boolean that specifies whether or not the target marker change record itself is removed as part of the rollback。

Python 示例

from oapy._oa import _cms

# assume obj is a oaChangeSet
obj.rollBackChangeRecs(dbRef, target=NULL, inclusive=false)

obj.removeChangeRec(dbRef, rec)

绑定状态: 已绑定

Python 调用: obj.removeChangeRec(dbRef, rec)

实现 oaChangeSetBase。

Python 示例

from oapy._oa import _cms

# assume obj is a oaChangeSet
obj.removeChangeRec(dbRef, rec)

obj.passivateRefs(dbRef)

绑定状态: 已绑定

Python 调用: obj.passivateRefs(dbRef)

This function passivates the references that describe the change records in the change set。 实现 oaChangeSetBase。

参数

  • dbRef: The database reference for which to passivate references。

Python 示例

from oapy._oa import _cms

# assume obj is a oaChangeSet
obj.passivateRefs(dbRef)

obj.allocSetAttributeChangeRec(value)

绑定状态: 已绑定

Python 调用: obj.allocSetAttributeChangeRec(value)

This function returns a pointer to an allocation record of the SetAttributeChangeRec type。 Applications that define derived change records supply the analogous virtual function to allocate memory for their derived class。 实现 oaChangeSetBase。

参数

  • value: A smart pointer to the srAttribute。

Python 示例

from oapy._oa import _cms

# assume obj is a oaChangeSet
obj.allocSetAttributeChangeRec(value)

obj.allocUnsetAttributeChangeRec(owner, attr)

绑定状态: 已绑定

Python 调用: obj.allocUnsetAttributeChangeRec(owner, attr)

This function returns a pointer to an allocation record of the UnsetAttributeChangeRec type。 Applications that define derived change records supply the analogous virtual function to allocate memory for their derived class。 实现 oaChangeSetBase。

参数

  • owner: A smart pointer to the object reference for the object whose attribute was unset。
  • attr: A pointer to the schema definition for the attribute of an object。

Python 示例

from oapy._oa import _cms

# assume obj is a oaChangeSet
obj.allocUnsetAttributeChangeRec(owner, attr)

obj.allocCreate1to1RelationshipChangeRec(value)

绑定状态: 已绑定

Python 调用: obj.allocCreate1to1RelationshipChangeRec(value)

This function returns a pointer to an allocation record of the Create1to1RelationshipChangeRec type。 Applications that define derived change records supply the analogous virtual function to allocate memory for their derived class。 实现 oaChangeSetBase。

参数

  • value: A smart pointer to the 1-to-1 relationship。

Python 示例

from oapy._oa import _cms

# assume obj is a oaChangeSet
obj.allocCreate1to1RelationshipChangeRec(value)

obj.allocCreate1toNRelationshipChangeRec(value)

绑定状态: 已绑定

Python 调用: obj.allocCreate1toNRelationshipChangeRec(value)

This function returns a pointer to an allocation record of the Create1toNRelationshipChangeRec type。 Applications that define derived change records supply the analogous virtual function to allocate memory for their derived class。 实现 oaChangeSetBase。

参数

  • value: A smart pointer to the 1-to-N relationship。

Python 示例

from oapy._oa import _cms

# assume obj is a oaChangeSet
obj.allocCreate1toNRelationshipChangeRec(value)

obj.allocDestroy1to1RelationshipChangeRec(value)

绑定状态: 已绑定

Python 调用: obj.allocDestroy1to1RelationshipChangeRec(value)

This function returns a pointer to an allocation record of the oaDestroy1to1RelationshipChangeRec type。 Applications that define derived change records supply the analogous virtual function to allocate memory for their derived class。 实现 oaChangeSetBase。

参数

  • value: A smart pointer to the 1-to-1 relationship that was destroyed。

Python 示例

from oapy._oa import _cms

# assume obj is a oaChangeSet
obj.allocDestroy1to1RelationshipChangeRec(value)

obj.allocDestroy1toNRelationshipChangeRec(value)

绑定状态: 已绑定

Python 调用: obj.allocDestroy1toNRelationshipChangeRec(value)

This function returns a pointer to an allocation record of the oaDestroy1toNRelationshipChangeRec type。 Applications that define derived change records supply the analogous virtual function to allocate memory for their derived class。 实现 oaChangeSetBase。

参数

  • value: A smart pointer to the 1-to-N relationship that was destroyed。

Python 示例

from oapy._oa import _cms

# assume obj is a oaChangeSet
obj.allocDestroy1toNRelationshipChangeRec(value)

obj.allocCreateObjectChangeRec(object, state)

绑定状态: 已绑定

Python 调用: obj.allocCreateObjectChangeRec(object, state)

This function returns a pointer to an allocation record of the oaCreateObjectChangeRec type。 Applications that define derived change records supply the analogous virtual function to allocate memory for their derived class。 实现 oaChangeSetBase。

参数

  • object: A smart pointer to an object reference。
  • state: A smart pointer to an oaCMObjectStateEntry , which identifies an object according to a set of unique attributes。

Python 示例

from oapy._oa import _cms

# assume obj is a oaChangeSet
obj.allocCreateObjectChangeRec(object, state)

obj.allocDestroyObjectChangeRec(object)

绑定状态: 已绑定

Python 调用: obj.allocDestroyObjectChangeRec(object)

This function returns a pointer to an allocation record of the oaDestroyObjectChangeRec type。 Applications that define derived change records supply the analogous virtual function to allocate memory for their derived class。 实现 oaChangeSetBase。

参数

  • object: A smart pointer to the object reference for an object that was destroyed。

Python 示例

from oapy._oa import _cms

# assume obj is a oaChangeSet
obj.allocDestroyObjectChangeRec(object)

obj.allocConvertObjectChangeRec(object, newObject)

绑定状态: 已绑定

Python 调用: obj.allocConvertObjectChangeRec(object, newObject)

This function returns a pointer to an allocation record of the oaConvertObjectChangeRec type。 Applications that define derived change records supply the analogous virtual function to allocate memory for their derived class。 实现 oaChangeSetBase。

参数

  • object: A smart pointer to an object reference for the object before type-conversion。
  • newObject: A smart pointer to the new object reference after type-conversion。

Python 示例

from oapy._oa import _cms

# assume obj is a oaChangeSet
obj.allocConvertObjectChangeRec(object, newObject)

obj.allocHierChangeRec()

绑定状态: 已绑定

Python 调用: obj.allocHierChangeRec()

This function returns a pointer to an allocation record of the oaHierChangeRec type。 Applications that define derived change records supply the analogous virtual function to allocate memory for their derived class。 实现 oaChangeSetBase。

Python 示例

from oapy._oa import _cms

# assume obj is a oaChangeSet
obj.allocHierChangeRec()

obj.findLastMarkerChangeRec(typeIn, dbRef)

绑定状态: 已绑定

Python 调用: obj.findLastMarkerChangeRec(typeIn, dbRef)

This function returns the last oaMarkerChangeRec of type typeIn on the list of change records associated with the specified database reference。 实现 oaChangeSetBase。

参数

  • typeIn: Type of the oaMarkerChangeRec 。
  • dbRef: A smart pointer to the database reference。

Python 示例

from oapy._oa import _cms

# assume obj is a oaChangeSet
obj.findLastMarkerChangeRec(typeIn, dbRef)

obj.findLastConvertObjectChangeRec(hcr)

绑定状态: 已绑定

Python 调用: obj.findLastConvertObjectChangeRec(hcr)

This function finds the last oaConvertObjectChangeRec in the list of change records associated with the hcr hierarchical change record。 NULL is returned if one is not found。 实现 oaChangeSetBase。

参数

  • hcr: A pointer to the hierarchical change record。

Python 示例

from oapy._oa import _cms

# assume obj is a oaChangeSet
obj.findLastConvertObjectChangeRec(hcr)

obj.allocExportMarkerChangeRec(typeIn, dbRef)

绑定状态: 已绑定

Python 调用: obj.allocExportMarkerChangeRec(typeIn, dbRef)

This function returns a pointer to an allocation record of the oaMarkerChangeRec type。 Applications that define derived change records supply the analogous virtual function to allocate memory for their derived class。 实现 oaChangeSetBase。

参数

  • typeIn: The type of the change marker。
  • dbRef: A smart pointer to the database reference。

Python 示例

from oapy._oa import _cms

# assume obj is a oaChangeSet
obj.allocExportMarkerChangeRec(typeIn, dbRef)

obj.allocTransientMarkerChangeRec(typeIn, dbRef)

绑定状态: 已绑定

Python 调用: obj.allocTransientMarkerChangeRec(typeIn, dbRef)

This function returns a pointer to an allocation record of the oaMarkerChangeRec type。 Applications that define derived change records supply the analogous virtual function to allocate memory for their derived class。 实现 oaChangeSetBase。

参数

  • typeIn: The type of the change marker。
  • dbRef: A smart pointer to the database reference。

Python 示例

from oapy._oa import _cms

# assume obj is a oaChangeSet
obj.allocTransientMarkerChangeRec(typeIn, dbRef)

obj.cloneMarkerChangeRec(cr)

绑定状态: 已绑定

Python 调用: obj.cloneMarkerChangeRec(cr)

This function creates an exact copy of the specified oaTransientMarkerChangeRec , including an identical timestamp。 实现 oaChangeSetBase。

参数

  • cr: The oaTransientMarkerChangeRec to clone。

Python 示例

from oapy._oa import _cms

# assume obj is a oaChangeSet
obj.cloneMarkerChangeRec(cr)

obj.cloneMarkerChangeRec(cr)

绑定状态: 已绑定

Python 调用: obj.cloneMarkerChangeRec(cr)

This function creates an exact copy of the specified oaExportMarkerChangeRec , including an identical timestamp。 实现 oaChangeSetBase。

参数

  • cr: The oaExportMarkerChangeRec to clone。

Python 示例

from oapy._oa import _cms

# assume obj is a oaChangeSet
obj.cloneMarkerChangeRec(cr)

obj.findDatabaseRef(obj)

绑定状态: 已绑定

Python 调用: obj.findDatabaseRef(obj)

This function attempts to find the database reference object managed by this change set。 实现 oaChangeSetBase。

参数

  • obj: A pointer to an object。

Python 示例

from oapy._oa import _cms

# assume obj is a oaChangeSet
obj.findDatabaseRef(obj)

obj.allocDatabaseRef(obj, sd, isNew=false)

绑定状态: 已绑定

Python 调用: obj.allocDatabaseRef(obj, sd, isNew=false)

This function returns a smart pointer to an allocation record of the oaCMDatabaseRef type。 Applications that define derived change records supply the analogous virtual function to allocate memory for their derived class。 实现 oaChangeSetBase。

参数

  • obj: A pointer to the object。
  • sd: The schema definition of the database object。
  • isNew: A boolean that indicates whether or not this object is a newly created object。

Python 示例

from oapy._oa import _cms

# assume obj is a oaChangeSet
obj.allocDatabaseRef(obj, sd, isNew=false)

obj.findObjectIDRef(database, obj)

绑定状态: 已绑定

Python 调用: obj.findObjectIDRef(database, obj)

This function attempts to find the ID reference object managed by this change set。 实现 oaChangeSetBase。

参数

  • database: A smart pointer to the database reference。
  • obj: A pointer to an object。

Python 示例

from oapy._oa import _cms

# assume obj is a oaChangeSet
obj.findObjectIDRef(database, obj)

obj.allocObjectIDRef(database, obj, sd, isNew=false, scope=NULL)

绑定状态: 已绑定

Python 调用: obj.allocObjectIDRef(database, obj, sd, isNew=false, scope=NULL)

This function returns a smart pointer to an allocation record of the oaCMObjectIDRef type。 Applications that define derived change records supply the analogous virtual function to allocate memory for their derived class。 实现 oaChangeSetBase。

参数

  • database: Smart pointer to the database reference。
  • obj: A pointer to an object。
  • sd: The schema definition of the object。
  • isNew: A boolean that indicates whether or not this object is a newly created object。
  • scope: The scope within the database to which the object belongs。

Python 示例

from oapy._oa import _cms

# assume obj is a oaChangeSet
obj.allocObjectIDRef(database, obj, sd, isNew=false, scope=NULL)

obj.findObjectStateRef(database, obj)

绑定状态: 已绑定

Python 调用: obj.findObjectStateRef(database, obj)

This function attempts to find the state reference object managed by this change set。 实现 oaChangeSetBase。

参数

  • database: A smart pointer to a database reference object。
  • obj: A pointer to an object。

Python 示例

from oapy._oa import _cms

# assume obj is a oaChangeSet
obj.findObjectStateRef(database, obj)

obj.allocObjectStateRef(database, obj, sd, isNew=false, scope=NULL)

绑定状态: 已绑定

Python 调用: obj.allocObjectStateRef(database, obj, sd, isNew=false, scope=NULL)

This function returns a smart pointer to an allocation record of the oaCMObjectStateRef type。 Applications that define derived change records supply the analogous virtual function to allocate memory for their derived class。 实现 oaChangeSetBase。

参数

  • database: A smart pointer to a database reference object。
  • obj: A pointer to an object。
  • sd: The schema definition of the object。
  • isNew: A boolean that indicates whether or not this object is a newly created object。
  • scope: The scope within the database to which the object belongs。

Python 示例

from oapy._oa import _cms

# assume obj is a oaChangeSet
obj.allocObjectStateRef(database, obj, sd, isNew=false, scope=NULL)

obj.findStringEntry(database, string)

绑定状态: 已绑定

Python 调用: obj.findStringEntry(database, string)

This function finds the string entry in the database managed by this change set。 实现 oaChangeSetBase。

参数

  • database: A smart pointer to the database reference object。
  • string: The string for which to find the string entry。

Python 示例

from oapy._oa import _cms

# assume obj is a oaChangeSet
obj.findStringEntry(database, string)

obj.allocStringEntry(database, string)

绑定状态: 已绑定

Python 调用: obj.allocStringEntry(database, string)

This function returns a smart pointer to an allocation record of the oaCMStringEntry type。 实现 oaChangeSetBase。

参数

  • database: A smart pointer to a database reference object。
  • string: The string to be contained in the string entry。

Python 示例

from oapy._oa import _cms

# assume obj is a oaChangeSet
obj.allocStringEntry(database, string)

obj.allocObjectStateEntry(database, def, attributes, relationships)

绑定状态: 已绑定

Python 调用: obj.allocObjectStateEntry(database, def, attributes, relationships)

This function returns a smart pointer to an allocation record of the oaCMObjectStateEntry type。 实现 oaChangeSetBase。

参数

  • database: A smart pointer to a database reference object。
  • def: The schema definition of the object。
  • attributes: The attributes of the object state。
  • relationships: The relationships of the object state。

Python 示例

from oapy._oa import _cms

# assume obj is a oaChangeSet
obj.allocObjectStateEntry(database, def, attributes, relationships)

obj.accept(visitor)

绑定状态: 已绑定

Python 调用: obj.accept(visitor)

This function accepts a change record visitor and enables the visitor to access all the change records managed by this change set。 实现 oaChangeSetBase。

参数

  • visitor: A pointer to the visitor to call on this object。
  • minAge: A timestamp that specifies the minimum age of the change records to visit。

Python 示例

from oapy._oa import _cms

# assume obj is a oaChangeSet
obj.accept(visitor)

obj.accept(visitor, minAge=0)

绑定状态: 已绑定

Python 调用: obj.accept(visitor, minAge=0)

This function accepts a change set visitor。 It calls the visit function of the specified visitor on this object。 The visitor decides on the actions to take on the change set and its components。 The visitor can retrieve the simple components directly and act on those data。 It can also originate the traversal on the complex components in the change set by calling oaChangeSet::accept(oaChangeRecVisitor *visitor)。 实现 oaChangeSetBase。

参数

  • visitor: A pointer to the visitor to call on this object。

Python 示例

from oapy._oa import _cms

# assume obj is a oaChangeSet
obj.accept(visitor, minAge=0)

obj.getName(name)

绑定状态: 已绑定

Python 调用: obj.getName(name)

This function retrieves the name of this change set in name。 实现 oaChangeSetBase。

参数

  • name: The retrieved name of this change set。

Python 示例

from oapy._oa import _cms

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

obj.getTimeStamp()

绑定状态: 已绑定

Python 调用: obj.getTimeStamp()

A change set has a counter that it increments each time a change record is added。 This function returns the oaTimeStamp object that represents the current value of the counter。 实现 oaChangeSetBase。

Python 示例

from oapy._oa import _cms

# assume obj is a oaChangeSet
obj.getTimeStamp()

obj.isActive()

绑定状态: 已绑定

Python 调用: obj.isActive()

This function returns a boolean indicating whether tracking is active on this change set。 An active change set cannot be exported。 实现 oaChangeSetBase。

Python 示例

from oapy._oa import _cms

# assume obj is a oaChangeSet
obj.isActive()

obj.setActive(state)

绑定状态: 已绑定

Python 调用: obj.setActive(state)

This function sets a boolean to indicate whether or not tracking is active on this change set。 The initial state is false (non-active)。 It is set to true by oaChangeMgr::beginTracking() ; set to false by oaChangeMgr::endTracking() ; Implements oaChangeSetBase 。

参数

  • state: True (active) or false (non-active)。

Python 示例

from oapy._oa import _cms

# assume obj is a oaChangeSet
obj.setActive(state)

obj.isExported()

绑定状态: 已绑定

Python 调用: obj.isExported()

This function returns a boolean indicating whether or not this change set has been exported。 Applications cannot call oaChangeMgr::beginTracking on a change set that has been exported。 实现 oaChangeSetBase。

Python 示例

from oapy._oa import _cms

# assume obj is a oaChangeSet
obj.isExported()

obj.setExported()

绑定状态: 已绑定

Python 调用: obj.setExported()

This function sets the status of this change set to exported。 The initial status of a change set is not exported。 You cannot begin tracking on a change set if its status is set to exported。 oaChangeMgr::exportFull() calls this function, whereas oaChangeMgr::exportIncr() does not。 实现 oaChangeSetBase。

Python 示例

from oapy._oa import _cms

# assume obj is a oaChangeSet
obj.setExported()

obj.beginDatabaseRefs()

绑定状态: 已绑定

Python 调用: obj.beginDatabaseRefs()

This function returns the constant iterator that points to the first database reference in this change set。

Python 示例

from oapy._oa import _cms

# assume obj is a oaChangeSet
obj.beginDatabaseRefs()

obj.endDatabaseRefs()

绑定状态: 已绑定

Python 调用: obj.endDatabaseRefs()

This function returns the constant iterator that points to the last database reference in this change set。

Python 示例

from oapy._oa import _cms

# assume obj is a oaChangeSet
obj.endDatabaseRefs()

obj.beginObjectRefs(database)

绑定状态: 已绑定

Python 调用: obj.beginObjectRefs(database)

This function returns the constant iterator that points to the first object reference in the specified database in the change set。

参数

  • database: A smart pointer to the database of interest。

Python 示例

from oapy._oa import _cms

# assume obj is a oaChangeSet
obj.beginObjectRefs(database)

obj.endObjectRefs(database)

绑定状态: 已绑定

Python 调用: obj.endObjectRefs(database)

This function returns the constant iterator that points to the last object reference in the specified database in this change set。

参数

  • database: A smart pointer to the database of interest。

Python 示例

from oapy._oa import _cms

# assume obj is a oaChangeSet
obj.endObjectRefs(database)

obj.beginObjectStates(database)

绑定状态: 已绑定

Python 调用: obj.beginObjectStates(database)

This function returns the constant iterator that points to the first object state in the specified database in this change set。

参数

  • database: A smart pointer to the database of interest。

Python 示例

from oapy._oa import _cms

# assume obj is a oaChangeSet
obj.beginObjectStates(database)

obj.endObjectStates(database)

绑定状态: 已绑定

Python 调用: obj.endObjectStates(database)

This function returns the constant iterator that points to the last object state in the specified database in this change set。

参数

  • database: A smart pointer to the database of interest。

Python 示例

from oapy._oa import _cms

# assume obj is a oaChangeSet
obj.endObjectStates(database)

obj.beginStrings(database)

绑定状态: 已绑定

Python 调用: obj.beginStrings(database)

This function returns the constant iterator that points to the first string in the specified database in this change set。

参数

  • database: A smart pointer to the database of interest。

Python 示例

from oapy._oa import _cms

# assume obj is a oaChangeSet
obj.beginStrings(database)

obj.endStrings(database)

绑定状态: 已绑定

Python 调用: obj.endStrings(database)

This function returns the constant iterator that points to the last string in the specified database in this change set。

参数

  • database: A smart pointer to the database of interest。

Python 示例

from oapy._oa import _cms

# assume obj is a oaChangeSet
obj.endStrings(database)

obj.allocAttributeChangeRec(value, action, type)

绑定状态: 已绑定

Python 调用: obj.allocAttributeChangeRec(value, action, type)

实现 oaChangeSetBase。

Python 示例

from oapy._oa import _cms

# assume obj is a oaChangeSet
obj.allocAttributeChangeRec(value, action, type)

obj.allocRelationshipChangeRec(value, action, type)

绑定状态: 已绑定

Python 调用: obj.allocRelationshipChangeRec(value, action, type)

实现 oaChangeSetBase。

Python 示例

from oapy._oa import _cms

# assume obj is a oaChangeSet
obj.allocRelationshipChangeRec(value, action, type)