Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagecpp
themeConfluence
EdmiError edmiRemoteDeleteSchema(SdaiServerContext serverContextId,
                                   SdaiInteger       schemaType, 
                                   SdaiString        schemaName, 
                                   SdaiString        extraSchemaName, 
                                   SdaiUnsignedInt   options,
                                   SdaiInvocationId  *edmiInvocationId);

Deletes a schema from the remote EDMdatabase

...

. The following schema types are supported by this function;

  1. Express Schemata (ISO10303-11).
  2. Express-X Schemata (ISO10303-14)
  3. Express Rule Schemata (Express Schemata extentionextension).
  4. Express Query Schemata (Express Schemata extentionextension).
  5. Extension Schemata

For Express Schemata, dictionary models may not be deleted if data models (populations) of it exist in the database. Neither can it be deleted if it has been

...

refereed to as a source schema or a target schema by any Express-X dictionary model. Therefore, all corresponding data models and Express-X dictionary models must be deleted before the Express Schema it self may be deleted.

...

Arguments

...

TypeNameComment
 SdaiServerContext

serverContextId

Context identification, from edmiDefineServerContext

 SdaiInteger

schemaType

The type of schemata to delete. Supported schema types are EXPRESS_SCHEMA_TYPE, RULE_SCHEMA_TYPE, QUERY_SCHEMA_TYPE and , EXPRESS_X_SCHEMA_TYPE and

EXTENSION_SCHEMA_TYPE

.

 SdaiString

schemaName

The name of the schema to delete. If the <schemaType> is RULE_SCHEMA_TYPE or QUERY_SCHEMA_TYPE, this argument shall be the name of the parent Express Schema.

 SdaiString

extraSchemaName

If the <schemaType> is RULE_SCHEMA_TYPE or QUERY_SCHEMA_TYPE, this argument shall be the name of the Rule Schema or Query Schema.

 SdaiUnsignedInt

options

Currently not used.

 SdaiInvocationId

edmiInvocationId

Currently not used.

...

Return Value

...

Insert excerpt
US:_r_EDMInterface
US:_r_EDMInterface
nopaneltrue

 

Options

...

  

 

Example

...

 

Code Block
languagecpp
 EdmiError rstat;
 SdaiInteger nWrn, nErr;
 SdaiServerContext myContext;
 SdaiSchema schemaId;
  
 /* Define Remote Server Context */
 rstat = edmiDefineServerContext("MyRemoteServerContext",

...


 "Johnny", "Supervisor", "cf37ftr",

...

 
 "TCP", "9090", "MyServerHost",

...

 
 NULL, NULL, NULL, NULL, NULL, &myContext);

...

 
  
 /* Compile the schema */

...


 rstat = edmiRemoteDefineSchema(myContext, EXPRESS_SCHEMA_TYPE,

...


 "c:/data/MyFile.exp", "c:/tmp/MyFile.dia", "MySchema",

...

 
 DELETING_EXISTING_SCHEMAS | STORING_SOURCE,

...

 
 &nWrn, &nErr, NULL);

...

 
  
 /* Get the id of schema MySchema */

...


 rstat = edmiRemoteGetSchema(myContext, "MySchema",

...


 &schemaId, NULL);

...

 
  
 /* Get the HTML source

...


 of schema MySchema */

...

 
 rstat = edmiRemoteGetSchemaSource(myContext, EXPRESS_SCHEMA_TYPE,

...


 "MySchema", NULL, SHOW_HTML,

...

  
 "c:/out/MySchema.html", NULL);

...

 
  
 /* Delete the schema */

...


 rstat = edmiRemoteDeleteSchema(myContext, EXPRESS_SCHEMA_TYPE,

...


 "MySchema", NULL, 0, NULL);

...

 
 . . .

 

See also

Filter by label (Content by label)
showLabelsfalse
showSpacefalse
cqllabel = "model" and parent = "6062220"