Class SessionAttributeState


  • public class SessionAttributeState
    extends Object
    Author:
    lwhite, Rajiv Mordani SessionAttributeState represents the state (with regards to persistence activity) of each attribute in a session. Invariants: 1. newly added attribute (not yet persistent) not persistent not dirty not deleted 2. modified already existing session persistent dirty not deleted 3. already existing session to be deleted persistent dirty or not dirty deleted
    • Constructor Detail

      • SessionAttributeState

        public SessionAttributeState()
        Creates a new instance of SessionAttributeState
    • Method Detail

      • createPersistentAttribute

        public static SessionAttributeState createPersistentAttribute()
        create an instance of SessionAttributeState representing a persistent attribute
      • isDirty

        public boolean isDirty()
        return isDirty
      • setDirty

        public void setDirty​(boolean value)
        set isDirty
        Parameters:
        value -
      • isPersistent

        public boolean isPersistent()
        return isPersistent
      • setPersistent

        public void setPersistent​(boolean value)
        set persistentFlag
        Parameters:
        value -
      • isDeleted

        public boolean isDeleted()
        return isDeleted
      • setDeleted

        public void setDeleted​(boolean value)
        set deletedFlag
        Parameters:
        value -