Examples of SecuritiesMarketPrice


Examples of project.gluebooster.applications.assetManagement.fields.SecuritiesMarketPrice

    BoerseSecuritiesInformationManager manager = new BoerseSecuritiesInformationManager();
  
   
    SecuritiesInformation info = new SecuritiesInformation();
    info.setPriceNotation(new BigDecimal(1));
    SecuritiesMarketPrice marketPrice = new SecuritiesMarketPrice();
    SecuritiesCurrentMarketPrice currentMarketPrice = new SecuritiesCurrentMarketPrice();
    ExchangeRate euro = new ExchangeRate();
    euro.setRate(new BigDecimal(1));
    euro.setSourceCurrency("EUR");
    euro.setTargetCurrency("EUR");
View Full Code Here

Examples of project.gluebooster.applications.assetManagement.fields.SecuritiesMarketPrice

    FondswebSecuritiesInformationManager manager = new FondswebSecuritiesInformationManager();
  
   
    SecuritiesInformation info = new SecuritiesInformation();
    info.setPriceNotation(new BigDecimal(1));
    SecuritiesMarketPrice marketPrice = new SecuritiesMarketPrice();
    SecuritiesCurrentMarketPrice currentMarketPrice = new SecuritiesCurrentMarketPrice();
    ExchangeRate euro = new ExchangeRate();
    euro.setRate(new BigDecimal(1));
    euro.setSourceCurrency("EUR");
    euro.setTargetCurrency("EUR");
View Full Code Here

Examples of project.gluebooster.applications.assetManagement.fields.SecuritiesMarketPrice

                {//5 days are up to date
                   upToDate = true;
                }
            }
           
            SecuritiesMarketPrice price = new SecuritiesMarketPrice();
            price.setIsin(isin);
           
             if (doCancelUpdateSecuritiesInformation)
               break;
            
             boolean result = false;
             int i = 0;
             if (upToDate && entry.getAssetname() != null)
               getLog().debug("up to date: " + entry.getAsset() + " (" + isin+ ")");
             else
             {
               while (i < managers.length)
               {
                  try
                  {
                    result = managers[i].updateInformation(entry, price, currentPrice, exchangeRateManager, userMessageManager);
                  }
                  catch (Exception ex)
                  {
                    ex.printStackTrace();
                  }
                  if (result)
                    i = managers.length;
                  else
                    i++;
               }
               if (result)
               {
                  Session session = getSessionFactory().getCurrentSession();
                  getLog().debug("begin transaction");
   
                  session.beginTransaction();
   
                  session.saveOrUpdate(entry);
                  if (price.getPrice() != null)
                  {
                    getLog().debug("saving price: ", price.getId()," ", price.getIsin()," ", price.getPrice()," ", price.getCurrency()," ", price.getValueDate().getTime());
                    session.save(price);
                    getLog().debug("saved price ");
                 
                    if (currentPrice.getPrice() != null)
                    {
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.