Package com.opengamma.elsql

Examples of com.opengamma.elsql.ElSqlConfig


  }

  @Test
  public void test_update_rollback() {
    DbHistoricalTimeSeriesMaster w = new DbHistoricalTimeSeriesMaster(_htsMaster.getDbConnector());
    w.setElSqlBundle(ElSqlBundle.of(new ElSqlConfig("TestRollback"), DbHistoricalTimeSeriesMaster.class));
    final HistoricalTimeSeriesInfoDocument base = _htsMaster.get(UniqueId.of("DbHts", "101", "0"));
    ManageableHistoricalTimeSeriesInfo info = new ManageableHistoricalTimeSeriesInfo();
    info.setUniqueId(UniqueId.of("DbHts", "101", "0"));
    info.setName("Updated");
    info.setDataField("DF");
View Full Code Here


  }

  @Test
  public void test_update_rollback() {
    DbConfigWorker w = new DbConfigWorker(_cfgMaster.getDbConnector(), _cfgMaster.getUniqueIdScheme());
    w.setElSqlBundle(ElSqlBundle.of(new ElSqlConfig("TestRollback"), DbConfigMaster.class));
    final ConfigDocument base = _cfgMaster.get(UniqueId.of("DbCfg", "101", "0"));
    UniqueId uniqueId = UniqueId.of("DbCfg", "101", "0");
    ConfigItem<ExternalId> input = ConfigItem.of(ExternalId.of("A", "B"));
    ConfigDocument doc = new ConfigDocument(input);
    doc.setUniqueId(uniqueId);
View Full Code Here

  }

  @Test
  public void test_update_rollback() {
    DbSecurityMaster w = new DbSecurityMaster(_secMaster.getDbConnector());
    w.setElSqlBundle(ElSqlBundle.of(new ElSqlConfig("TestRollback"), DbSecurityMaster.class));
    final SecurityDocument base = _secMaster.get(UniqueId.of("DbSec", "101", "0"));
    UniqueId uniqueId = UniqueId.of("DbSec", "101", "0");
    ManageableSecurity security = new ManageableSecurity(uniqueId, "Name", "Type", ExternalIdBundle.of("A", "B"));
    SecurityDocument input = new SecurityDocument(security);
    try {
View Full Code Here

  }

  @Test
  public void test_update_rollback() {
    DbHolidayMaster w = new DbHolidayMaster(_holMaster.getDbConnector());
    w.setElSqlBundle(ElSqlBundle.of(new ElSqlConfig("TestRollback"), DbHolidayMaster.class));
    final HolidayDocument base = _holMaster.get(UniqueId.of("DbHol", "101", "0"));
    UniqueId uniqueId = UniqueId.of("DbHol", "101", "0");
    ManageableHoliday holiday = new ManageableHoliday(Currency.USD, Arrays.asList(LocalDate.of(2010, 6, 9)));
    holiday.setUniqueId(uniqueId);
    HolidayDocument input = new HolidayDocument(holiday);
View Full Code Here

  }

  @Test
  public void test_update_rollback() {
    DbExchangeMaster w = new DbExchangeMaster(_exgMaster.getDbConnector());
    w.setElSqlBundle(ElSqlBundle.of(new ElSqlConfig("TestRollback"), DbExchangeMaster.class));
    final ExchangeDocument base = _exgMaster.get(UniqueId.of("DbExg", "101", "0"));
    UniqueId uniqueId = UniqueId.of("DbExg", "101", "0");
    ManageableExchange exchange = new ManageableExchange(BUNDLE, "Test", REGION, null);
    exchange.setUniqueId(uniqueId);
    ExchangeDocument input = new ExchangeDocument(exchange);
View Full Code Here

  }

  @Test
  public void test_update_rollback() {
    DbPositionMaster w = new DbPositionMaster(_posMaster.getDbConnector());
    w.setElSqlBundle(ElSqlBundle.of(new ElSqlConfig("TestRollback"), DbPositionMaster.class));
    final PositionDocument base = _posMaster.get(UniqueId.of("DbPos", "121", "0"));
    ManageablePosition pos = new ManageablePosition(BigDecimal.TEN, ExternalId.of("A", "B"));
    pos.setUniqueId(UniqueId.of("DbPos", "121", "0"));
    PositionDocument input = new PositionDocument(pos);
    try {
View Full Code Here

TOP

Related Classes of com.opengamma.elsql.ElSqlConfig

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.