C# Class NDB.Node

Inheritance: IEnumerable
Datei anzeigen Open project: Kirosoft/NouchDB Class Usage Examples

Public Properties

Property Type Description
revision Node>.Dictionary

Public Methods

Method Description
GetEnumerator ( ) : IEnumerator
Node ( ) : System
Node ( Node parent, string rev_id, long sequence ) : System
Node ( string id ) : System
Node ( string id, string data, long sequence ) : System
Node ( string id, string data, long sequence, string rev_id ) : System
Parse ( string json ) : Node
ToJson ( ) : string
addVersion ( string previousVersion, Node newNode ) : Node
addVersion ( string data, long sequence ) : Node
addVersion ( string data, long sequence, string rev_id ) : Node
addVersion ( string previousVersion, string rev_id, long sequence ) : Node
addVersion ( string version, string sequence, string rev_id ) : Node
getLatestSequence ( ) : long
getLatestSig ( ) : string
getVersion ( string version ) : Node
merge ( Node rootNode ) : List

Method Details

GetEnumerator() public method

public GetEnumerator ( ) : IEnumerator
return IEnumerator

Node() public method

public Node ( ) : System
return System

Node() public method

public Node ( Node parent, string rev_id, long sequence ) : System
parent Node
rev_id string
sequence long
return System

Node() public method

public Node ( string id ) : System
id string
return System

Node() public method

public Node ( string id, string data, long sequence ) : System
id string
data string
sequence long
return System

Node() public method

public Node ( string id, string data, long sequence, string rev_id ) : System
id string
data string
sequence long
rev_id string
return System

Parse() public static method

public static Parse ( string json ) : Node
json string
return Node

ToJson() public method

public ToJson ( ) : string
return string

addVersion() public method

public addVersion ( string previousVersion, Node newNode ) : Node
previousVersion string
newNode Node
return Node

addVersion() public method

public addVersion ( string data, long sequence ) : Node
data string
sequence long
return Node

addVersion() public method

public addVersion ( string data, long sequence, string rev_id ) : Node
data string
sequence long
rev_id string
return Node

addVersion() public method

public addVersion ( string previousVersion, string rev_id, long sequence ) : Node
previousVersion string
rev_id string
sequence long
return Node

addVersion() public method

public addVersion ( string version, string sequence, string rev_id ) : Node
version string
sequence string
rev_id string
return Node

getLatestSequence() public method

public getLatestSequence ( ) : long
return long

getLatestSig() public method

public getLatestSig ( ) : string
return string

getVersion() public method

public getVersion ( string version ) : Node
version string
return Node

merge() public method

public merge ( Node rootNode ) : List
rootNode Node
return List

Property Details

revision public_oe property

Holds the list of revisions for a given document id
public Dictionary revision
return Node>.Dictionary