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

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

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

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

public SimpleDictionary loadIntoMemory(final DatastoreConnection datastoreConnection) {
  final DataContext dataContext = datastoreConnection.getDataContext();
  final Column column = getColumn(datastoreConnection);
  final Query query = dataContext.query().from(column.getTable()).select(column).toQuery();
  if (datastoreConnection.getDatastore().getPerformanceCharacteristics().isQueryOptimizationPreferred()) {
    query.getSelectClause().setDistinct(true);
  }
  final Set<String> values = new HashSet<>();
  try (DataSet dataSet = dataContext.executeQuery(query)) {
    while (dataSet.next()) {
      final Object value = dataSet.getRow().getValue(0);
      if (value != null) {
        values.add(value.toString());
      }
    }
  }
  return new SimpleDictionary(getName(), values);
}
origin: datacleaner/DataCleaner

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

Popular methods of DatastoreDictionary

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

Popular in Java

  • Updating database using SQL prepared statement
  • setScale (BigDecimal)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • addToBackStack (FragmentTransaction)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • JFileChooser (javax.swing)
  • Top PhpStorm plugins
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