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

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

Best Java code snippets using leap.core.ds.DataSourceManager.destroyDataSource (Showing top 1 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/jmms-engine

@Override
public void destroyDataSource(DataSource ds) {
  if(null != ds) {
    try {
      dataSourceManager.destroyDataSource(ds);
    } catch (Exception e) {
      log.error("Error destroying data source, {}", e.getMessage(), e);
    }
  }
}
leap.core.dsDataSourceManagerdestroyDataSource

Javadoc

Destroy the given DataSource, that means close all the connections and release other resources created by the DataSource.

If the given DataSource is managed by this manager, it will be removed.

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.
  • 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.
  • 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