IOptimizedPersistablePersist Method (SessionBase, IOptimizedPersistable, Boolean, Boolean) |
Persists this object.
Namespace:
VelocityDb
Assembly:
VelocityDb (in VelocityDb.dll) Version: 11.1.0.0 (11.1)
Syntax ulong Persist(
SessionBase session,
IOptimizedPersistable placeHint,
bool persistRefs = true,
bool disableFlush = false
)
Function Persist (
session As SessionBase,
placeHint As IOptimizedPersistable,
Optional persistRefs As Boolean = true,
Optional disableFlush As Boolean = false
) As ULong
unsigned long long Persist(
SessionBase^ session,
IOptimizedPersistable^ placeHint,
bool persistRefs = true,
bool disableFlush = false
)
abstract Persist :
session : SessionBase *
placeHint : IOptimizedPersistable *
?persistRefs : bool *
?disableFlush : bool
(* Defaults:
let _persistRefs = defaultArg persistRefs true
let _disableFlush = defaultArg disableFlush false
*)
-> uint64
Parameters
- session
- Type: VelocityDb.SessionSessionBase
The session managing this object - placeHint
- Type: VelocityDbIOptimizedPersistable
Use placement as specified by this object type, see PlacementDatabaseNumber, ObjectsPerPage and PagesPerDatabase - persistRefs (Optional)
- Type: SystemBoolean
Persist any referenced object now or delay until flush/commit - disableFlush (Optional)
- Type: SystemBoolean
Controls 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.
Return Value
Type:
UInt64The object id of the persistent object
See Also