Examples of DataStore


Examples of org.eobjects.analyzer.connection.Datastore

    // run a small job
    final AnalyzerBeansConfiguration conf = new JaxbConfigurationReader().create(new File(DataCleanerHome.get(),
        "conf.xml"));
    final AnalysisJobBuilder ajb = new AnalysisJobBuilder(conf);
    Datastore ds = conf.getDatastoreCatalog().getDatastore("orderdb");
    DataContextProvider dcp = ds.getDataContextProvider();
    Table table = dcp.getSchemaNavigator().convertToTable("PUBLIC.CUSTOMERS");
    ajb.setDatastore(ds);
    ajb.addSourceColumns(table.getLiteralColumns());
    ajb.addRowProcessingAnalyzer(PatternFinderAnalyzer.class).addInputColumns(ajb.getSourceColumns())
        .setName("Ungrouped pattern finders");
View Full Code Here

Examples of org.eobjects.analyzer.connection.Datastore

    // run a small job
    AnalyzerBeansConfiguration conf = new JaxbConfigurationReader().create(new File(DataCleanerHome.get(), "conf.xml"));
    AnalysisRunner runner = new AnalysisRunnerImpl(conf);
    AnalysisJobBuilder ajb = new AnalysisJobBuilder(conf);

    Datastore ds = conf.getDatastoreCatalog().getDatastore("orderdb");
    ajb.setDatastore(ds);

    DataContextProvider dcp = ds.getDataContextProvider();
    Table table = dcp.getSchemaNavigator().convertToTable("PUBLIC.ORDERS");

    ajb.addSourceColumn(table.getColumnByName("ORDERDATE"));
    ajb.addSourceColumn(table.getColumnByName("SHIPPEDDATE"));
    ajb.addSourceColumn(table.getColumnByName("CUSTOMERNUMBER"));
View Full Code Here

Examples of org.eobjects.analyzer.connection.Datastore

    final String datastoreName = _metadata.getDatastoreName();

    _centerPanel.add(new JLabel("<html><b>Datastore:</b></html>"));
    final JLabel datastoreLabel = new JLabel(datastoreName);

    Datastore datastore = _configuration.getDatastoreCatalog().getDatastore(datastoreName);
    if (datastore == null) {
      _openJobButton.setEnabled(false);
      datastoreLabel.setIcon(imageManager.getImageIcon("images/status/warning.png", IconUtils.ICON_SIZE_SMALL));
      datastoreLabel.setToolTipText("No such datastore: " + datastoreName);
    } else {
View Full Code Here

Examples of org.eobjects.analyzer.connection.Datastore

      @Override
      public void actionPerformed(ActionEvent e) {
        int i = 0;
        for (DatastorePanel datastorePanel : _datastorePanels) {
          if (datastorePanel.isSelected()) {
            Datastore datastore = datastorePanel.getDatastore();

            // open the connection here, to make any connection
            // issues apparent early
            DataContextProvider dataContextProvider = datastore.getDataContextProvider();
            dataContextProvider.getDataContext().getSchemaNames();
            _analysisJobBuilderWindow.setDatastore(datastore);
            dataContextProvider.close();
            return;
          }
View Full Code Here

Examples of org.eobjects.analyzer.connection.Datastore

    _listPanel.add(headerPanel);

    String[] datastoreNames = _datastoreCatalog.getDatastoreNames();
    for (int i = 0; i < datastoreNames.length; i++) {
      final Datastore datastore = _datastoreCatalog.getDatastore(datastoreNames[i]);
      DatastorePanel datastorePanel = new DatastorePanel(datastore, _datastoreCatalog, this,
          _analysisJobBuilderWindow.getWindowContext(), _injectorBuilder);
      _datastorePanels.add(datastorePanel);
      _listPanel.add(datastorePanel);
    }
View Full Code Here

Examples of org.eobjects.analyzer.connection.Datastore

    LookAndFeelManager.getInstance().init();

    // run a small job
    AnalyzerBeansConfiguration conf = new JaxbConfigurationReader().create(new File(DataCleanerHome.get(), "conf.xml"));
    final AnalysisJobBuilder ajb = new AnalysisJobBuilder(conf);
    Datastore ds = conf.getDatastoreCatalog().getDatastore("orderdb");
    DataContextProvider dcp = ds.getDataContextProvider();
    Table table = dcp.getSchemaNavigator().convertToTable("PUBLIC.CUSTOMERS");
    ajb.setDatastore(ds);
    ajb.addSourceColumns(table.getNumberColumns());
    ajb.addRowProcessingAnalyzer(NumberAnalyzer.class).addInputColumns(ajb.getSourceColumns());
View Full Code Here

Examples of org.eobjects.analyzer.connection.Datastore

    setLayout(new BorderLayout());

    DatastoreCatalog datastoreCatalog = configuration.getDatastoreCatalog();
    String[] datastoreNames = datastoreCatalog.getDatastoreNames();
    for (String name : datastoreNames) {
      Datastore datastore = datastoreCatalog.getDatastore(name);
      if (datastore instanceof JdbcDatastore) {
        String driverClass = ((JdbcDatastore) datastore).getDriverClass();
        if (driverClass != null) {
          _usedDriverClassNames.add(driverClass);
        }
View Full Code Here

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

Examples of org.eobjects.analyzer.connection.Datastore

    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

Examples of org.eobjects.analyzer.connection.Datastore

      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
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.