Package Framework

Examples of Framework.DataValue


    }

    public void setAttribute (Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException {
        Instrument instrument = this.findInstrument(attribute.getName());
        if (instrument instanceof ConfigValueInst) {
            DataValue theAttribute = null;
            if (attribute.getValue() instanceof java.lang.Integer) {
                theAttribute = new IntegerData((Integer)attribute.getValue());
            }
            if (attribute.getValue() instanceof java.lang.Double) {
                theAttribute = new DoubleData((Double)attribute.getValue());
View Full Code Here


    // ----------------------
    // Accessors and Mutators
    // ----------------------
    public void setElementKey(DataValue elementKey) {
        DataValue oldValue = this.elementKey;
        this.elementKey = elementKey;
        this.qq_Listeners.firePropertyChange("elementKey", oldValue, this.elementKey);
    }
View Full Code Here

    public DataValue getElementKey() {
        return this.elementKey;
    }

    public void setElementValue(DataValue elementValue) {
        DataValue oldValue = this.elementValue;
        this.elementValue = elementValue;
        this.qq_Listeners.firePropertyChange("elementValue", oldValue, this.elementValue);
    }
View Full Code Here

   * @return
   */
  public String getString()
  {
    Object anObj = pageContext.getAttribute(this.getVariable(), RESULT_SET_SCOPE);
    DataValue dv;
    String aString = null;
    if (this.getVariable().equalsIgnoreCase("FORTE"))
    {
      if (this.getUrl() != null)
      {
        aString = ((HttpServletResponse) pageContext.getResponse()).encodeURL(this.getUrl());
      }
      else
      if (anObj != null && anObj instanceof ResultSet)
      {
        dv = ((ResultSet) anObj).findMember(this.getItem());
        aString = dv.toString();
      }
    }
    else
    {
      if (anObj != null && anObj instanceof IterateResultSet)
      {
        IterateResultSet anIterateSet = (IterateResultSet) anObj;
        dv = anIterateSet.getResultSet().findMember(anIterateSet.getMemberName(), anIterateSet.getIndex(), this.getItem());
        aString = dv.toString();
      }
      else
      if (anObj != null && anObj instanceof ResultSet)
      {
        dv = ((ResultSet) anObj).findMember(this.getItem());
        aString = dv.toString();
      }
    }
    return aString;
  }
View Full Code Here

          // for example)
          //this.updateInstrument(instrument);
        }
        // TF:6/6/07: if updateData() has not been called on the instrument, we won't know it's type
        // so we are going to have to assume string
        DataValue value = ((ConfigValueInst)instrument).getData();
        if (value != null) {
          String frameworkName = value.getClass().getName();
          if (frameworkName.equalsIgnoreCase("Framework.IntegerData")) {
            typeName = "java.lang.Integer";
          }
          else if (frameworkName.equalsIgnoreCase("Framework.DoubleData")) {
            typeName = "java.lang.Double";
View Full Code Here

    public Object getAttribute(String name) throws AttributeNotFoundException, MBeanException, ReflectionException {
        Instrument instrument = this.findInstrument(name);
        Object result = null;
        if (instrument instanceof ConfigValueInst) {
            DataValue value = ((ConfigValueInst)instrument).getData();
            result = value.toString();
        }
        if (instrument instanceof CounterInst) {
            result = ((CounterInst)instrument).getIntegerValue();
        }
        if (instrument instanceof AverageInst) {
View Full Code Here

    }

    public void setAttribute (Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException {
        Instrument instrument = this.findInstrument(attribute.getName());
        if (instrument instanceof ConfigValueInst) {
            DataValue theAttribute = null;
            if (attribute.getValue() instanceof java.lang.Integer) {
                theAttribute = new IntegerData((Integer)attribute.getValue());
            }
            if (attribute.getValue() instanceof java.lang.Double) {
                theAttribute = new DoubleData((Double)attribute.getValue());
View Full Code Here

            if (source.getUpdateQuery() == null) {
                BusinessQuery updateQuery = source.newQuery();
                updateQuery.setOriginalClass(CloneHelper.clone(source, false));
                source.setUpdateQuery(updateQuery);
                DataValue val = null;
                for (int i = 1; i <= source.getUpdateQuery().getNumAttrs(); i++) {
                    val = source.getAttr(i);
                    if (val != null) {
                        source.getUpdateQuery().getOriginalClass().setAttr(i, CloneHelper.clone(val, true));
                    }
View Full Code Here

     * <p>
     * @param query Type: BusinessQuery
     * @param source Type: BusinessClass
     */
    private void addConstraints(BusinessQuery query, BusinessClass source) {
        DataValue value = null;

        for (int j = query.getNumKeyAttrs()+1; j <= query.getNumAttrs(); j++) {

            value = source.getAttr(j);

View Full Code Here

        BusinessClass foreignClass = null;
        Array_Of_BusinessClass<BusinessClass> foreignClasses = null;
        int mult = 0;
        Array_Of_BusinessClass<BusinessClass> referenceClasses = null;
        DataValue value = null;

        mult = referenceQuery.getForeignAttrMult(attr);

        if ((mult&BusinessQuery.ASSOC_AGGREGATION) == 0) {
            return;
View Full Code Here

TOP

Related Classes of Framework.DataValue

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.