C# 클래스 VelocityDbSchema.Samples.AllSupportedSample.PersistenceByInterfaceSnake

상속: Pet, IOptimizedPersistable
파일 보기 프로젝트 열기: VelocityDB/VelocityDB 1 사용 예제들

공개 메소드들

메소드 설명
CompareTo ( object obj ) : int
FlushTransients ( ) : void
InitializeAfterRead ( SessionBase session ) : void

This function is called when an object has been read from disk and all data members (fields) have been loaded. Override this to provide your own initializtions of transient data.

InitializeAfterRecreate ( SessionBase session ) : void

This function is called when an object has been read from disk before all data members (fields) have been fully loaded. Override this to provide your own initializtions of transient data.

Persist ( Placement place, SessionBase session, bool persistRefs = true, bool disableFlush = false, Queue toPersist = null ) : System.UInt64

Persists this object.

Persist ( SessionBase session, IOptimizedPersistable placeHint, bool persistRefs = true, bool disableFlush = false ) : System.UInt64

Persists this object.

PersistMyReferences ( SessionBase session, bool inFlush ) : void
PersistenceByInterfaceSnake ( string aName, short anAge, bool poisonous, UInt16 lengthCm ) : System
ReadMe ( TypeVersion typeVersion, byte memberBytes, int &offset, SessionBase session, Page page, bool useOidShort, Schema schema, bool openRefs, List toLoadMembers, int graphDepth, int graphDepthToLoad, bool primitivesOnly ) : void
ShallowCopyTo ( Page page ) : IOptimizedPersistable
Unpersist ( SessionBase session ) : void

Removes an object from the persistent store and makes the object a transient object. It does not automatically make referenced objects unpersisted. Best way to do so is to override this virtual function in your own classes.

Update ( ) : bool
WriteMe ( TypeVersion typeVersion, bool addShapeNumber, System.PageInfo pageInfo, IOptimizedPersistable owner, SessionBase session, bool inFlush ) : byte[]

메소드 상세

CompareTo() 공개 메소드

public CompareTo ( object obj ) : int
obj object
리턴 int

FlushTransients() 공개 메소드

public FlushTransients ( ) : void
리턴 void

InitializeAfterRead() 공개 메소드

This function is called when an object has been read from disk and all data members (fields) have been loaded. Override this to provide your own initializtions of transient data.
public InitializeAfterRead ( SessionBase session ) : void
session SessionBase The active session managing this object
리턴 void

InitializeAfterRecreate() 공개 메소드

This function is called when an object has been read from disk before all data members (fields) have been fully loaded. Override this to provide your own initializtions of transient data.
public InitializeAfterRecreate ( SessionBase session ) : void
session SessionBase The active session managing this object
리턴 void

Persist() 공개 메소드

Persists this object.
public Persist ( Placement place, SessionBase session, bool persistRefs = true, bool disableFlush = false, Queue toPersist = null ) : System.UInt64
place Placement The placement rules to follow when persisting this object
session SessionBase The session managing this object
persistRefs bool If true, objects referenced from this object will also be persisted
disableFlush bool If true, disables possible flushing of updated pages while persisting this object; otherwise pasge flushing may occur
toPersist Queue
리턴 System.UInt64

Persist() 공개 메소드

Persists this object.
public Persist ( SessionBase session, IOptimizedPersistable placeHint, bool persistRefs = true, bool disableFlush = false ) : System.UInt64
session SessionBase The session managing this object
placeHint IOptimizedPersistable Use placement as specified by this object type, see , and
persistRefs bool Persist any referenced object now or delay until flush/commit
disableFlush bool Controlls possible flushing of updated pages. Set to true if you want to prevent updated pages from being flushed to disk and setting such pages to a non updated state.
리턴 System.UInt64

PersistMyReferences() 공개 메소드

public PersistMyReferences ( SessionBase session, bool inFlush ) : void
session SessionBase
inFlush bool
리턴 void

PersistenceByInterfaceSnake() 공개 메소드

public PersistenceByInterfaceSnake ( string aName, short anAge, bool poisonous, UInt16 lengthCm ) : System
aName string
anAge short
poisonous bool
lengthCm System.UInt16
리턴 System

ReadMe() 공개 메소드

public ReadMe ( TypeVersion typeVersion, byte memberBytes, int &offset, SessionBase session, Page page, bool useOidShort, Schema schema, bool openRefs, List toLoadMembers, int graphDepth, int graphDepthToLoad, bool primitivesOnly ) : void
typeVersion TypeVersion
memberBytes byte
offset int
session SessionBase
page Page
useOidShort bool
schema Schema
openRefs bool
toLoadMembers List
graphDepth int
graphDepthToLoad int
primitivesOnly bool
리턴 void

ShallowCopyTo() 공개 메소드

public ShallowCopyTo ( Page page ) : IOptimizedPersistable
page Page
리턴 IOptimizedPersistable

Unpersist() 공개 메소드

Removes an object from the persistent store and makes the object a transient object. It does not automatically make referenced objects unpersisted. Best way to do so is to override this virtual function in your own classes.
public Unpersist ( SessionBase session ) : void
session SessionBase The managing session
리턴 void

Update() 공개 메소드

public Update ( ) : bool
리턴 bool

WriteMe() 공개 메소드

public WriteMe ( TypeVersion typeVersion, bool addShapeNumber, System.PageInfo pageInfo, IOptimizedPersistable owner, SessionBase session, bool inFlush ) : byte[]
typeVersion TypeVersion
addShapeNumber bool
pageInfo System.PageInfo
owner IOptimizedPersistable
session SessionBase
inFlush bool
리턴 byte[]