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

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

Best Java code snippets using leap.core.ds.DataSourceManager.getDataSource (Showing top 2 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 Transactions beginTransactionsWith(String[] dataSourceNames, TransactionDefinition td) {
  List<Transaction> transactions = new ArrayList<>();
  for(String name : dataSourceNames) {
    transactions.add(providers.get(dsm.getDataSource(name)).beginTransaction(td));
  }
  return new SimpleTransactions(transactions.toArray(new Transaction[transactions.size()]));
}
origin: org.leapframework/leap-db

/**
 * Returns the cached {@link Db} instance for the {@link DataSource} managed by {@link DataSourceManager}.
 *
 * @see DataSourceManager#getDataSource(String)
 */
public static Db getInstance(String name) throws NestedSQLException,UnsupportedDbPlatformException,ObjectNotFoundException {
  DataSourceManager dsm = AppContext.factory().getBean(DataSourceManager.class);
  return getInstance(name, dsm.getDataSource(name));
}
leap.core.dsDataSourceManagergetDataSource

Javadoc

Returns the DataSource with the given name in this manager.

Popular methods of DataSourceManager

  • getAllDataSources
    Returns an immutable Map contains all the defined DataSource. The key of the returned map is datasou
  • 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

  • Finding current android device location
  • setRequestProperty (URLConnection)
  • getSharedPreferences (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Hashtable (java.util)
    Hashtable is a synchronized implementation of Map. All optional operations are supported.Neither key
  • Stack (java.util)
    The Stack class represents a last-in-first-out (LIFO) stack of objects. It extends class Vector with
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
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