Tabnine Logo
DatastoreDictionary.getDatastoreName
Code IndexAdd Tabnine to your IDE (free)

How to use
getDatastoreName
method
in
org.datacleaner.reference.DatastoreDictionary

Best Java code snippets using org.datacleaner.reference.DatastoreDictionary.getDatastoreName (Showing top 4 results out of 315)

origin: datacleaner/DataCleaner

if (dictionary instanceof DatastoreDictionary) {
  datastores.add(configuration.getDatastoreCatalog()
      .getDatastore(((DatastoreDictionary) dictionary).getDatastoreName()));
origin: datacleaner/DataCleaner

private static String getDescription(final Dictionary dictionary) {
  if (dictionary.getDescription() != null) {
    return dictionary.getDescription();
  }
  if (dictionary instanceof TextFileDictionary) {
    return ((TextFileDictionary) dictionary).getFilename();
  } else if (dictionary instanceof DatastoreDictionary) {
    final DatastoreDictionary datastoreDictionary = (DatastoreDictionary) dictionary;
    return datastoreDictionary.getDatastoreName() + ": " + datastoreDictionary.getQualifiedColumnName();
  } else if (dictionary instanceof SimpleDictionary) {
    final SimpleDictionary simpleDictionary = (SimpleDictionary) dictionary;
    final Collection<String> values = simpleDictionary.getValueSet();
    final StringBuilder sb = new StringBuilder();
    for (final String value : values) {
      if (sb.length() > 0) {
        sb.append(",");
      }
      sb.append(value);
      if (sb.length() > 20) {
        break;
      }
    }
    return sb.toString();
  }
  return "";
}
origin: datacleaner/DataCleaner

private Element toElement(final DatastoreDictionary dictionary) {
  final Element elem = getDocument().createElement("datastore-dictionary");
  elem.setAttribute("name", dictionary.getName());
  if (!Strings.isNullOrEmpty(dictionary.getDescription())) {
    elem.setAttribute("description", dictionary.getDescription());
  }
  appendElement(elem, "datastore-name", dictionary.getDatastoreName());
  appendElement(elem, "column-path", dictionary.getQualifiedColumnName());
  appendElement(elem, "load-into-memory", dictionary.isLoadIntoMemory());
  return elem;
}
origin: datacleaner/DataCleaner

_nameTextField.setText(dictionary.getName());
_columnTextField.setText(dictionary.getQualifiedColumnName());
_datastoreComboBox.setSelectedItem(dictionary.getDatastoreName());
org.datacleaner.referenceDatastoreDictionarygetDatastoreName

Popular methods of DatastoreDictionary

  • getName
  • <init>
  • getQualifiedColumnName
  • getColumn
  • getDescription
  • isLoadIntoMemory
  • loadIntoMemory
  • setDescription

Popular in Java

  • Updating database using SQL prepared statement
  • setContentView (Activity)
  • getResourceAsStream (ClassLoader)
  • compareTo (BigDecimal)
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Permission (java.security)
    Legacy security code; do not use.
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now