it.eng.spagobi.engines.qbe
Class FormState

java.lang.Object
  extended by it.eng.spagobi.utilities.engines.EngineAnalysisState
      extended by it.eng.spagobi.engines.qbe.FormState
All Implemented Interfaces:
it.eng.spagobi.utilities.engines.IEngineAnalysisState

public class FormState
extends it.eng.spagobi.utilities.engines.EngineAnalysisState

Author:
Zerbetto Davide (davide.zerbetto@eng.it)

Field Summary
static java.lang.String CURRENT_VERSION
           
static java.lang.String FORM_STATE
           
static java.lang.String FORM_STATE_VALUES
           
static java.lang.String ID_NAME_MAP
           
static java.lang.String NAME_ID_MAP
           
 
Constructor Summary
FormState()
           
 
Method Summary
 org.json.JSONObject getConf()
           
 org.json.JSONObject getFormStateValues()
           
 java.util.Map<java.lang.String,java.lang.String> getIdNameMap()
           
 java.util.Map<java.lang.String,java.lang.String> getNameIdMap()
           
 void load(byte[] rowData)
           
 void setConf(org.json.JSONObject json)
           
 void setFormStateValues(org.json.JSONObject json)
           
 void setIdNameMap()
          Used for save the form values: For keep the values of the form if the form state changes (id est: if the fields of the form change ) we need to find the relation between the new fields and the ones saved in the sub object.
 byte[] store()
           
 
Methods inherited from class it.eng.spagobi.utilities.engines.EngineAnalysisState
containsProperty, getProperty, propertyNameSet, setProperty, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CURRENT_VERSION

public static final java.lang.String CURRENT_VERSION
See Also:
Constant Field Values

ID_NAME_MAP

public static final java.lang.String ID_NAME_MAP
See Also:
Constant Field Values

NAME_ID_MAP

public static final java.lang.String NAME_ID_MAP
See Also:
Constant Field Values

FORM_STATE

public static final java.lang.String FORM_STATE
See Also:
Constant Field Values

FORM_STATE_VALUES

public static final java.lang.String FORM_STATE_VALUES
See Also:
Constant Field Values
Constructor Detail

FormState

public FormState()
Method Detail

load

public void load(byte[] rowData)
          throws it.eng.spagobi.utilities.engines.SpagoBIEngineException
Throws:
it.eng.spagobi.utilities.engines.SpagoBIEngineException

store

public byte[] store()
             throws it.eng.spagobi.utilities.engines.SpagoBIEngineException
Throws:
it.eng.spagobi.utilities.engines.SpagoBIEngineException

getConf

public org.json.JSONObject getConf()

setConf

public void setConf(org.json.JSONObject json)

getFormStateValues

public org.json.JSONObject getFormStateValues()

setFormStateValues

public void setFormStateValues(org.json.JSONObject json)

getIdNameMap

public java.util.Map<java.lang.String,java.lang.String> getIdNameMap()

getNameIdMap

public java.util.Map<java.lang.String,java.lang.String> getNameIdMap()

setIdNameMap

public void setIdNameMap()
Used for save the form values: For keep the values of the form if the form state changes (id est: if the fields of the form change ) we need to find the relation between the new fields and the ones saved in the sub object. This relation is the name of the field. This method maps the id of the field and the name.. In this way we save in the subobject the name of the field