NShape Reference
IRepository Interface

<< Click to Display Table of Contents >>

Navigation:  Class Reference > Namespace Dataweb.NShape >

NShape Reference
IRepository Interface

Previous pageReturn to chapter overviewNext page

Reads and writes NShape project data from and to a persistent storage.

Syntax

public interface IRepository 

Description

IRepository is a facade interface that hides the complete persistency mechanism. Applications can use the included XML and ADO.NET implementations or provide completely proprietary storage facilities.

Public Properties

Name

Description

IsModified

Indicates if the repository's content was modified.

IsOpen

Indicates if the repository is open or closed.

Projectname

Specifies the name of the project.

Version

Indicates the version of the repository's storage format.

Public Methods

Name

Description

AddEntityType

Add an EntityType to the repository.

CanModifyVersion

Specifies whether the repository's load/save version can be modified.

Close

Closes the repository.

Create

Creates a new project in the repository.

Delete

Deletes the given object(s), but no child objects or contained objects from the repository.

DeleteAll

Deletes the given object(s) and all its child objects and contained objects but no linked objects from the repository.

DeleteConnection

Deletes a shape connection from the repository.

Erase

Erases an existing repository.

Exists

Tests, whether the store and project of the repository exist.

GetDesign

Returns the indicated design.

GetDesigns

Returns all designs.

GetDiagram

Returns the indicated diagram.

GetDiagrams

Returns all diagrams.

GetDiagramShapes

Returns all shapes of the given diagram.

GetModel

Returns the indicated model.

GetModelObject

Returns the indicated model object .

GetModelObjects

Returns all child model objects of the given model object.

GetProject

Returns the current project.

GetTemplate

Returns the indicated template.

GetTemplates

Returns all templates.

Insert

Inserts the given object(s) but no child objects or contained objects into the repository.

InsertAll

Inserts the given object(s) and its child objects and contained objects but no linked objects into the repository.

InsertConnection

Inserts the given shape connection into the repository.

IsModelObjectInUse

Checks whether the given model object is referenced by any shape or child model object in any diagram of the project.
If the repository's store supports partial loading, the store performs the same checks without loading the corresponding objects.

IsModelObjectTypeInUse

Checks whether the given model object type is referenced by any model object in the project.
If the repository's store supports partial loading, the store performs the same checks without loading the corresponding objects.

IsShapeTypeInUse

Checks whether the given shape type is referenced by any shapes in the project.
If the repository's store supports partial loading, the store performs the same checks without loading the corresponding objects.

IsStyleInUse

Checks whether the given style is referenced by any styles or shapes in the project.
If the repository's store supports partial loading, the store performs the same checks without loading the corresponding objects.

IsTemplateInUse

Checks whether the given template is referenced by any shape in any diagram of the project.  If the repositories store supports partial loading, the store performs the same checks without loading the corresponding objects.

ObtainNewBottomZOrder

Returns a new minimum z-order for the given diagram.

ObtainNewTopZOrder

Returns a new maximum z-order for the given diagram.

Open

Opens the repository for the specified project.

ReadVersion

Reads the version number of the project from the persistent store.

RemoveAllEntityTypes

Removes all EntityTypes from the repository.

RemoveEntityType

Removes the given EntityType from the repository.

ReplaceTemplateShape

Replaces the given template's shape with the given shape.

SaveChanges

Saves all changes to a persistent media.

Undelete

Undeletes the given object(s), but no child objects or contained objects from the repository.

UndeleteAll

Undeletes the given object(s) and all its child objects and contained objects but no linked objects from the repository.

Unload

Removes the given objects from the repository.

Update

Updates the given object(s), but no child objects or contained objects.

UpdateOwner

Updates the given object's owner.

Events

Name

Description

ConnectionInserted

Raised when a connection between shapes was inserted.

ConnectionDeleted

Raised when a connection between shapes was deleted.

DesignDeleted

Raised when a design was deleted.

DesignInserted

Raised when a design was inserted.

DesignUpdated

Raised when a design was updated.

DiagramDeleted

Raised when a diagram was deleted.

DiagramInserted

Raised when a diagram was inserted.

DiagramUpdated

Raised when a diagram was updated.

ModelDeleted

Raised when a model was deleted.

ModelInserted

Raised when a model was inserted.

ModelMappingsDeleted

Raised when a model mapping was deleted.

ModelMappingsInserted

Raised when a model mapping was inserted.

ModelMappingsUpdated

Raised when a model mapping was updated.

ModelObjectsDeleted

Raised when a model object was deleted.

ModelObjectsInserted

Raised when a model object was inserted.

ModelObjectsUpdated

Raised when a model object was updated.

ModelUpdated

Raised when a model was updated.

ProjectUpdated

Raised when a project was updated.

ShapesDeleted

Raised when shapes were deleted.

ShapesInserted

Raised when shapes were inserted.

ShapesUpdated

Raised when shapes were updated.

StyleDeleted

Raised when a style was deleted.

StyleInserted

Raised when a style was inserted.

StyleUpdated

Raised when a style was updated.

TemplateDeleted

Raised when a template was deleted.

TemplateInserted

Raised when a template was inserted.

TemplateShapeReplaced

Raised when a template's shape was replaced by an other shape.

TemplateUpdated

Raised when a template was updated.

Requirements

Namespace: Dataweb.NShape

Assembly: Dataweb.NShape