org.glassfish.web.ha.session.management
Class SessionAttributeState

java.lang.Object
  extended by org.glassfish.web.ha.session.management.SessionAttributeState

public class SessionAttributeState
extends java.lang.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 Summary
SessionAttributeState()
          Creates a new instance of SessionAttributeState
 
Method Summary
static SessionAttributeState createPersistentAttribute()
          create an instance of SessionAttributeState representing a persistent attribute
 boolean isDeleted()
          return isDeleted
 boolean isDirty()
          return isDirty
 boolean isPersistent()
          return isPersistent
 void setDeleted(boolean value)
          set deletedFlag
 void setDirty(boolean value)
          set isDirty
 void setPersistent(boolean value)
          set persistentFlag
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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 -

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2012 GlassFish Community. All Rights Reserved.