Package net.helipilot50.stocktrade.framework

Examples of net.helipilot50.stocktrade.framework.IntegerData$qq_Resolver


        peakMembersInUse.setInstrumentID(systemID + PEAK_MEMBERS_IN_USE);
        this.addInstrument(peakMembersInUse);

        maxSize = new ConfigValueInst();
        maxSize.getName().setValue("MaxSize");
        maxSize.updateData(new IntegerData(10));
        maxSize.setIsReadOnly(false);
        maxSize.setInstrumentID(systemID + MAX_SIZE);
        this.addInstrument(maxSize);

        minIdle = new ConfigValueInst();
        minIdle.getName().setValue("MinIdle");
        minIdle.updateData(new IntegerData(1));
        minIdle.setIsReadOnly(false);
        minIdle.setInstrumentID(systemID + MAX_SIZE);
        this.addInstrument(minIdle);
    }
View Full Code Here


            if (active > peakMembersInUse.Value){
                peakMembersInUse.increment(active);
            }
            break;
            case MAX_SIZE:
            maxSize.updateData(new IntegerData(pool.getMaxSize()));
            break;
            case MIN_IDEL:
            minIdle.updateData(new IntegerData(pool.getMinIdle()));
            break;
        }
        super.updateInstrument(inst);
    }
View Full Code Here

    public void dumpStats() {
        String title1 = null;
        TextData title2 = null;
        TextNullable title3 = null;
        int numCustomers = 0;
        IntegerData numStocks = null;
        double totalValue = 0;

        DBConnectionManager dBConnection = DBConnectionManager.getInstance("DBConnection");

        // -- =============== Original SQL ===============
View Full Code Here

      return new Integer(element.getIntegerValue());
    }
   
    else if (IntegerData.class.isAssignableFrom(editorColumnClass)) {
      try {
        IntegerData newValue = (IntegerData)editorColumnClass.newInstance();
        newValue.setValue(element.getIntegerValue());
        return newValue;
      }
      catch (Exception e) {
        // Shouldn't get here, let's keep the compiler happy
        return new IntegerData(element.getIntegerValue());
      }
    }
    else if (TextData.class.isAssignableFrom(editorColumnClass)) {
      // CraigM:25/05/2008 - Not sure what all this is, but it stops users from entering text that is not in the list
//      try {
View Full Code Here

            int num;
            if (value instanceof Number) {
              num = ((Number)value).intValue();
            }
            else {
              IntegerData anInt = (IntegerData)value;

              if (anInt.isNull()) {
                // If it is null, then clear out the radio list.  CraigM: 08/08/2007
                this.radioList.clearSelection();

                return this.radioList;
              }
              else {
                num = anInt.intValue();
              }
            }
            this.radioList.setSelectedIndex(num-1);
          }
          // must be s string or textdata
View Full Code Here

            if (o == null || resultSet.wasNull()) {
                throw new UsageException(
                        "getTextData(String) could not handle column " + pColumnID + ". Result =" + o,
                        SP_ER_PARAMETERERROR, SP_ER_USER, UsageException.qq_Resolver.cMESSAGE_REASONCODE_SEVERITY);
            }
            IntegerData id = new IntegerData(resultSet.getInt(pColumnID));
            return id;
        } catch (SQLException e) {
          throw processException(e);
        }
    }
View Full Code Here

            if (o == null || resultSet.wasNull()) {
                throw new UsageException(
                        "getIntegerData(String) could not handle column " + pColumnName + ". Result =" + o,
                        SP_ER_PARAMETERERROR, SP_ER_USER, UsageException.qq_Resolver.cMESSAGE_REASONCODE_SEVERITY);
            }
            IntegerData id = new IntegerData(resultSet.getInt(pColumnName));
            return id;
        } catch (SQLException e) {
          throw processException(e);
        }
    }
View Full Code Here

                int num;
                if (value instanceof Number) {
                    num = ((Number)value).intValue();
                }
                else {
                    IntegerData anInt = (IntegerData)value;
                    if (anInt.isNull()) {
                        return aComboBox;
                    }
                    else {
                        num = anInt.intValue();
                    }
                }
                aComboBox.setSelectedItem(null);
                int limit = aComboBox.getModel().getSize();             // KM changed this.comboBox to aComboBox
                for (int i = 0; i < limit; i++) {
View Full Code Here

                boolean found = false;
                if (value instanceof Number) {
                    num = ((Number)value).intValue();
                }
                else {
                    IntegerData anInt = (IntegerData)value;
                    if (anInt.isNull()) {
                      // TF:02/11/2009:If we're null, we need to set the item to N/A (the default string)
                      this.fifCloned.getEditor().setItem(anInt.toString());
                      found = true;
                    }
                    else {
                        num = anInt.intValue();
                    }
                }
//               this.fif.setSelectedItem(null);
                if (!found) {
                  int limit = this.fifCloned.getModel().getSize();
View Full Code Here

        if (Integer.class.equals(this.mapType)) {
            return new Integer(element.getIntegerValue());
        }
        else if (IntegerData.class.isAssignableFrom(mapType)) {
            try {
                IntegerData newValue = (IntegerData)mapType.newInstance();
                newValue.setValue(element.getIntegerValue());
                return newValue;
            }
            catch (Exception e) {
                // Shouldn't get here, let's keep the compiler happy
                return new IntegerData(element.getIntegerValue());
            }
        }
        else if (TextData.class.isAssignableFrom(mapType))
            try {
                TextData newValue = (TextData)mapType.newInstance();
                newValue.setValue(element.getTextValue());
                return newValue;
            }
            catch (Exception e) {
                // Shouldn't get here, let's keep the compiler happy
                return element == null ? null : element.getTextValue();
View Full Code Here

TOP

Related Classes of net.helipilot50.stocktrade.framework.IntegerData$qq_Resolver

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.