congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
ThreadDbSessionProvider
Code IndexAdd Tabnine to your IDE (free)

How to use
ThreadDbSessionProvider
in
jodd.db

Best Java code snippets using jodd.db.ThreadDbSessionProvider (Showing top 4 results out of 315)

origin: oblac/jodd

  /**
   * Creates new DbOom.
   */
  public DbOom get() {
    if (connectionProvider == null) {
      connectionProvider = new CoreConnectionPool();
    }
    if (dbSessionProvider == null) {
      dbSessionProvider = new ThreadDbSessionProvider();
    }
    if (queryMap == null) {
      queryMap = new EmptyQueryMap();
    }
    return new DbOom(connectionProvider, dbSessionProvider, queryMap);
  }
}
origin: org.jodd/jodd-wot

/**
 * {@inheritDoc}
 */
public void closeDbSession() {
  closeThreadDbSession();
}
origin: oblac/jodd

.withSessionProvider(new ThreadDbSessionProvider())
.get()
.connect();
origin: org.jodd/jodd-db

  /**
   * Creates new DbOom.
   */
  public DbOom get() {
    if (connectionProvider == null) {
      connectionProvider = new CoreConnectionPool();
    }
    if (dbSessionProvider == null) {
      dbSessionProvider = new ThreadDbSessionProvider();
    }
    if (queryMap == null) {
      queryMap = new EmptyQueryMap();
    }
    return new DbOom(connectionProvider, dbSessionProvider, queryMap);
  }
}
jodd.dbThreadDbSessionProvider

Javadoc

Returns DbSession assigned to current thread.

Most used methods

  • <init>
  • closeThreadDbSession
    Closes db session.

Popular in Java

  • Creating JSON documents from java classes using gson
  • onRequestPermissionsResult (Fragment)
  • scheduleAtFixedRate (Timer)
  • getSupportFragmentManager (FragmentActivity)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now