Package org.eobjects.datacleaner.user

Examples of org.eobjects.datacleaner.user.MutableDatastoreCatalog


  private static final Logger logger = LoggerFactory.getLogger(DatastoreCreationDelegateImpl.class);

  @Override
  public void createDatastore(Datastore datastore) {
    final AnalyzerBeansConfiguration configuration = DCConfiguration.get();
    final MutableDatastoreCatalog datastoreCatalog = (MutableDatastoreCatalog) configuration.getDatastoreCatalog();
    final String name = datastore.getName();
    synchronized (datastoreCatalog) {
      if (datastoreCatalog.containsDatastore(name)) {
        logger.warn("Datastore '{}' already exists. No new datastore will be created!", name);
      } else {
        datastoreCatalog.addDatastore(datastore);
      }
    }
  }
View Full Code Here


            imageManager.getImageIcon("images/actions/add.png"));
        addDatastoreButton.setMargin(buttonMargin);
        addDatastoreButton.addActionListener(new ActionListener() {
          @Override
          public void actionPerformed(ActionEvent e) {
            MutableDatastoreCatalog mutableDatastoreCatalog = (MutableDatastoreCatalog) datastoreCatalog;
            mutableDatastoreCatalog.addDatastore(datastore);
            addDatastoreButton.setEnabled(false);
          }
        });
        panel.add(addDatastoreButton);
        panel.add(Box.createHorizontalStrut(4));
View Full Code Here

TOP

Related Classes of org.eobjects.datacleaner.user.MutableDatastoreCatalog

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.