Method and system for controlling access to objects in a data processing system
AssigneeInternational Business Machines Corporation
InventorMassimo Messina
Life of this patent
Estimating the term…
Abstract
A method and system are provided for controlling the access to objects in an object oriented data processing application, where the objects are being hierarchically structured and either locally available or retrievable from an external unit. Each object has a dependent object counter which indicates the existence or the number of dependent objects associated with that object. When at least one dependent object is not locally available, a dummy object is appended to that object, enabling the object expansion even if the dependent objects of the selected object are not yet locally available in local memory. The objects to be retrieved from the external unit are locked from user access, while access is allowed to the locally available dependent objects.
Claims17
A method for controlling access to objects in a data processing application capable of exchanging data with at least one external unit, the objects being hierarchically structured and each of the objects being either locally available or retrievable from the external unit, said method comprising the steps of:
- associating a counter with each object indicating whether there is at least one object dependent on the object;
- appending a dummy dependent object to each locally available object having at least one object dependent on the locally available object that is retrievable from the external unit;
- responsive to the appending step, adjusting the counter, if necessary to indicate there is at least one object dependent on the object associated with the counter;
- selecting an object;
- checking the counter associated with the selected object;
- if the counter associated with the selected object indicates there is at least one object dependent on the selected object, then making accessible for a command, accessing an object dependent on the selected object, an object dependent on the selected object that is locally available and locking an access to an object dependent on the selected object which is retrievable from the external unit;
- an
- unlocking the access to the object dependent on the selected object that is retrievable from the external unit when all related information has been retrieved from the external unit.
A data processing system for controlling access to objects in a data processing application capable of exchanging data with at least one external unit, the objects being hierarchically structured and each of the objects being either locally available or non-locally available, the non-locally available objects being retrievable from the external unit, said system comprising:
- means for associating with each object a counter indicating whether there is at least one object dependent on the object;
- means for appending a dummy dependent object to each locally available object having at least one non-locally available object dependent on the locally available object;
- responsive to the appending means, means for adjusting the counter, if necessary to indicate there is at least one object dependent on the object associated with the counter;
- means for selecting an object;
- means for checking the counter associated with said selected object;
- means for making accessible for a command involving an object dependent on said selected object, all locally available objects dependent on said selected object;
- means for locking access to all non-locally available objects dependent on said selected object;
- and
- means for unlocking the access to a non-locally available object dependent on said selected object when said non-locally available object has been retrieved from the external unit.
In a data processing system comprising a computer system in communication with at least one external unit, the computer system comprising a memory and a central processing unit (CPU), a method for controlling access to a plurality of objects stored in the data processing system, the objects being arranged in a hierarchy comprising child objects dependent on parent objects, each object being either a locally available object or a non-locally available object retrievable from an external unit, said method comprising the steps performed by the CPU of:
- associated in the memory a counter with each of said objects indicating whether said object has at least one child object dependent on said object;
- appending a dummy object to each locally available object having at least one non-locally available child object;
- responsive to the appending step, adjusting the counter, if necessary to indicate there is at least one child object dependent on said object associated with the counter;
- making accessible for an operation all locally available child objects dependent on a selected object;
- locking access to all non-locally available child objects dependent on said selected object which are to be retrieved from the external unit;
- and
- unlocking access to a non-locally available child object dependent on said selected object when said non-locally available child object has been retrieved from the external unit.
Dependencies are inferred from the claim text.