Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

The purpose of an EDMbinaryPackage is to support:

  • Transfer and synchronization of models and other database subsets between hosts
  • Backup of models and other database subsets 

The EDMbinaryPackage will be officially available from edmcore version v602.207.85


An EDMbinaryPackage will be stored as one directory. All files in the directory will have the same name as in the source DB.
The default name of an EDMbinaryPackage has the following syntax:

  • DirectoryPathAndName/EDM.dbName/MmodelIndex/SourceRepositoryName.SourceModelName.BIN

Example: “C:\Files\ServerClientsFiles\EDM.db1.M22.DataRepository.PdmModel1.BIN”

The “SourceRepositoryName.SourceModelName” can be replaced by a given name. Example:  C:\Files\ServerClientsFiles\EDM.db1.M22.MyPDMmodel.BIN



sdai.h
/* options for the edmiExportBinaryPackage() and edmiExportBinaryPackage() functions */
#define START_OPTIONS
#define ALL_FILE_OBJECTS                         01000
#define NO_FILE_OBJECTS                          02000
#define BINARY_PACKAGE_ON_SERVER_FILE_SYSTEM     04000
#define DELETE_EXISTING_BINARY_PACKAGE       010000000
#define FILE_OBJECTS_NEWER_THAN              020000000
#define FILE_OBJECTS_OLDER_THAN              040000000
#define END_OPTIONS

EdmiError     _CDECL edmiExportBinaryPackage                 (SdaiModel       modelId,
                                                              SdaiString      binPackageLocation, 
                                                              SdaiString      binPackageName,
                                                              EdmiPackedDate  filesNewerThan,
                                                              EdmiPackedDate  filesOlderThan,
                                                              SdaiOptions     options);

/* Options in edmiRemoteImportBinaryPackage() function */
#define START_OPTIONS
#define DELETING_EXISTING_MODEL                   0100
#define ALL_FILE_OBJECTS                         01000
#define NO_FILE_OBJECTS                          02000
#define BINARY_PACKAGE_ON_SERVER_FILE_SYSTEM     04000
#define RENAME_IMPORTED_MODEL                010000000
#define FILE_OBJECTS_NEWER_THAN              020000000
#define FILE_OBJECTS_OLDER_THAN              040000000
#define REALLOCATE_IMPORTED_MODEL           0100000000
#define DEFINE_MISSING_ATTR_HASH_TABLES     0200000000
#define END_OPTIONS
                                   
EdmiError     _CDECL edmiImportBinaryPackage                 (SdaiString      binPackageLocation, 
                                                              SdaiString      newRepositoryName,   /* optional */
                                                              SdaiString      newModelName,        /* optional */
                                                              SdaiString      binPackageName,
                                                              EdmiPackedDate  filesNewerThan,
                                                              EdmiPackedDate  filesOlderThan,
                                                              SdaiInteger     newModelIndex,
                                                              SdaiOptions     options);

/* Options in edmiRemoteExportBinaryPackage() and function */
#define START_OPTIONS
#define ALL_FILE_OBJECTS                         01000
#define NO_FILE_OBJECTS                          02000
#define BINARY_PACKAGE_ON_SERVER_FILE_SYSTEM     04000
#define DELETE_EXISTING_BINARY_PACKAGE       010000000
#define FILE_OBJECTS_NEWER_THAN              020000000
#define FILE_OBJECTS_OLDER_THAN              040000000
#define END_OPTIONS

EdmiError   _CDECL edmiRemoteExportBinaryPackage            (SdaiServerContext          serverContextId,  
                                                             SdaiString                 repositoryName, 
                                                             SdaiString                 modelName, 
                                                             SdaiString                 binaryPackageLocation,
                                                             SdaiString                 binaryPackageName,    /* optional; default name: "EDM.dbName.MmodelIndex.RepName.ModelName.Bin" */  
                                                             EdmiPackedDate             fileObjectsNewerThan,
                                                             EdmiPackedDate             fileObjectsOlderThan, 
                                                             SdaiOptions                options,           
                                                             SdaiInvocationId          *edmiInvocationId); 
/* Options in edmiRemoteImportBinaryPackage() function */
#define START_OPTIONS
#define DELETING_EXISTING_MODEL                   0100
#define ALL_FILE_OBJECTS                         01000
#define NO_FILE_OBJECTS                          02000
#define BINARY_PACKAGE_ON_SERVER_FILE_SYSTEM     04000
#define RENAME_IMPORTED_MODEL                010000000
#define FILE_OBJECTS_NEWER_THAN              020000000
#define FILE_OBJECTS_OLDER_THAN              040000000
#define REALLOCATE_IMPORTED_MODEL           0100000000
#define DEFINE_MISSING_ATTR_HASH_TABLES     0200000000
#define END_OPTIONS

EdmiError   _CDECL edmiRemoteImportBinaryPackage            (SdaiServerContext          serverContextId,  
                                                             SdaiString                 newRepositoryName,  /* optional. Default is source repository name */
                                                             SdaiString                 newModelName,       /* optional. Default is source model name */
                                                             SdaiString                 binaryPackageLocation,
                                                             SdaiString                 binaryPackageName,    /* optional; default name: "EDM.dbName.MmodelIndex.RepName.ModelName.Bin" */  
                                                             EdmiPackedDate             fileObjectsNewerThan, /* optional */
                                                             EdmiPackedDate             fileObjectsOlderThan, /* optional */
                                                             SdaiInteger                newModelIndex,
                                                             SdaiOptions                options,           
                                                             SdaiInvocationId          *edmiInvocationId);





  • No labels