Class SessionAttributeState
- java.lang.Object
-
- org.glassfish.web.ha.session.management.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 Summary
Constructors Constructor Description SessionAttributeState()
Creates a new instance of SessionAttributeState
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SessionAttributeState
createPersistentAttribute()
create an instance of SessionAttributeState representing a persistent attributeboolean
isDeleted()
return isDeletedboolean
isDirty()
return isDirtyboolean
isPersistent()
return isPersistentvoid
setDeleted(boolean value)
set deletedFlagvoid
setDirty(boolean value)
set isDirtyvoid
setPersistent(boolean value)
set persistentFlagString
toString()
-
-
-
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
-
-
-