C# Class Nxdb.Persistence.Persister

This is the base class for reusable persisters. To add new persisters, create a derived class and override Fetch, Serialize, and/or Store.
Datei anzeigen Open project: daveaglick/Nxdb Class Usage Examples

Protected Methods

Method Description
Fetch ( Element element, object target ) : void

Fetches data for the specified object from the specified element.

Serialize ( object source ) : object

Serializes the instance to an arbitrary object that will be passed to Store.Doing storage in two phases allows failure without manipulating the database.

Store ( Element element, object serialized, object source ) : void

Stores data for the specified object to the specified element.

Private Methods

Method Description
Fetch ( Element element, object target, TypeCache typeCache, Cache cache ) : void
Serialize ( object source, TypeCache typeCache, Cache cache ) : object
Store ( Element element, object source, TypeCache typeCache, Cache cache ) : void
Store ( Element element, object serialized, object source, TypeCache typeCache, Cache cache ) : void

Method Details

Fetch() protected method

Fetches data for the specified object from the specified element.
protected Fetch ( Element element, object target ) : void
element Nxdb.Node.Element The element to fetch data from.
target object The object to fetch data for.
return void

Serialize() protected method

Serializes the instance to an arbitrary object that will be passed to Store.Doing storage in two phases allows failure without manipulating the database.
protected Serialize ( object source ) : object
source object The object to store data for.
return object

Store() protected method

Stores data for the specified object to the specified element.
protected Store ( Element element, object serialized, object source ) : void
element Nxdb.Node.Element The element to store data to.
serialized object The serialized object returned by Serialize.
source object The object to store data for.
return void