Skip to content

/AWS1/CL_CNTDATATABLELOCKVRS

Contains lock version information for different levels of a data table hierarchy. Used for optimistic locking to prevent concurrent modification conflicts. Each component has its own lock version that changes when that component is modified.

CONSTRUCTOR

IMPORTING

Optional arguments:

iv_datatable TYPE /AWS1/CNTSTRING /AWS1/CNTSTRING

The lock version for the data table itself. Used for optimistic locking and table versioning. Changes with each update to the table's metadata or structure.

iv_attribute TYPE /AWS1/CNTSTRING /AWS1/CNTSTRING

The lock version for a specific attribute. When the ValueLockLevel is ATTRIBUTE, this version changes when any value for the attribute changes. For other lock levels, it only changes when the attribute's properties are directly updated.

iv_primaryvalues TYPE /AWS1/CNTSTRING /AWS1/CNTSTRING

The lock version for a specific set of primary values (record). This includes the default record even if the table does not have any primary attributes. Used for record-level locking.

iv_value TYPE /AWS1/CNTSTRING /AWS1/CNTSTRING

The lock version for a specific value. Changes each time the individual value is modified. Used for the finest-grained locking control.


Queryable Attributes

DataTable

The lock version for the data table itself. Used for optimistic locking and table versioning. Changes with each update to the table's metadata or structure.

Accessible with the following methods

Method Description
GET_DATATABLE() Getter for DATATABLE, with configurable default
ASK_DATATABLE() Getter for DATATABLE w/ exceptions if field has no value
HAS_DATATABLE() Determine if DATATABLE has a value

Attribute

The lock version for a specific attribute. When the ValueLockLevel is ATTRIBUTE, this version changes when any value for the attribute changes. For other lock levels, it only changes when the attribute's properties are directly updated.

Accessible with the following methods

Method Description
GET_ATTRIBUTE() Getter for ATTRIBUTE, with configurable default
ASK_ATTRIBUTE() Getter for ATTRIBUTE w/ exceptions if field has no value
HAS_ATTRIBUTE() Determine if ATTRIBUTE has a value

PrimaryValues

The lock version for a specific set of primary values (record). This includes the default record even if the table does not have any primary attributes. Used for record-level locking.

Accessible with the following methods

Method Description
GET_PRIMARYVALUES() Getter for PRIMARYVALUES, with configurable default
ASK_PRIMARYVALUES() Getter for PRIMARYVALUES w/ exceptions if field has no value
HAS_PRIMARYVALUES() Determine if PRIMARYVALUES has a value

Value

The lock version for a specific value. Changes each time the individual value is modified. Used for the finest-grained locking control.

Accessible with the following methods

Method Description
GET_VALUE() Getter for VALUE, with configurable default
ASK_VALUE() Getter for VALUE w/ exceptions if field has no value
HAS_VALUE() Determine if VALUE has a value