oracle.adf.view.faces.bean.util
Class StateUtils

java.lang.Object
  |
  +--oracle.adf.view.faces.bean.util.StateUtils

public class StateUtils
extends java.lang.Object

Utilities for handling state persistance.


Constructor Summary
StateUtils()
           
 
Method Summary
static PropertyKey restoreKey(FacesBean.Type type, java.lang.Object value)
          Restores a persisted PropertyKey.
static java.lang.Object restoreList(javax.faces.context.FacesContext context, java.lang.Object savedValue)
          Restores a List whose elements may implement StateHolder.
static void restoreState(PropertyMap map, javax.faces.context.FacesContext context, FacesBean.Type type, java.lang.Object state, boolean useStateHolder)
          Generic (unoptimized) version of PropertyMap state restoring.
static java.lang.Object restoreStateHolder(javax.faces.context.FacesContext context, java.lang.Object savedValue)
          Restores an object that was saved using saveStateHolder()
static java.lang.Object saveKey(PropertyKey key)
          Persists a property key.
static java.lang.Object saveList(javax.faces.context.FacesContext context, java.lang.Object value)
          Saves a List whose elements may implement StateHolder.
static java.lang.Object saveState(PropertyMap map, javax.faces.context.FacesContext context, boolean useStateHolder)
          Generic (unoptimized) version of PropertyMap state saving.
static java.lang.Object saveStateHolder(javax.faces.context.FacesContext context, java.lang.Object value)
          Saves an object that may implement StateHolder.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StateUtils

public StateUtils()
Method Detail

saveKey

public static java.lang.Object saveKey(PropertyKey key)
Persists a property key.


restoreKey

public static PropertyKey restoreKey(FacesBean.Type type,
                                     java.lang.Object value)
Restores a persisted PropertyKey.


saveState

public static java.lang.Object saveState(PropertyMap map,
                                         javax.faces.context.FacesContext context,
                                         boolean useStateHolder)
Generic (unoptimized) version of PropertyMap state saving.


restoreState

public static void restoreState(PropertyMap map,
                                javax.faces.context.FacesContext context,
                                FacesBean.Type type,
                                java.lang.Object state,
                                boolean useStateHolder)
Generic (unoptimized) version of PropertyMap state restoring.


saveStateHolder

public static java.lang.Object saveStateHolder(javax.faces.context.FacesContext context,
                                               java.lang.Object value)
Saves an object that may implement StateHolder.


restoreStateHolder

public static java.lang.Object restoreStateHolder(javax.faces.context.FacesContext context,
                                                  java.lang.Object savedValue)
Restores an object that was saved using saveStateHolder()


saveList

public static java.lang.Object saveList(javax.faces.context.FacesContext context,
                                        java.lang.Object value)
Saves a List whose elements may implement StateHolder.


restoreList

public static java.lang.Object restoreList(javax.faces.context.FacesContext context,
                                           java.lang.Object savedValue)
Restores a List whose elements may implement StateHolder.



Copyright © 2003-2004 Oracle Corporation. All Rights Reserved.