Class PCDataImpl

    • Constructor Detail

      • PCDataImpl

        public PCDataImpl​(java.lang.Object oid,
                          ClassMetaData meta)
      • PCDataImpl

        public PCDataImpl​(java.lang.Object oid,
                          ClassMetaData meta,
                          java.lang.String name)
        Constructor.
    • Method Detail

      • getId

        public java.lang.Object getId()
        Description copied from interface: PCData
        Return the id of this instance.
      • getType

        public java.lang.Class<?> getType()
        Description copied from interface: PCData
        Return the type of this instance.
      • getData

        public java.lang.Object getData​(int index)
        Description copied from interface: PCData
        Return the data stored in the given field index.
      • setData

        public void setData​(int index,
                            java.lang.Object val)
      • clearData

        public void clearData​(int index)
      • getImplData

        public java.lang.Object getImplData()
        Description copied from interface: PCData
        Returns the instance-level impl data, or null if none.
      • setImplData

        public void setImplData​(java.lang.Object val)
        Description copied from interface: PCData
        Sets the stored instance-level impl data.
      • getImplData

        public java.lang.Object getImplData​(int index)
      • setImplData

        public void setImplData​(int index,
                                java.lang.Object val)
      • getIntermediate

        public java.lang.Object getIntermediate​(int index)
      • setIntermediate

        public void setIntermediate​(int index,
                                    java.lang.Object val)
      • isLoaded

        public boolean isLoaded​(int index)
        Description copied from interface: PCData
        Whether the given field index has stored data.
        Specified by:
        isLoaded in interface PCData
        Overrides:
        isLoaded in class AbstractPCData
      • setLoaded

        public void setLoaded​(int index,
                              boolean loaded)
      • getVersion

        public java.lang.Object getVersion()
        Description copied from interface: PCData
        Returns the current version object that this data was loaded from.
      • setVersion

        public void setVersion​(java.lang.Object version)
        Description copied from interface: PCData
        Sets the current version object that this data was loaded from.
      • load

        public void load​(OpenJPAStateManager sm,
                         FetchConfiguration fetch,
                         java.lang.Object context)
        Description copied from interface: PCData
        Loads all fields that are currently stored in the cache into the given state manager.
        Parameters:
        sm - the state manager to load
        fetch - the fetch configuration to use for loading related objects
        context - current context information
      • load

        public void load​(OpenJPAStateManager sm,
                         java.util.BitSet fields,
                         FetchConfiguration fetch,
                         java.lang.Object context)
        Description copied from interface: PCData
        Loads some or all of the marked fields from the cache into the given state manager.
        Parameters:
        sm - the state manager to load
        fields - the fields to load; clear the bits for the fields that are successfully loaded
        fetch - the fetch configuration to use for loading related objects
        context - current context information
      • loadVersion

        protected void loadVersion​(OpenJPAStateManager sm)
        Set version information into the given state manager.
      • loadImplData

        protected void loadImplData​(OpenJPAStateManager sm)
        Set impl data information into the given state manager.
      • loadIntermediate

        protected void loadIntermediate​(OpenJPAStateManager sm,
                                        FieldMetaData fmd)
        Set intermediate information for the given field into the state manager.
      • store

        public void store​(OpenJPAStateManager sm)
        Description copied from interface: PCData
        Store all loaded fields of the state manager.
      • store

        public void store​(OpenJPAStateManager sm,
                          java.util.BitSet fields)
        Description copied from interface: PCData
        Store the given fields from the state manager.
      • storeVersion

        protected void storeVersion​(OpenJPAStateManager sm)
        Store version information from the given state manager.
      • storeImplData

        protected void storeImplData​(OpenJPAStateManager sm)
        Store impl data from the given state manager.
      • getCache

        public java.lang.String getCache()
        Description copied from interface: PCData
        Get the name of the cache where this data is stored.