Placement Constructor (SessionBase, IOptimizedPersistable, IOptimizedPersistable, Boolean, UInt32, Boolean) |
Creates a Placement used for choosing a place to persist objects
Namespace:
VelocityDb
Assembly:
VelocityDb (in VelocityDb.dll) Version: 11.1.0.0 (11.1)
Syntax public Placement(
SessionBase session,
IOptimizedPersistable placementProviderObject,
IOptimizedPersistable objectToPlace,
bool persistRefs = false,
uint maxNumberOfDatabases = 4294967295,
bool flushFullPages = true
)
Public Sub New (
session As SessionBase,
placementProviderObject As IOptimizedPersistable,
objectToPlace As IOptimizedPersistable,
Optional persistRefs As Boolean = false,
Optional maxNumberOfDatabases As UInteger = 4294967295,
Optional flushFullPages As Boolean = true
)
public:
Placement(
SessionBase^ session,
IOptimizedPersistable^ placementProviderObject,
IOptimizedPersistable^ objectToPlace,
bool persistRefs = false,
unsigned int maxNumberOfDatabases = 4294967295,
bool flushFullPages = true
)
new :
session : SessionBase *
placementProviderObject : IOptimizedPersistable *
objectToPlace : IOptimizedPersistable *
?persistRefs : bool *
?maxNumberOfDatabases : uint32 *
?flushFullPages : bool
(* Defaults:
let _persistRefs = defaultArg persistRefs false
let _maxNumberOfDatabases = defaultArg maxNumberOfDatabases 4294967295
let _flushFullPages = defaultArg flushFullPages true
*)
-> Placement
Parameters
- session
- Type: VelocityDb.SessionSessionBase
The session being used - placementProviderObject
- Type: VelocityDbIOptimizedPersistable
If persistent, placement uses thid objects db, page and slot as a atarting point for placements - objectToPlace
- Type: VelocityDbIOptimizedPersistable
An object of the type we are going to persist with this placement object - persistRefs (Optional)
- Type: SystemBoolean
Is the placement going to request that referenced objects also gets persisted? - maxNumberOfDatabases (Optional)
- Type: SystemUInt32
Maximum numner of databases to try for placement - flushFullPages (Optional)
- Type: SystemBoolean
Shall a detected full page be flushed if such page is found while persisting an object with this placement
See Also