Package com.opengamma.id

Examples of com.opengamma.id.UniqueId


      final ComputationTargetType computationTargetType = ComputationTargetType.parse(rs.getString("target_type"));
      final String valueRequirementsSyntheticForm = rs.getString("synthetic_form");
      final String targetTypeIdScheme = rs.getString("target_type_id_scheme");
      final String targetTypeIdValue = rs.getString("target_type_id_value");
      final String targetTypeIdVersion = rs.getString("target_type_id_version");
      final UniqueId targetId = UniqueId.of(targetTypeIdScheme, targetTypeIdValue, targetTypeIdVersion);
      final ValueProperties valueProperties = RiskValueProperties.parseJson(valueRequirementsSyntheticForm);
      final String configurationName = rs.getString("config_name");
      final ValueSpecification valueSpecification = ValueSpecification.of(valueName, computationTargetType, targetId, valueProperties);
      final ComputedValueResult computedValue = new ComputedValueResult(valueSpecification, value, AggregatedExecutionLog.EMPTY);
      final ViewResultEntry viewResultEntry = new ViewResultEntry(configurationName, computedValue);
View Full Code Here


    String brokerURL = getProperty("brokerURL", line, configProperties, configPropertyFile);

    Instant valuationTime = getValuationTime(line, configProperties, configPropertyFile);
    LocalDate observationDate = getObservationDate(line, configProperties, configPropertyFile);

    UniqueId viewDefinitionUniqueId = getViewDefinitionUniqueId(line, configProperties);

    URI vpBase;
    try {
      vpBase = new URI(engineURI);
    } catch (URISyntaxException ex) {
View Full Code Here

    _secMaster.get((UniqueId)null);
  }

  @Test(expectedExceptions = DataNotFoundException.class)
  public void test_getSecurity_versioned_notFoundId() {
    UniqueId uniqueId = UniqueId.of("DbSec", "0", "0");
    _secMaster.get(uniqueId);
  }
View Full Code Here

    _secMaster.get(uniqueId);
  }

  @Test(expectedExceptions = DataNotFoundException.class)
  public void test_getSecurity_versioned_notFoundVersion() {
    UniqueId uniqueId = UniqueId.of("DbSec", "101", "1");
    _secMaster.get(uniqueId);
  }
View Full Code Here

    _secMaster.get(uniqueId);
  }

  @Test
  public void test_getSecurity_versioned_oneSecurityKey() {
    UniqueId uniqueId = UniqueId.of("DbSec", "101", "0");
    SecurityDocument test = _secMaster.get(uniqueId);
    assert101(test);
  }
View Full Code Here

    assert101(test);
  }

  @Test
  public void test_getSecurity_versioned_twoSecurityKeys() {
    UniqueId uniqueId = UniqueId.of("DbSec", "102", "0");
    SecurityDocument test = _secMaster.get(uniqueId);
    assert102(test);
  }
View Full Code Here

    assert102(test);
  }

  @Test
  public void test_getSecurity_versioned_notLatest() {
    UniqueId uniqueId = UniqueId.of("DbSec", "201", "0");
    SecurityDocument test = _secMaster.get(uniqueId);
    assert201(test);
  }
View Full Code Here

    assert201(test);
  }

  @Test
  public void test_getSecurity_versioned_latest() {
    UniqueId uniqueId = UniqueId.of("DbSec", "201", "1");
    SecurityDocument test = _secMaster.get(uniqueId);
    assert202(test);
  }
View Full Code Here

  }

  //-------------------------------------------------------------------------
  @Test(expectedExceptions = DataNotFoundException.class)
  public void test_getSecurity_unversioned_notFound() {
    UniqueId uniqueId = UniqueId.of("DbSec", "0");
    _secMaster.get(uniqueId);
  }
View Full Code Here

    _secMaster.get(uniqueId);
  }

  @Test
  public void test_getSecurity_unversioned() {
    UniqueId oid = UniqueId.of("DbSec", "201");
    SecurityDocument test = _secMaster.get(oid);
    assert202(test);
  }
View Full Code Here

TOP

Related Classes of com.opengamma.id.UniqueId

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.