Package com.opengamma.masterdb.security.hibernate

Examples of com.opengamma.masterdb.security.hibernate.DayCountBean


  public CashSecurityBean createBean(final OperationContext context, HibernateSecurityMasterDao secMasterSession, CashSecurity security) {
    CurrencyBean currencyBean = secMasterSession.getOrCreateCurrencyBean(security.getCurrency().getCode());
    ExternalIdBean regionIdentifier = externalIdToExternalIdBean(security.getRegionId());
    ZonedDateTimeBean startBean = dateTimeWithZoneToZonedDateTimeBean(security.getStart());
    ZonedDateTimeBean maturityBean = dateTimeWithZoneToZonedDateTimeBean(security.getMaturity());
    DayCountBean dayCountBean = secMasterSession.getOrCreateDayCountBean(security.getDayCount().getConventionName());
    final CashSecurityBean bean = new CashSecurityBean();
    bean.setCurrency(currencyBean);
    bean.setRegion(regionIdentifier);
    bean.setStart(startBean);
    bean.setMaturity(maturityBean);
View Full Code Here

TOP

Related Classes of com.opengamma.masterdb.security.hibernate.DayCountBean

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.