Tabnine Logo
DataSourceManager.getAllDataSources
Code IndexAdd Tabnine 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)

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

  • Start an intent from android
  • startActivity (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • onRequestPermissionsResult (Fragment)
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Socket (java.net)
    Provides a client-side TCP socket.
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • From CI to AI: The AI layer in your organization
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