Package org.eobjects.analyzer.connection

Examples of org.eobjects.analyzer.connection.Datastore


      final AnalysisJobBuilderWindow analysisJobBuilderWindow = injector.getInstance(AnalysisJobBuilderWindow.class);

      if (_options.isSingleDatastoreMode()) {
        DatastoreCatalog datastoreCatalog = configuration.getDatastoreCatalog();
        Datastore singleDatastore = _options.getSingleDatastore(datastoreCatalog);
        if (singleDatastore == null) {
          logger.info("Single datastore mode was enabled, but datastore was null!");
        } else {
          logger.info("Initializing single datastore mode with {}", singleDatastore);
        }
View Full Code Here


    final DCPanel panel = new DCPanel();
    panel.setLayout(new FlowLayout(Alignment.LEFT.getFlowLayoutAlignment(), 0, 4));

    final AnalyzerBeansConfiguration configuration = DCConfiguration.get();
    final DatastoreCatalog datastoreCatalog = configuration.getDatastoreCatalog();
    final Datastore datastore = result.getDatastore(datastoreCatalog);
    final Insets buttonMargin = new Insets(1, 4, 1, 4);
    if (datastore != null && datastore.getName() != null) {
      final Datastore ds = datastoreCatalog.getDatastore(datastore.getName());
      if (!datastore.equals(ds)) {
        final JButton addDatastoreButton = new JButton("Add to datastores",
            imageManager.getImageIcon("images/actions/add.png"));
        addDatastoreButton.setMargin(buttonMargin);
        addDatastoreButton.addActionListener(new ActionListener() {
View Full Code Here

      String datastoreName = synonymCatalog.getDatastoreName();

      _nameTextField.setText(synonymCatalog.getName());
      _datastoreComboBox.setSelectedItem(datastoreName);

      Datastore datastore = _datastoreCatalog.getDatastore(datastoreName);
      if (datastore != null) {
        DataContextProvider dataContextProvider = datastore.getDataContextProvider();
        try {
          SchemaNavigator sn = dataContextProvider.getSchemaNavigator();

          Column masterTermColumn = sn.convertToColumn(synonymCatalog.getMasterTermColumnPath());
          _masterTermColumnComboBox.setSelectedItem(masterTermColumn);
View Full Code Here

    _addDatastoreButton = WidgetFactory.createButton("Save datastore", getDatastoreIconPath());
    _addDatastoreButton.addActionListener(new ActionListener() {
      @Override
      public void actionPerformed(ActionEvent e) {
        final Datastore datastore = createDatastore(getDatastoreName(), getFilename());

        if (_originalDatastore != null) {
          _mutableDatastoreCatalog.removeDatastore(_originalDatastore);
        }
View Full Code Here

    return title;
  }

  private String getDatastoreName() {
    if (_job != null) {
      Datastore datastore = _job.getDatastore();
      if (datastore != null) {
        String datastoreName = datastore.getName();
        if (!StringUtils.isNullOrEmpty(datastoreName)) {
          return datastoreName;
        }
      }
    }
View Full Code Here

    _datastoreComboBox.addActionListener(new ActionListener() {
      @Override
      public void actionPerformed(ActionEvent e) {
        String datastoreName = (String) _datastoreComboBox.getSelectedItem();
        if (datastoreName != null) {
          Datastore datastore = _datastoreCatalog.getDatastore(datastoreName);
          if (datastore != null) {
            _treePanel.removeAll();

            Injector injectorWithDatastore = _injectorBuilder.with(Datastore.class, datastore)
                .with(AnalyzerJobBuilder.class, null).createInjector();
View Full Code Here

        final List<Datastore> datastores = new ArrayList<Datastore>();

        for (JCheckBox checkBox : _checkBoxes) {
          if (checkBox.isSelected()) {
            String datastoreName = checkBox.getText();
            Datastore datastore = _mutableDatastoreCatalog.getDatastore(datastoreName);
            if (datastore == null) {
              throw new IllegalStateException("No such datastore: " + datastoreName);
            }
            datastores.add(datastore);
          }
        }

        final Datastore datastore = new CompositeDatastore(_datastoreNameField.getText(), datastores);

        if (_originalDatastore != null) {
          _mutableDatastoreCatalog.removeDatastore(_originalDatastore);
        }
View Full Code Here

TOP

Related Classes of org.eobjects.analyzer.connection.Datastore

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.