Class DataClayExecutionObject

    • Field Detail

      • numRefs

        public int numRefs
        Number of references pointing to instance.
    • Constructor Detail

      • DataClayExecutionObject

        public DataClayExecutionObject()
        Basic constructor
      • DataClayExecutionObject

        public DataClayExecutionObject​(ObjectID theobjectID)
        Constructor
        Parameters:
        theobjectID - ID of the object
    • Method Detail

      • initializeObjectAsPersistent

        public void initializeObjectAsPersistent()
        Initialize object with state 'persistent' with proper flags. See same function in DataClayExecutionObject for a different initialization. This design is intended to be clear with object state. Usually, since constructors are calling initializeObjectAsVolatile, this function 'overrides' flags set
        Overrides:
        initializeObjectAsPersistent in class DataClayObject
      • initializeObjectAsVolatile

        public void initializeObjectAsVolatile()
        Initialize object with state 'volatile' with proper flags. Usually, volatile state is created by a stub, app, exec class,.. See same function in DataClayExecutionObject for a different initialization. This design is intended to be clear with object state.
        Overrides:
        initializeObjectAsVolatile in class DataClayObject
      • setAsDirty

        public void setAsDirty()
        Set dirty flag to true
      • isDirty

        public boolean isDirty()
        Get dirty flag
        Returns:
        TRUE if object is dirty. False otherwise.
      • setDirty

        public void setDirty​(boolean thedirtyValue)
        Set dirty flag
        Parameters:
        thedirtyValue - dirty flag value
      • isLoaded

        public final boolean isLoaded()
        Get the DataClayObject::isLoaded
        Returns:
        the isLoaded
      • getOwnerSessionIDforVolatiles

        public SessionID getOwnerSessionIDforVolatiles()
        Returns:
        the ownerSessionIDforVolatiles
      • setOwnerSessionIDforVolatiles

        public void setOwnerSessionIDforVolatiles​(SessionID newownerSessionIDforVolatiles)
        Parameters:
        newownerSessionIDforVolatiles - the ownerSessionIDforVolatiles to set
      • setDataSetID

        public void setDataSetID​(DataSetID newDataSetID)
        Description copied from class: DataClayObject
        Set object DataSetID
        Overrides:
        setDataSetID in class DataClayObject
        Parameters:
        newDataSetID - ID of DataSet this object belongs to
      • getCreationTimeStamp

        public long getCreationTimeStamp()
        Returns:
        the creationTimeStamp
      • setCreationTimeStamp

        public void setCreationTimeStamp​(long thecreationTimeStamp)
        Parameters:
        thecreationTimeStamp - the creationTimeStamp to set
      • setNumRefs

        public void setNumRefs​(int thenumRefs)
        Parameters:
        thenumRefs - the numRefs to set
      • isPendingToRegister

        public boolean isPendingToRegister()
        Returns:
        the pendingToRegister
      • setPendingToRegister

        public void setPendingToRegister​(boolean ispendingToRegister)
        Parameters:
        ispendingToRegister - the pendingToRegister to set
      • addLazyTask

        protected void addLazyTask​(ObjectID objectID,
                                   ImplementationID implID,
                                   MetaClassID classID)
        Add lazy task to be run in DataClay.
        Parameters:
        objectID - ID of the object running the task
        implID - ID of the implementation to run
        classID - ID of the class in which the task is located