Click or drag to resize

Page Class

Each Database consist of a number of variable sized pages. A page can be compressed and may be encrypted and contains one or more objects. Page compression is controlled by the DatabaseLocation of the Database containing a page. Each page has a PageInfo that provides info about a page and can be updated to turn on/off compression and encryption for a specific page.
Inheritance Hierarchy
SystemObject
  VelocityDbPage

Namespace:  VelocityDb
Assembly:  VelocityDb (in VelocityDb.dll) Version: 10.2.0.0 (10.2)
Syntax
public class Page : IComparable<Page>, IEnumerable<IOptimizedPersistable>, 
	IEnumerable, IDisposable

The Page type exposes the following members.

Constructors
  NameDescription
Public methodPage
Internal use and usage in VelocityDbExteanions project
Top
Properties
  NameDescription
Public propertyByteCount
Public propertyDatabase
The Database of this Page.
Public propertyId
The Oid (encoded as UInt64) of this page
Public propertyIsUpdated
Is this Page updated?
Public propertyOffset
Current page version starts at this offset in conatining Database.
Public propertyOid
The Oid of this page
Public propertyOnlyStub
Is this Page fully read into memory or just the PageInfo?
Public propertyPageInfo
Gets the PageInfo for this Page
Public propertyPageNumber
The page number of this Page in the containing Database
Public propertyShortId
The OidShort (encoded as UInt32) of this page
Top
Methods
  NameDescription
Public methodClearCashedObjects
Clears all objects cached on the page but does not clear objects cached by weak references.
Public methodCompareTo
Compares Pages by PageNumber
Public methodDeleteObject
Use this as an alternative to Unpersist(SessionBase) or when using the interface class IOptimizedPersistable
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Public methodFinishUpCsvImport
Schema page requires special handling in Import from CSV files
Public methodGetEnumerator
Enumerates all objects on this Page
Public methodObjectsLazyLoaded
Enumerates all objects on this Page. Object graph loaded up to specified max depth.
Public methodPageShortIds
Enumerates all objects short ids on this Page
Public methodSlot
Retrieves an object from persistent storage
Public methodStatic memberStringToByteArray
Converts a string into an UTF8 encoded byte array
Public methodToString
Returns a string that represents the current object.
(Overrides ObjectToString.)
Public methodUnpersistObject
Use this as an alternative to Unpersist(SessionBase) or when using the interface class IOptimizedPersistable
Top
See Also