PIACC - Access modes
The access may restrict the accessibility for a database handle or property handle. Usually, the access mode is set when opening the database or property handle.
Enumarators overview
- PI_Read
(1) - Read access
- PI_Update
(2) - Update access
- PI_Write
(3) - Write access
- PI_undefined
(0) - Access mode undefined
Enumerator details
-
PI_Read - Read access
The database or property will be provided for read access. Any write or update access will be denied.
Code: 1
to list -
PI_Update - Update access
Update access provides data for a property handle without locking, i.e. concurrency control is partially disabled. Concurrent updates will be detected and an error 0067 will be written to the error log file in case of concurrency conflict. The first attempt for storing the instance will succeed, further attempts are denied.
In case of concurrency conflicts the instance can be reread (reset()) and the update can be repeated.
For databases the update mode has the same effect as write mode.
Code: 2
to list -
PI_Write - Write access
The database or property handle is opened in write access. For property handles, concurrency control will be enabled(pessimistic locking), i.e. when selecting an instance for Write access (get(), position()) the instance is locked (write lock) until the instance is unselected. The instance can be read via other property handles, but will be provided in read mode, only.
Code: 3
to list