Package Framework

Examples of Framework.BooleanData


              cachedRowSet.updateDouble(pColOrdinal, doubleValue.getDoubleValue());
            } else if (pValue instanceof DecimalData) {
              DecimalData value = (DecimalData) pValue;
              cachedRowSet.updateBigDecimal(pColOrdinal, value.getBigDecimal());
            } else if (pValue instanceof BooleanData) {
              BooleanData value = (BooleanData) pValue;
              cachedRowSet.updateBoolean(pColOrdinal, value.getBooleanValue());
            } else if (pValue instanceof DateTimeData) {
              DateTimeData value = (DateTimeData) pValue;
              cachedRowSet.updateDate(pColOrdinal, new Date(value.asDate().getTime()));
            } else if (pValue instanceof BinaryData) {
              BinaryData value = (BinaryData) pValue;
              cachedRowSet.updateBinaryStream(pColOrdinal, new ByteArrayInputStream(value.getValue()), value.getActualSize());
            }
          } catch (SQLException e) {
            UsageException errorVar = new UsageException(e.getMessage(), Framework.Constants.SP_ER_USER, Framework.Constants.SP_ER_PARAMETERERROR, e);
            ErrorMgr.addError(errorVar);
            throw errorVar;
View Full Code Here


    // We're already closed, just discard the result set if any
    resultSet = null;
  }
 
  public boolean execute() throws SQLException {
    final BooleanData result = new BooleanData();
    useRealStatement(new StatementWorker() {
      public void doWork(PreparedStatement ps) throws SQLException {
        result.setValue(ps.execute());
       
        // Now get the results sets and remember them
        populateResults(ps, result.getValue());
      }
    });
    return result.getValue();
  }
View Full Code Here

    });
    return updateCount;
  }

  public boolean execute(final String sql) throws SQLException {
    final BooleanData result = new BooleanData();
    useRealStatement(new StatementWorker() {
      public void doWork(PreparedStatement ps) throws SQLException {
        result.setValue(ps.execute(sql));
       
        // Now get the results sets and remember them
        populateResults(ps, result.getValue());
      }
    });
    return result.getValue();
  }
View Full Code Here

    });
    return result.getValue();
  }

  public boolean execute(final String sql, final int autoGeneratedKeys) throws SQLException {
    final BooleanData result = new BooleanData();
    useRealStatement(new StatementWorker() {
      public void doWork(PreparedStatement ps) throws SQLException {
        result.setValue(ps.execute(sql, autoGeneratedKeys));
       
        // Now get the results sets and remember them
        populateResults(ps, result.getValue());
      }
    });
    return result.getValue();
  }
View Full Code Here

    });
    return result.getValue();
  }

  public boolean execute(final String sql, final int[] columnIndexes) throws SQLException {
    final BooleanData result = new BooleanData();
    useRealStatement(new StatementWorker() {
      public void doWork(PreparedStatement ps) throws SQLException {
        result.setValue(ps.execute(sql, columnIndexes));
       
        // Now get the results sets and remember them
        populateResults(ps, result.getValue());
      }
    });
    return result.getValue();
  }
View Full Code Here

    });
    return result.getValue();
  }

  public boolean execute(final String sql, final String[] columnNames) throws SQLException {
    final BooleanData result = new BooleanData();
    useRealStatement(new StatementWorker() {
      public void doWork(PreparedStatement ps) throws SQLException {
        result.setValue(ps.execute(sql, columnNames));
       
        // Now get the results sets and remember them
        populateResults(ps, result.getValue());
      }
    });
    return result.getValue();
  }
View Full Code Here

        _log.debug("setValue(" + newValue + ") subjectType [" + subjectType.getName() + "]");
        Boolean value = (Boolean) newValue;

        // TF:25/3/08:We need to instantiate the proper subclass, otherwise domain classes do not work. JCT-522
        try {
      BooleanData instance = (BooleanData)subjectType.newInstance();
      instance.setValue(value);
      subject.setValue(instance);
    }
    catch (Exception e) {
          if (subjectType.equals(BooleanNullable.class)) {
              subject.setValue(new BooleanNullable(value));
          }
          else {
              subject.setValue(new BooleanData(value));
          }
    }
    }
View Full Code Here

            }

            // CraigM:02/12/2008 - Handle BooleanData and sub classes of BooleanData
            else if (BooleanData.class.isAssignableFrom(valueType)) {
              if (value instanceof Boolean) {
                BooleanData result;
          try {
            result = (BooleanData)valueType.newInstance();
                  result.setBooleanValue((Boolean)value);
          } catch (InstantiationException e) {
            result = new BooleanData((Boolean)value);
          } catch (IllegalAccessException e) {
            result = new BooleanData((Boolean)value);
          }
          return result;
              }
            }
        }
View Full Code Here

    // ------------
    public PreferencesDesc() {
        // Explicitly call the superclass constructor to prevent the implicit call
        super();

        this.setConfirmCancel(new BooleanData(true, BooleanData.qq_Resolver.cVALUE));
        this.setConfirmClear(new BooleanData(true, BooleanData.qq_Resolver.cVALUE));
        this.setConfirmClose(new BooleanData(true, BooleanData.qq_Resolver.cVALUE));
        this.setConfirmDelete(new BooleanData(true, BooleanData.qq_Resolver.cVALUE));
        this.setConfirmMode(new BooleanData(true, BooleanData.qq_Resolver.cVALUE));
        this.setConfirmRevert(new BooleanData(true, BooleanData.qq_Resolver.cVALUE));

        this.setMaxRecords(new IntegerData(100));

    }
View Full Code Here

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

TOP

Related Classes of Framework.BooleanData

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.