All Frameworks  Class Hierarchy  This Framework  Previous  Next  Indexes

ENOVInterfaces Interface ENOVIABOVersionMaster

System.IUnknown
  |
  +---System.IDispatch
    |
    +---System.CATBaseUnknown
      |
      +---System.CATBaseDispatch
        |
        +---System.CATIABase
          |
          +---ENOVInterfaces.ENOVIABusinessObject
            |
            +---ENOVIABOVersionMaster
 

Usage: an implementation of this interface is supplied and you must use it as is. You should not reimplement it.


interface ENOVIABOVersionMaster

Interface to control the different versions of a business object.
Role: Some business objects are made of a master object defined by an identifier, and a version object defined by the version. This interface helps creating a new version of an object, retrieving the last version.


Method Index


o CreateMaster(CATUnicodeString&,CATUnicodeString&,CATUnicodeString&,CATUnicodeString&,ENOVIABOVersionMaster*&)
Creates a new versionnable business object.
o CreateMaster(CATUnicodeString&,CATUnicodeString&,CATUnicodeString&,ENOVIABOVersionMaster*&)
o NewVersion(CATUnicodeString&,CATUnicodeString&,ENOVIABOVersionMaster*&,ENOVIABOVersionMaster*)
Creates a new version of a versionnable business object.
o NewVersion(CATUnicodeString&,ENOVIABOVersionMaster*&,ENOVIABOVersionMaster*)
o RemoveAllVersions()
Removes all the versionnable business object 's versions.
o get_LastVersion(ENOVIABOVersionMaster*&)
Returns the last version of a versionnable business object.
o get_PreferedVersion(ENOVIABOVersionMaster*&)
Returns the prefered version of a versionnable business object.

Methods


o CreateMaster
public virtual HRESULT __stdcall CreateMaster( const CATUnicodeString& iId,
const CATUnicodeString& iName,
const CATUnicodeString& iDescription,
const CATUnicodeString& iEnvironment,
ENOVIABOVersionMaster*& oObject)= 0
Creates a new versionnable business object.
Parameters:
iId
The identifier of the new object.
iName
The name of the new object.
iDescription
The description of the new object.
iEnvironment
The environment in which the new object will be created.
oObject
The new created object.
Returns:
S_OK in case of success, E_FAIL in case of error.
o CreateMaster
public virtual HRESULT __stdcall CreateMaster( const CATUnicodeString& iId,
const CATUnicodeString& iName,
const CATUnicodeString& iDescription,
ENOVIABOVersionMaster*& oObject)= 0
Deprecated:
V5R15 Creates a new versionnable business object.
Parameters:
iId
The identifier of the new object.
iName
The name of the new object.
iDescription
The description of the new object.
oObject
The new created object.
Returns:
S_OK in case of success, E_FAIL in case of error.
o NewVersion
public virtual HRESULT __stdcall NewVersion( const CATUnicodeString& iVersion,
const CATUnicodeString& iEnvironment,
ENOVIABOVersionMaster*& oObject,
ENOVIABOVersionMaster* iFromVersion= 0 )= 0
Creates a new version of a versionnable business object.
Parameters:
iVersion
The new version of the object to create.
iEnvironment
The environment in which the new version will be created.
oObject
The new created object.
iFromVersion
The object version the new version inherits from (optional).
Returns:
S_OK in case of success, E_FAIL in case of error.
o NewVersion
public virtual HRESULT __stdcall NewVersion( const CATUnicodeString& iVersion,
ENOVIABOVersionMaster*& oObject,
ENOVIABOVersionMaster* iFromVersion= 0 )= 0
Deprecated:
V5R15 Creates a new version of a versionnable business object.
Parameters:
iVersion
The new version of the object to create.
oObject
The new created object.
iFromVersion
The object version the new version inherits from (optional).
Returns:
S_OK in case of success, E_FAIL in case of error.
o RemoveAllVersions
public virtual HRESULT __stdcall RemoveAllVersions()= 0
Removes all the versionnable business object 's versions.
Returns:
S_OK in case of success, E_FAIL in case of error.
o get_LastVersion
public virtual HRESULT __stdcall get_LastVersion(ENOVIABOVersionMaster*& oObject)= 0
Returns the last version of a versionnable business object.
Parameters:
oObject
The last version of the object.
Returns:
S_OK in case of success, E_FAIL in case of error.
o get_PreferedVersion
public virtual HRESULT __stdcall get_PreferedVersion(ENOVIABOVersionMaster*& oObject)= 0
Returns the prefered version of a versionnable business object.
Parameters:
oObject
The preferred version of the object.
Returns:
S_OK in case of success, E_FAIL in case of error.

This object is included in the file: ENOVIABOVersionMaster.h
If needed, your Imakefile.mk should include the module: GUIDENOVInterfaces

Copyright © 2003, Dassault Systèmes. All rights reserved.