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

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

Best Java code snippets using leap.core.ds.DataSourceManager.getDefaultDataSource (Showing top 7 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 <T> T doTransaction(TransactionCallbackWithResult<T> callback) {
  return doTransaction(dsm.getDefaultDataSource(), callback);
}
origin: org.leapframework/leap-core

@Override
public void doTransaction(TransactionCallback callback, boolean requiresNew) {
  doTransaction(dsm.getDefaultDataSource(), callback, requiresNew);
}
origin: org.leapframework/leap-core

@Override
public <T> T doTransaction(TransactionCallbackWithResult<T> callback, boolean requiresNew) {
  return doTransaction(dsm.getDefaultDataSource(), callback, requiresNew);
}
origin: org.leapframework/leap-core

@Override
public <T> T executeWithResult(ConnectionCallbackWithResult<T> callback) {
  return executeWithResult(dsm.getDefaultDataSource(), callback);
}
origin: org.leapframework/leap-core

@Override
public void execute(ConnectionCallback callback) {
  execute(dsm.getDefaultDataSource(), callback);
}
origin: org.leapframework/leap-core

@Override
public void doTransaction(TransactionCallback callback) {
  doTransaction(dsm.getDefaultDataSource(), callback);
}
origin: org.leapframework/leap-db

/**
 * Returns the cached {@link Db} instance for the default {@link DataSource} managed by {@link DataSourceManager}.
 *
 * @see DataSourceManager#getDefaultDataSource()
 */
public static Db getInstance() {
  DataSourceManager dsm = AppContext.factory().getBean(DataSourceManager.class);
  return getInstance(DataSourceManager.DEFAULT_DATASOURCE_NAME, dsm.getDefaultDataSource());
}
leap.core.dsDataSourceManagergetDefaultDataSource

Javadoc

Returns the default datasource.

Popular methods of DataSourceManager

  • getAllDataSources
    Returns an immutable Map contains all the defined DataSource. The key of the returned map is datasou
  • getDataSource
    Returns the DataSource with the given name in this manager.
  • 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