NShape Reference
CachedRepository Class

<< Click to Display Table of Contents >>

Navigation:  Class Reference > Namespace Dataweb.NShape.Advanced >

NShape Reference
CachedRepository Class

Previous pageReturn to chapter overviewNext page

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

Syntax

public class CachedRepository : Component, IRepositoryIStoreCache 

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.

ProductVersion

Indicates the version of the component.

ProjectName

Specifies the name of the project.

Store

The store where the data are stored persistently.

Public Methods

Name

Description

AddEntityType

Add an IEntityType to the repository.

Close

Closes the repository.

Create

Creates a new project in the repository.

DeleteDesign

Delete an additional design from the repository.

DeleteDiagram

Delete a diagram from the repository

DeleteModel

Delete a Model from the repository

DeleteModelMapping

Delete a model mapping from the repository

DeleteModelMappings

Delete a list of model mappings from the repository

DeleteModelObject

Delete a model object from the repository

DeleteModelObjects

Delete a list of model objects from the repository

DeleteProject

Delete a project from the repository

DeleteShape

Delete a shape from the repository

DeleteShapeConnection

Delete a shape connection from the repository

DeleteShapes

Delete a list of shapes from the repository

DeleteStyle

Delete a style from the repository

DeleteTemplate

Delete a template 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 .

GetDiagrams

Returns all diagrams.

GetDiagramShapes

Returns all shapes of the given diagram inside the given areas.

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.

InsertDesign

Inserts the given design into the repository.

InsertDiagram

Inserts the given diagram into the repository.

InsertModel

Inserts a new Model into the repository.

InsertModelMapping

Inserts the given model mapping into the repository.

InsertModelMappings

Inserts the given model mappings into the repository.

InsertModelObject

Inserts the given model object into the repository.

InsertModelObjects

Inserts the given model objects into the repository.

InsertShape

Inserts the given shape into the repository.

InsertShapeConnection

Inserts the given shape connection into the repository.

InsertShapes

Inserts the given shapes into the repository.

InsertStyle

Inserts the given style into the repository.

InsertTemplate

Inserts the given template into the repository.

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.

ReadXml

Reads XML data into the cache using the specified System.IO.Stream.

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.

UndeleteDesign

Undeletes the given design.

UndeleteDiagram

Undeletes the given diagram.

UndeleteModel

Undeletes the given model.

UndeleteModelMapping

Undeletes the given model mapping.

UndeleteModelMappings

Undeletes the given model mappings.

UndeleteModelObject

Undeletes the given model object.

UndeleteModelObjects

Undeletes the given model objects.

UndeleteShape

Undeletes the given shape.

UndeleteShapes

Undeletes the given shapes.

UndeleteStyle

Undeletes the given style.

UndeleteTemplate

Undeletes the given template.

UnloadDiagramShapes

Unloads all shapes of the given diagram.

UnloadModelObjects

Unloads the given model objects.

UpdateDesign

Updates the given design.

UpdateDiagram

Updates the given diagram.

UpdateModel

Updates the given model.

UpdateModelMapping

Updates the given model mapping.

UpdateModelMappings

Updates the given model mappings.

UpdateModelObject

Updates the given model object.

UpdateModelObjectParent

Updates the given model object parent.

UpdateModelObjects

Updates the given model objects.

UpdateProject

Updates the given project.

UpdateShape

Updates the given shape.

UpdateShapeOwner

Updates the given shape owner.

UpdateShapes

Updates the given shapes.

UpdateStyle

Updates the given style.

UpdateTemplate

Updates the given template.

WriteXml

Writes the current cache content as XML data.

Events

Name

Description

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.

ProjectDeleted

Raised when a project was deleted.

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.

SavingChanges

Raised before the repository is saving the changes to its underlying medium.

SavedChanges

Raised after the changes to the repository have been saved.

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.Advanced

Assembly: Dataweb.NShape

See Also

Concepts: Persistency

Concepts: The CachedRepository Class

Store Class

XmlStore Class

AdoNetStore Class