Examples of atLatestVersion()


Examples of com.opengamma.id.ObjectId.atLatestVersion()

    }
    final YieldCurveDefinition definition = definitions.lastEntry().getValue();
    if (definition == null) {
      throw new DataNotFoundException("Curve definition not found");
    }
    return new YieldCurveDefinitionDocument(objectId.atLatestVersion(), definition);
  }

  @Override
  public synchronized void remove(ObjectIdentifiable objectIdentifiable) {
    ArgumentChecker.notNull(objectIdentifiable, "objectIdentifiable");   
View Full Code Here

Examples of com.opengamma.id.ObjectId.atLatestVersion()

    if (((maxPoints != null) && (Math.abs(maxPoints) < subSeries.size()))) {
      subSeries = maxPoints >= 0 ? subSeries.head(maxPoints) : subSeries.tail(-maxPoints);
    }

    final ManageableHistoricalTimeSeries result = new ManageableHistoricalTimeSeries();
    result.setUniqueId(objectId.atLatestVersion());
    result.setTimeSeries(subSeries);
    result.setVersionInstant(now);
    result.setCorrectionInstant(now);
    return result;
  }
View Full Code Here

Examples of com.opengamma.id.ObjectId.atLatestVersion()

      if (_storePoints.putIfAbsent(objectId, series) != null) {
        throw new IllegalArgumentException("Concurrent modification");
      }
    }
    final Instant now = Instant.now();
    final UniqueId uniqueId = objectId.atLatestVersion();
    changeManager().entityChanged(ChangeType.CHANGED, objectId, null, null, now);
    return uniqueId;
  }

  //-------------------------------------------------------------------------
View Full Code Here

Examples of com.opengamma.id.ObjectId.atLatestVersion()

      if (_storePoints.putIfAbsent(objectId, series) != null) {
        throw new IllegalArgumentException("Concurrent modification");
      }
    }
    final Instant now = Instant.now();
    final UniqueId uniqueId = objectId.atLatestVersion();
    changeManager().entityChanged(ChangeType.CHANGED, objectId, null, null, now);
    return uniqueId;
  }

  //-------------------------------------------------------------------------
View Full Code Here

Examples of com.opengamma.id.ObjectId.atLatestVersion()

    ArgumentChecker.inOrderOrEqual(fromDateInclusive, toDateInclusive, "fromDateInclusive", "toDateInclusive");
    final ObjectId objectId = objectKey.getObjectId();

    LocalDateDoubleTimeSeries existingSeries = _storePoints.get(objectId);
    if (existingSeries == null) {
      return objectId.atLatestVersion();
    }
    LocalDateDoubleTimeSeriesBuilder bld = existingSeries.toBuilder();
    for (LocalDateDoubleEntryIterator it = bld.iterator(); it.hasNext(); ) {
      LocalDate date = it.nextTime();
      if (date.isBefore(fromDateInclusive) == false && date.isAfter(toDateInclusive) == false) {
View Full Code Here

Examples of com.opengamma.id.ObjectId.atLatestVersion()

      }
    }
    if (_storePoints.replace(objectId, existingSeries, bld.build()) == false) {
      throw new IllegalArgumentException("Concurrent modification");
    }
    return objectId.atLatestVersion();
  }

  //-------------------------------------------------------------------------
  private long validateId(ObjectIdentifiable objectId) {
    ArgumentChecker.notNull(objectId, "objectId");
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.