Oracle Application Development Framework Model and Business Components Java API Reference 10g Release 3 (10.1.3)
B16005-01


oracle.jbo.common
Class VariableValueManagerImpl

java.lang.Object
  extended byoracle.jbo.common.VariableManagerImpl
      extended byoracle.jbo.common.VariableValueManagerImpl

All Implemented Interfaces:
java.io.Serializable, VariableManager, VariableValueManager
Direct Known Subclasses:
ClientVariableValueManager

public class VariableValueManagerImpl
extends VariableManagerImpl
implements VariableValueManager, java.io.Serializable
See Also:
Serialized Form

Constructor Summary
VariableValueManagerImpl()
           
VariableValueManagerImpl(VariableManagerOwner owner, VariableManager[] varMgrParents)
           

 

Method Summary
protected  java.lang.Object accessValue(Variable var)
           
 void activatePassivatedVariables(java.lang.String passivatedString)
          Used internally by the framework to reinstate the passivation image without causing any ripples in either the validation or notifications.
 java.lang.Object clearValue(java.lang.String name)
          Revert the value of the variable back to it's default.
 java.lang.Object clearValue(Variable v)
          Revert the value of the variable back to it's default.
 java.lang.String getPassivatableVariables()
          Ask the ValueManager to build a package to passivate then do the work with the object stream to get the blob as a fairly compact string to return.
 java.lang.Object getVariableValue(java.lang.String name)
           
 java.lang.Object getVariableValue(Variable var)
           
 java.lang.Object getVariableValueRaw(java.lang.String name, boolean useDefaultValue)
           
 java.lang.Object getVariableValueRaw(Variable var, boolean useDefaultValue)
           
 java.lang.Object[] getVariableValues(Variable[] vars)
           
 java.lang.Object[] getVariableValuesRaw(Variable[] vars, boolean useDefaultValue)
           
 void mergeVariableValues(Variable[] vars, java.lang.Object[] varVals)
           
protected  void populateVariableValue(Variable var, java.lang.Object value)
           
 Variable replaceVariable(Variable newVar)
          There is a wrinkle when you replace a variable.
 void setVariableValue(java.lang.String name, java.lang.Object value)
           
 void setVariableValue(Variable var, java.lang.Object value)
           
protected  java.util.Map values()
           

 

Methods inherited from class oracle.jbo.common.VariableManagerImpl
addVariable, addVariable, clearVariables, findDeclaredVariable, findVariable, getDeclaredVariableCount, getDeclaredVariables, getName, getVariableCount, getVariables, getVariablesMap, getVariablesOfKind, getVarMgrOwner, getVarMgrParents, internalCreateVariableInstance, loadFromXML, loadFromXML, lookupVariable, mergeVariables, removeVariable, setVarMgrParents, variableChanged, variableList, variables

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Methods inherited from interface oracle.jbo.VariableManager
addVariable, addVariable, clearVariables, findDeclaredVariable, findVariable, getDeclaredVariableCount, getDeclaredVariables, getName, getVariableCount, getVariables, getVariablesMap, getVariablesOfKind, getVarMgrOwner, getVarMgrParents, lookupVariable, mergeVariables, removeVariable, variableChanged

 

Constructor Detail

VariableValueManagerImpl

public VariableValueManagerImpl()

VariableValueManagerImpl

public VariableValueManagerImpl(VariableManagerOwner owner,
                                VariableManager[] varMgrParents)

Method Detail

values

protected java.util.Map values()

accessValue

protected java.lang.Object accessValue(Variable var)
Overrides:
accessValue in class VariableManagerImpl

getVariableValues

public java.lang.Object[] getVariableValues(Variable[] vars)
Specified by:
getVariableValues in interface VariableValueManager

getVariableValuesRaw

public java.lang.Object[] getVariableValuesRaw(Variable[] vars,
                                               boolean useDefaultValue)
Specified by:
getVariableValuesRaw in interface VariableValueManager

getVariableValue

public java.lang.Object getVariableValue(Variable var)
Specified by:
getVariableValue in interface VariableValueManager

getVariableValue

public java.lang.Object getVariableValue(java.lang.String name)
Specified by:
getVariableValue in interface VariableValueManager

getVariableValueRaw

public java.lang.Object getVariableValueRaw(Variable var,
                                            boolean useDefaultValue)
Specified by:
getVariableValueRaw in interface VariableValueManager

getVariableValueRaw

public java.lang.Object getVariableValueRaw(java.lang.String name,
                                            boolean useDefaultValue)
Specified by:
getVariableValueRaw in interface VariableValueManager

populateVariableValue

protected void populateVariableValue(Variable var,
                                     java.lang.Object value)

setVariableValue

public void setVariableValue(Variable var,
                             java.lang.Object value)
Specified by:
setVariableValue in interface VariableValueManager

setVariableValue

public void setVariableValue(java.lang.String name,
                             java.lang.Object value)
Specified by:
setVariableValue in interface VariableValueManager

mergeVariableValues

public void mergeVariableValues(Variable[] vars,
                                java.lang.Object[] varVals)
Specified by:
mergeVariableValues in interface VariableValueManager

replaceVariable

public Variable replaceVariable(Variable newVar)
There is a wrinkle when you replace a variable. Unless you override the value in our collection they will leak and the replaced variable won't have a value! That's of course because variables are used as the key to the value.
Specified by:
replaceVariable in interface VariableManager
Overrides:
replaceVariable in class VariableManagerImpl

clearValue

public java.lang.Object clearValue(java.lang.String name)
Description copied from interface: VariableValueManager
Revert the value of the variable back to it's default.
Specified by:
clearValue in interface VariableValueManager
Returns:
the existing value (may be null)

clearValue

public java.lang.Object clearValue(Variable v)
Description copied from interface: VariableValueManager
Revert the value of the variable back to it's default.
Specified by:
clearValue in interface VariableValueManager
Returns:
the existing value (may be null)

getPassivatableVariables

public java.lang.String getPassivatableVariables()
Ask the ValueManager to build a package to passivate then do the work with the object stream to get the blob as a fairly compact string to return.
Specified by:
getPassivatableVariables in interface VariableValueManager

activatePassivatedVariables

public void activatePassivatedVariables(java.lang.String passivatedString)
Description copied from interface: VariableValueManager
Used internally by the framework to reinstate the passivation image without causing any ripples in either the validation or notifications.
Specified by:
activatePassivatedVariables in interface VariableValueManager

Oracle Application Development Framework Model and Business Components Java API Reference 10g Release 3 (10.1.3)
B16005-01


Copyright © 1997, 2005, Oracle. All rights reserved.