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 SessionAttributeStatecreatePersistentAttribute()create an instance of SessionAttributeState representing a persistent attributebooleanisDeleted()return isDeletedbooleanisDirty()return isDirtybooleanisPersistent()return isPersistentvoidsetDeleted(boolean value)set deletedFlagvoidsetDirty(boolean value)set isDirtyvoidsetPersistent(boolean value)set persistentFlagStringtoString()
-
-
-
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-
-
-