Package org.eobjects.analyzer.reference

Examples of org.eobjects.analyzer.reference.DatastoreDictionary


      return dictionary.getDescription();
    }
    if (dictionary instanceof TextFileDictionary) {
      return ((TextFileDictionary) dictionary).getFilename();
    } else if (dictionary instanceof DatastoreDictionary) {
      DatastoreDictionary datastoreDictionary = (DatastoreDictionary) dictionary;
      return datastoreDictionary.getDatastoreName() + ": " + datastoreDictionary.getQualifiedColumnName();
    } else if (dictionary instanceof SimpleDictionary) {
      Collection<String> values = dictionary.getValues().getValues();
      StringBuilder sb = new StringBuilder();
      for (String value : values) {
        if (sb.length() > 0) {
View Full Code Here


            "images/model/dictionary.png");
        createDictionaryItem.addActionListener(new ActionListener() {
          @Override
          public void actionPerformed(ActionEvent e) {
            String datastoreName = _analysisJobBuilder.getDataContextProvider().getDatastore().getName();
            DatastoreDictionary dictionary = new DatastoreDictionary(column.getName(), datastoreName, column
                .getQualifiedLabel());

            Injector injector = _injectorBuilder.with(DatastoreDictionary.class, dictionary).createInjector();

            DatastoreDictionaryDialog dialog = injector.getInstance(DatastoreDictionaryDialog.class);
View Full Code Here

        if (StringUtils.isNullOrEmpty(columnPath)) {
          JOptionPane.showMessageDialog(DatastoreDictionaryDialog.this, "Please select a lookup column");
          return;
        }

        DatastoreDictionary dictionary = new DatastoreDictionary(name, datastoreName, columnPath);
        if (_originalDictionary != null) {
          _referenceDataCatalog.removeDictionary(_originalDictionary);
        }
        _referenceDataCatalog.addDictionary(dictionary);
        DatastoreDictionaryDialog.this.dispose();
View Full Code Here

TOP

Related Classes of org.eobjects.analyzer.reference.DatastoreDictionary

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.