Server.Data.DataContainer Class Reference

Contains datastructures that contain the model of the system. More...

List of all members.

Public Member Functions

 DataContainer ()
 Creates an empty, properly formatted DataContainer.
 DataContainer (Dictionary< int, Project > projectTable, Dictionary< int, Literature > literatureTable, Dictionary< int, Comment > commentTable, Dictionary< string, Person > personTable, DataTable tags)
 Create a DataConatiner using already properly formatted datastructures. (See documentation for DataContainer.CreateEmptyTagTable() for explaination).

Static Public Member Functions

static DataTable CreateEmptyTagTable ()
 Creates a DataTable object which contains three DataColumn, "Tag", "ID", "UserName". All of which are added to the table's PrimaryKey.

Properties

Dictionary< int, ProjectProjectTable [get]
 The Dictionary containing all Projects in the system, indiced by Project.ID.
Dictionary< int, LiteratureLiteratureTable [get]
 The Dictionary containing all Literature in the system, indiced by Literature.ID.
Dictionary< int, CommentCommentTable [get]
 Dictionary containing all Comments, indiced by Comment.ID.
Dictionary< string, PersonPersonTable [get]
 The Dictionary containing all People in the system, indiced by Person.UserName.
DataTable Tags [get]
 A properly formatted DataTable containing all Tags in the system. (See documentation for DataContainer.CreateEmptyTagTable() for explaination).

Private Attributes

Dictionary< int, ProjectprojectTable
Dictionary< int, LiteratureliteratureTable
Dictionary< int, CommentcommentTable
Dictionary< string, PersonpersonTable
DataTable tags = new DataTable()


Detailed Description

Contains datastructures that contain the model of the system.

Definition at line 11 of file DataContainer.cs.


Constructor & Destructor Documentation

Server.Data.DataContainer.DataContainer (  ) 

Creates an empty, properly formatted DataContainer.

Definition at line 22 of file DataContainer.cs.

Server.Data.DataContainer.DataContainer ( Dictionary< int, Project projectTable,
Dictionary< int, Literature literatureTable,
Dictionary< int, Comment commentTable,
Dictionary< string, Person personTable,
DataTable  tags 
)

Create a DataConatiner using already properly formatted datastructures. (See documentation for DataContainer.CreateEmptyTagTable() for explaination).

Parameters:
projectTable Dictionary that contains all Project objects, indiced by the Project.ID
literatureTable Dictionary that contains all Literature, indiced by the Literature.ID
personTable Dictionary that contains all Person objects, indiced by the Person.UserName
tags A properly formatted DataTable containing all Tags in the system. (See documentation for DataContainer.CreateEmptyTagTable() for explaination)

Definition at line 38 of file DataContainer.cs.


Member Function Documentation

static DataTable Server.Data.DataContainer.CreateEmptyTagTable (  )  [static]

Creates a DataTable object which contains three DataColumn, "Tag", "ID", "UserName". All of which are added to the table's PrimaryKey.

Returns:
A properly formatted Tag DataTable

Definition at line 57 of file DataContainer.cs.


Property Documentation

Dictionary<int, Project> Server.Data.DataContainer.ProjectTable [get]

The Dictionary containing all Projects in the system, indiced by Project.ID.

Definition at line 70 of file DataContainer.cs.

Referenced by Server.Catalogue.CreateProject(), Server.Catalogue.CreateReference(), Server.Catalogue.CreateReview(), Server.Catalogue.CreateSuggestion(), Server.Catalogue.DeleteProject(), Server.Catalogue.DeleteReference(), Server.Catalogue.GetProject(), Server.Catalogue.GetProjectInfo(), Server.Catalogue.GetReference(), Server.Catalogue.GetUsersProjects(), Server.Catalogue.ListProjects(), Server.Catalogue.ListReferences(), Server.Catalogue.ListReviews(), Server.Catalogue.ListSuggestions(), Server.Data.BinaryData.SaveData(), Server.Data.XmlData.SaveProjects(), Server.Test.PersistentDataTest.TestDatabase(), and Server.Catalogue.UpdateProject().

Dictionary<int, Literature> Server.Data.DataContainer.LiteratureTable [get]

The Dictionary containing all Literature in the system, indiced by Literature.ID.

Definition at line 78 of file DataContainer.cs.

Referenced by Server.Catalogue.CreateComment(), Server.Catalogue.CreateLiterature(), Server.Catalogue.CreateReference(), Server.Catalogue.CreateReview(), Server.Catalogue.CreateSuggestion(), Server.Catalogue.DeleteLiterature(), Server.Catalogue.DeleteReference(), Server.Catalogue.GetComments(), Server.Catalogue.GetLiteratureInfo(), Server.Catalogue.ListLiterature(), Server.Catalogue.ListReferences(), Server.Catalogue.ListReviews(), Server.Catalogue.ListSuggestions(), Server.Data.BinaryData.SaveData(), Server.Data.XmlData.SaveLiterature(), Server.Catalogue.Search(), Server.Test.PersistentDataTest.TestDatabase(), and Server.Catalogue.UpdateLiterature().

Dictionary<int, Comment> Server.Data.DataContainer.CommentTable [get]

Dictionary containing all Comments, indiced by Comment.ID.

Definition at line 86 of file DataContainer.cs.

Referenced by Server.Catalogue.CreateComment().

Dictionary<string, Person> Server.Data.DataContainer.PersonTable [get]

The Dictionary containing all People in the system, indiced by Person.UserName.

Definition at line 95 of file DataContainer.cs.

Referenced by Server.Catalogue.CreateComment(), Server.Catalogue.CreateLiterature(), Server.Catalogue.CreateReview(), Server.Test.PersistentDataTest.CreateShitloadOfComments(), Server.Catalogue.CreateSuggestion(), Server.Data.BinaryData.SaveData(), Server.Data.XmlData.SavePersons(), and Server.Test.PersistentDataTest.TestDatabase().

DataTable Server.Data.DataContainer.Tags [get]

A properly formatted DataTable containing all Tags in the system. (See documentation for DataContainer.CreateEmptyTagTable() for explaination).

Definition at line 103 of file DataContainer.cs.

Referenced by Server.Catalogue.DeleteLiterature(), Server.Catalogue.DeleteProject(), Server.Data.BinaryData.SaveData(), Server.Data.XmlData.SaveTags(), and Server.Test.PersistentDataTest.TestDatabase().


The documentation for this class was generated from the following file:
Generated on Thu Dec 21 06:25:14 2006 for SCRAML by  doxygen 1.5.1-p1