Interface Storable

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String REVISION  
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.Object clone()  
      java.lang.String getAttribute​(java.lang.Object attribute)
      Returns a persistent representation of an attribute from its name
      java.util.Map<java.lang.String,​java.lang.String> getAttributes()
      Storable attributes getter
      java.util.Date getCdate()
      Get the value of cdate.
      java.util.Date getDdate()
      Returns the delete date of this storable.
      java.lang.String getId()
      Get the value of id.
      java.util.Date getMdate()
      Get the value of mdate.
      Store getStore()
      Get the value of store.
      void resetInternalCaches()
      Reset internal caches (like isStoredCache for example)
      java.lang.String resolveAtt​(java.lang.Object attVal)
      This method must be called if the type was not resolved by
      the getAttribute method
      java.lang.Object resolveVal​(java.lang.Class<?> classType, java.lang.String persistentValue)
      This method must be called if the type was not resolved by the getValue method
      void setAttributes​(StorableLogEntry sle)
      Storable attributes setter
      void setCdate​(java.util.Date v)
      Set the value of cdate.
      void setDdate​(java.util.Date ddate)
      Sets the delete date of this storable.
      void setId​(java.lang.String v)
      Set the value of id.
      void setMdate​(java.util.Date v)
      Set the value of mdate.
      void setStore​(Store v)
      Set the value of store.
    • Method Detail

      • setAttributes

        void setAttributes​(StorableLogEntry sle)
        Storable attributes setter
        Parameters:
        sle - the StorableLogEntry that contains the attributes to set:
        Key=AttName(String) Value=persistent representation(String)
      • getAttributes

        java.util.Map<java.lang.String,​java.lang.String> getAttributes()
        Storable attributes getter
        Returns:
        the attributes of the storable with the mapping:
        Key=Name(String) Value=persistent representation(String)
      • getAttribute

        java.lang.String getAttribute​(java.lang.Object attribute)
        Returns a persistent representation of an attribute from its name
        Parameters:
        attribute - he attribute
        Returns:
        the persistent representation of the attribute
      • resolveAtt

        java.lang.String resolveAtt​(java.lang.Object attVal)
        This method must be called if the type was not resolved by
        the getAttribute method
        Parameters:
        attVal - the value of the attribute
        Returns:
        the persistent representation of the attribute
      • resolveVal

        java.lang.Object resolveVal​(java.lang.Class<?> classType,
                                    java.lang.String persistentValue)
        This method must be called if the type was not resolved by the getValue method
        Parameters:
        classType - the class type
        persistentValue - the persistent value
        Returns:
        the object from its class type and persistent value
      • clone

        java.lang.Object clone()
      • getId

        java.lang.String getId()
        Get the value of id.
        Returns:
        Value of id.
      • setId

        void setId​(java.lang.String v)
        Set the value of id.
        Parameters:
        v - Value to assign to id.
      • getStore

        Store getStore()
        Get the value of store.
        Returns:
        Value of store.
      • setStore

        void setStore​(Store v)
        Set the value of store.
        Parameters:
        v - Value to assign to store.
      • getCdate

        java.util.Date getCdate()
        Get the value of cdate.
        Returns:
        Value of cdate.
      • setCdate

        void setCdate​(java.util.Date v)
        Set the value of cdate.
        Parameters:
        v - Value to assign to cdate.
      • getMdate

        java.util.Date getMdate()
        Get the value of mdate.
        Returns:
        Value of mdate.
      • setMdate

        void setMdate​(java.util.Date v)
        Set the value of mdate.
        Parameters:
        v - Value to assign to mdate.
      • getDdate

        java.util.Date getDdate()
        Returns the delete date of this storable.
        Returns:
        the delete date of this storable.
        Since:
        jcms-5.5.0
      • setDdate

        void setDdate​(java.util.Date ddate)
        Sets the delete date of this storable.
        Parameters:
        ddate -
        Since:
        jcms-5.5.0
      • resetInternalCaches

        void resetInternalCaches()
        Reset internal caches (like isStoredCache for example)