Examples of Currency


Examples of Entities.Currency

        logger.log(Level.INFO, "AccommodationCost : {0}", AccommodationCost);


        logger.log(Level.INFO, "fCostRef.getCurrency( : {0}", fCostRef.getCurrency());
        if (fCostRef.getCurrency() == null) {
            Currency aCurrencyRef;

            //private Currency aCurrencySelection;
            aCurrencyRef = daoDataLookUp.getCurrency("ZAR");
            logger.log(Level.INFO, "aCurrencyRef : {0}", aCurrencyRef.toString());
            setCurrency(aCurrencyRef.getCurrencycode3());
        } else {
            setCurrency(fCostRef.getCurrency());
        }
        logger.log(Level.INFO, "Currency : {0}", Currency);
View Full Code Here

Examples of Entities.Currency

        logger.log(Level.INFO, "AccommodationCost : {0}", AccommodationCost);


        logger.log(Level.INFO, "fCostRef.getCurrency( : {0}", fCostRef.getCurrency());
        if (fCostRef.getCurrency() == null) {
            Currency aCurrencyRef;

            //private Currency aCurrencySelection;
            aCurrencyRef = daoDataLookUp.getCurrency("ZAR");
            logger.log(Level.INFO, "aCurrencyRef : {0}", aCurrencyRef.toString());
            setCurrency(aCurrencyRef.getCurrencycode3());
        } else {
            setCurrency(fCostRef.getCurrency());
        }
        logger.log(Level.INFO, "Currency : {0}", Currency);
View Full Code Here

Examples of com.drighetto.easymock.Currency

    // created above)
    EasyMock.expect(exchangeRateMock.getRate("USD", "EUR")).andReturn(1.5);
    // Initialize the mock object before to use it
    EasyMock.replay(exchangeRateMock);
    // Define a reference object to valid the test
    Currency cRefObj = new Currency(3.75, "EUR");
    // Define a test object
    Currency cTestObj = new Currency(2.50, "USD");
    // Run the test using the mock as exchange rate provider
    Currency cTestResult = cTestObj.toEuros(exchangeRateMock);
    // Make a assertion to valid the test
    Assert.assertEquals(cRefObj, cTestResult);
  }
View Full Code Here

Examples of com.gcrm.domain.Currency

            createChangeLog(changeLogs, entityName, recordID,
                    "entity.account.label", oldAccountName, newAccountName,
                    loginUser);

            String oldCurrencyName = "";
            Currency oldCurrency = originalOpportunity.getCurrency();
            if (oldCurrency != null) {
                oldCurrencyName = CommonUtil.fromNullToEmpty(oldCurrency
                        .getName());
            }
            String newCurrencyName = "";
            Currency newCurrency = opportunity.getCurrency();
            if (newCurrency != null) {
                newCurrencyName = CommonUtil.fromNullToEmpty(newCurrency
                        .getName());
            }
            createChangeLog(changeLogs, entityName, recordID,
                    "entity.currency.label", oldCurrencyName, newCurrencyName,
                    loginUser);
View Full Code Here

Examples of com.ibm.icu.util.Currency

        fr.setSignificantDigit(sigDigit);
        if(fr.getSignificantDigit() != en.getSignificantDigit()) {
            errln("ERROR: get/set SignificantDigit failed");
        }

        Currency currency = Currency.getInstance("USD");
        fr.setCurrency(currency);
        if (!fr.getCurrency().equals(currency)){
            errln("ERROR: get/set Currency failed");
        }
           
View Full Code Here

Examples of com.jacob.com.Currency

        super.putCharArray(arg0);
    }
    public void putCurrency(long arg0) {
        Null = false;
        if (useRef())
            super.putCurrencyRef(new Currency(arg0));
        else
            super.putCurrency(new Currency(arg0));
    }
View Full Code Here

Examples of com.jada.jpa.entity.Currency

        Query query = em.createQuery(sql);
        query.setParameter("siteId", siteId);
        query.setParameter("currencyId", currencyId);
        List<?> list = query.getResultList();
        if (list.size() > 0) {
          Currency currency = (Currency) list.iterator().next();
          currencyCode = currency.getCurrencyCode();
        }

        return currencyCode;
    }
View Full Code Here

Examples of com.jbidwatcher.util.Currency

  }

  public static MultiSnipe loadFromXML(XMLElement curElement) {
    String identifier = curElement.getProperty("ID");
    String bgColor = curElement.getProperty("COLOR");
    Currency defaultSnipe = Currency.getCurrency(curElement.getProperty("DEFAULT"));
    boolean subtractShipping = curElement.getProperty("SUBTRACTSHIPPING", "false").equals("true");

    MultiSnipe ms = MultiSnipe.findFirstBy("identifier", identifier);
    if(ms == null) {
      ms = new MultiSnipe(bgColor, defaultSnipe, Long.parseLong(identifier), subtractShipping);
View Full Code Here

Examples of com.jpoweredcart.common.entity.localisation.Currency

    final Map<String, Currency> dataMap = new HashMap<String, Currency>();
    getJdbcOperations().query(sql, new Object[]{Status.ENABLED}, new RowCallbackHandler(){
     
      @Override
      public void processRow(ResultSet rs) throws SQLException {
        Currency currency = new Currency();
        currency.setId(rs.getInt("currency_id"));
        currency.setCode(rs.getString("code"));
        currency.setTitle(rs.getString("title"));
        currency.setSymbolLeft(rs.getString("symbol_left"));
        currency.setSymbolRight(rs.getString("symbol_right"));
        try{
          currency.setDecimalPlace(rs.getInt("decimal_place"));
        }catch(Exception e){
          e.printStackTrace();
        }
        currency.setValue(rs.getBigDecimal("value"));
        if(currency.getValue().intValue()==1){
          CurrencyServiceImpl.this.defaultCurrencyCode = currency.getCode();
        }
        dataMap.put(currency.getCode(), currency);
        if(autoUpdate){
          long lastModified = rs.getTimestamp("date_modified").getTime();
          long current = new Date().getTime();
          long diff = ((current-lastModified)/(3600*1000));
          if(diff>whenDiff){
 
View Full Code Here

Examples of com.opengamma.util.money.Currency

  private ValueProperties.Builder createCurrencyValueProperties(final ComputationTarget target) {
    final Security security = target.getPosition().getSecurity();
    if (FXUtils.isFXSecurity(security)) {
      return createValueProperties(); //TODO what to do in this case?
    }
    final Currency ccy = FinancialSecurityUtils.getCurrency(security);
    if (ccy == null) {
      return createValueProperties(); //TODO a problem when using externally-provided securities
    }
    final ValueProperties.Builder properties = createValueProperties();
    properties.with(ValuePropertyNames.CURRENCY, ccy.getCode());
    return properties;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.