Examples of search()


Examples of com.nexirius.framework.jdbc.DatabaseTableMapping.search()

    }

    public static void load(ItemArrayModel array) throws Exception {
        DatabaseTableMapping m = JdbcConnectionHandler.instance().getDatabaseTableMapping(ItemModel.class.getName());

        m.search(null, new ItemModel(), array);
    }

    public static void saveItem(ItemModel model) throws Exception {
        DatabaseTableMapping m = JdbcConnectionHandler.instance().getDatabaseTableMapping(ItemModel.class.getName());

Examples of com.novell.ldap.LDAPConnection.search()

        // Pull all connections
        try {

            // Find all guac configs for this user
            LDAPSearchResults results = ldapConnection.search(
                    config_base_dn,
                    LDAPConnection.SCOPE_SUB,
                    "(&(objectClass=guacConfigGroup)(member=" + escapeLDAPSearchFilter(user_dn) + "))",
                    null,
                    false

Examples of com.openbravo.pos.customers.JCustomerFinder.search()

    }//GEN-LAST:event_m_jListActionPerformed

    private void btnCustomerActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnCustomerActionPerformed

        JCustomerFinder finder = JCustomerFinder.getCustomerFinder(this, dlCustomers);
        finder.search(m_oTicket.getCustomer());
        finder.setVisible(true);
       
        try {
            m_oTicket.setCustomer(finder.getSelectedCustomer() == null
                    ? null

Examples of com.opengamma.master.config.ConfigMaster.search()

    if (master == null) {
      throw new IllegalStateException("Execution context does not contain a " + OpenGammaExecutionContext.CONFIG_MASTER_NAME);
    }
    final ConfigSearchRequest<ViewDefinition> request = new ConfigSearchRequest<ViewDefinition>(ViewDefinition.class);
    request.setName(name);
    final ConfigSearchResult<ViewDefinition> result = master.search(request);
    if (result.getDocuments() != null) {
      for (final ConfigDocument document : result.getDocuments()) {
        if (viewDefinition.equals(document.getValue().getValue())) {
          // Found a matching one
          s_logger.debug("Using previous view definition {}", document.getUniqueId());

Examples of com.opengamma.master.exchange.ExchangeMaster.search()

   */
  private void storeExchange(final ManageableExchange exchange) {
    final ExchangeMaster master = getToolContext().getExchangeMaster();
    final ExchangeSearchRequest request = new ExchangeSearchRequest();
    request.setName(exchange.getName());
    final ExchangeSearchResult result = master.search(request);
    if (result.getFirstDocument() != null) {
      //System.out.println("Updating " + exchange.getName());
      final ExchangeDocument document = result.getFirstDocument();
      document.setExchange(exchange);
      master.update(document);

Examples of com.opengamma.master.historicaltimeseries.HistoricalTimeSeriesMaster.search()

        final HistoricalTimeSeriesInfoSearchRequest searchRequest = new HistoricalTimeSeriesInfoSearchRequest();
        searchRequest.addExternalId(centreValue.getKey().getFirst());
        searchRequest.setDataField(centreValue.getKey().getSecond());
        searchRequest.setDataProvider(SimulatedHistoricalData.OG_DATA_PROVIDER);
        searchRequest.setDataSource(SimulatedHistoricalData.OG_DATA_SOURCE);
        final HistoricalTimeSeriesInfoSearchResult searchResult = htsMaster.search(searchRequest);
        if (searchResult.getDocuments().isEmpty()) {
          s_logger.warn("No time series for {}/{}", centreValue.getKey().getFirst(), centreValue.getKey().getSecond());
        } else {
          for (HistoricalTimeSeriesInfoDocument infoDoc : searchResult.getDocuments()) {
            s_logger.debug("Updating {}", infoDoc.getUniqueId());

Examples of com.opengamma.master.holiday.HolidayMaster.search()

        request.setCurrency(calendar.getCurrency());
        break;
      default:
        throw new UnsupportedOperationException(calendar.getType().toString());
    }
    final HolidaySearchResult result = master.search(request);
    if (result.getFirstDocument() != null) {
      //System.out.println("Updating " + calendar.getType());
      final HolidayDocument document = result.getFirstDocument();
      document.setHoliday(calendar);
      master.update(document);

Examples of com.opengamma.master.holiday.impl.InMemoryHolidayMaster.search()

  public static NonVersionedRedisHolidaySource createPopulated(NonVersionedRedisHolidaySource redisHolidaySource) {
    ArgumentChecker.notNull(redisHolidaySource, "redisHolidaySource");
    final InMemoryHolidayMaster inMemoryHolidayMaster = new InMemoryHolidayMaster();
    createPopulated(inMemoryHolidayMaster);
   
    HolidaySearchResult holidaySearchResult = inMemoryHolidayMaster.search(new HolidaySearchRequest());
    List<ManageableHoliday> holidays = holidaySearchResult.getHolidays();
   
    for (ManageableHoliday manageableHoliday : holidays) {
      SimpleHoliday simpleHoliday = new SimpleHoliday();
      simpleHoliday.setCurrency(manageableHoliday.getCurrency());

Examples of com.opengamma.master.marketdatasnapshot.MarketDataSnapshotMaster.search()

  private static MarketDataSnapshotListResource createResource(MarketDataSnapshotDocument... docs) {
    MarketDataSnapshotMaster snapshotMaster = mock(MarketDataSnapshotMaster.class);
    List<MarketDataSnapshotDocument> documents = Arrays.asList(docs);
    MarketDataSnapshotSearchResult result = new MarketDataSnapshotSearchResult(documents);
    when(snapshotMaster.search(any(MarketDataSnapshotSearchRequest.class))).thenReturn(result);
    return new MarketDataSnapshotListResource(snapshotMaster);
  }

  @Test
  public void getJson() throws JSONException {

Examples of com.opengamma.master.portfolio.PortfolioMaster.search()

  private void storePortfolio(final ManageablePortfolio portfolio) {
    final PortfolioMaster portfolioMaster = getToolContext().getPortfolioMaster();

    final PortfolioSearchRequest req = new PortfolioSearchRequest();
    req.setName(portfolio.getName());
    final PortfolioSearchResult result = portfolioMaster.search(req);
    switch (result.getDocuments().size()) {
      case 0:
        s_logger.info("Creating new portfolio");
        portfolioMaster.add(new PortfolioDocument(portfolio));
        break;
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.