Codota Logo
DataSourceManager.getAllDataSources
Code IndexAdd Codota to your IDE (free)

How to use
getAllDataSources
method
in
leap.core.ds.DataSourceManager

Best Java code snippets using leap.core.ds.DataSourceManager.getAllDataSources (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
DateTime d =
  • Codota Iconnew DateTime()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseDateTime(text)
  • Codota IconObject instant;new DateTime(instant)
  • Smart code suggestions by Codota
}
origin: org.leapframework/leap-core

@Override
public void init() {
  dsm.getAllDataSources().entrySet().forEach((entry) -> loadProvider(entry.getKey(), entry.getValue()));
}
origin: org.leapframework/leap-db

@Override
public void postInit(AppContext context) throws Throwable {
  DataSource       defaultDataSource = dsm.tryGetDefaultDataSource();
  Map<String,DataSource> datasources = dsm.getAllDataSources();
  
  boolean foundPrimary = false;
  
  for(Entry<String,DataSource> entry : datasources.entrySet()){
    
    boolean primary = false;
    
    if(null != defaultDataSource && entry.getValue() == defaultDataSource){
      primary = true;
      foundPrimary = true;
    }
    
    initBeans(entry.getKey(), entry.getValue(), primary);
  }
  
  if(!foundPrimary && null != defaultDataSource){
    initBeans(DataSourceManager.DEFAULT_DATASOURCE_NAME, defaultDataSource, true);
  }
}

origin: org.leapframework/leap-orm

Map<String,DataSource> dataSources = dataSourceManager.getAllDataSources();
leap.core.dsDataSourceManagergetAllDataSources

Javadoc

Returns an immutable Map contains all the defined DataSource.

The key of the returned map is datasource's name.

Popular methods of DataSourceManager

  • getDataSource
    Returns the DataSource with the given name in this manager.
  • getDefaultDataSource
    Returns the default datasource.
  • hasDataSources
    Returns true if there are managed datasource exists.
  • tryGetDefaultDataSource
    Returns the default datasource. Returns null if no default datasource.
  • createDataSource
    Creates a unmanaged DataSource of the given properties.
  • destroyDataSource
    Destroy the given DataSource, that means close all the connections and release other resources creat
  • getDefaultDataSourceBeanName
    Returns the default datasource bean name.
  • tryGetDataSource
    Returns the DataSource with the given name in this manager. Returns null if the given name not exist

Popular in Java

  • Creating JSON documents from java classes using gson
  • onCreateOptionsMenu (Activity)
  • getExternalFilesDir (Context)
  • getApplicationContext (Context)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • BufferedInputStream (java.io)
    Wraps an existing InputStream and buffers the input. Expensive interaction with the underlying input
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Iterator (java.util)
    An iterator over a collection. Iterator takes the place of Enumeration in the Java Collections Frame
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now