Package com.opengamma.id

Examples of com.opengamma.id.MutableUniqueIdentifiable


    }
    if (uniqueId.getVersion() != null) {
      uniqueId = UniqueId.of(uniqueId.getObjectId(), null);
    }
    if (security instanceof MutableUniqueIdentifiable) {
      MutableUniqueIdentifiable mutableSecurity = (MutableUniqueIdentifiable) security;
      mutableSecurity.setUniqueId(uniqueId);
    }
   
    try (Timer.Context context = _putTimer.time()) {
      byte[] securityData = SecurityFudgeUtil.convertToFudge(getFudgeContext(), security);
View Full Code Here


    ArgumentChecker.isTrue(clazz.isAssignableFrom(object.getClass()), "Unable to assign " + object.getClass() + " to " + clazz);
   
    UniqueId uniqueId = UniqueId.of(IDENTIFIER_SCHEME_DEFAULT, GUIDGenerator.generate().toString());
   
    if (object instanceof MutableUniqueIdentifiable) {
      MutableUniqueIdentifiable identifiable = (MutableUniqueIdentifiable) object;
      identifiable.setUniqueId(uniqueId);
    }
   
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    FudgeObjectWriter objectWriter = getFudgeContext().createObjectWriter(baos);
    objectWriter.write(object);
View Full Code Here

TOP

Related Classes of com.opengamma.id.MutableUniqueIdentifiable

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.