C# Class Zetbox.API.Server.BaseServerPersistenceObject

Abstract Base Class for a PersistenceObject on the Server Side
Inheritance: BasePersistenceObject
Show file Open project: daszat/zetbox

Public Methods

Method Description
ApplyChangesFrom ( IPersistenceObject obj ) : void
AttachToContext ( IZetboxContext ctx, Func lazyFrozenContext ) : void
FromStream ( ZetboxStreamReader sr ) : IEnumerable
SetDeleted ( ) : void
SetNew ( ) : void
SetUnDeleted ( ) : void
SetUnmodified ( ) : void
ToStream ( ZetboxStreamWriter sw, HashSet auxObjects, bool eagerLoadLists ) : void

Protected Methods

Method Description
AuditPropertyChange ( string property, object oldValue, object newValue ) : void
BaseServerPersistenceObject ( Func lazyCtx ) : System
SaveAudits ( ) : void
SetModified ( ) : void

Private Methods

Method Description
GetIdentity ( IZetboxServerContext serverCtx ) : string
SetObjectState ( DataObjectState newState ) : void

Method Details

ApplyChangesFrom() public method

public ApplyChangesFrom ( IPersistenceObject obj ) : void
obj IPersistenceObject
return void

AttachToContext() public method

public AttachToContext ( IZetboxContext ctx, Func lazyFrozenContext ) : void
ctx IZetboxContext
lazyFrozenContext Func
return void

AuditPropertyChange() protected method

protected AuditPropertyChange ( string property, object oldValue, object newValue ) : void
property string
oldValue object
newValue object
return void

BaseServerPersistenceObject() protected method

protected BaseServerPersistenceObject ( Func lazyCtx ) : System
lazyCtx Func
return System

FromStream() public method

public FromStream ( ZetboxStreamReader sr ) : IEnumerable
sr ZetboxStreamReader
return IEnumerable

SaveAudits() protected method

protected SaveAudits ( ) : void
return void

SetDeleted() public method

public SetDeleted ( ) : void
return void

SetModified() protected final method

protected final SetModified ( ) : void
return void

SetNew() public method

public SetNew ( ) : void
return void

SetUnDeleted() public method

public SetUnDeleted ( ) : void
return void

SetUnmodified() public method

public SetUnmodified ( ) : void
return void

ToStream() public method

public ToStream ( ZetboxStreamWriter sw, HashSet auxObjects, bool eagerLoadLists ) : void
sw ZetboxStreamWriter
auxObjects HashSet
eagerLoadLists bool
return void