congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
JtxDbUtil
Code IndexAdd Tabnine to your IDE (free)

How to use
JtxDbUtil
in
jodd.db.jtx

Best Java code snippets using jodd.db.jtx.JtxDbUtil (Showing top 3 results out of 315)

origin: oblac/jodd

/**
 * {@inheritDoc}
 */
public DbSession beginTransaction(final JtxTransactionMode jtxMode, final boolean active) {
  DbSession session = new DbSession(connectionProvider);
  if (active) {
    log.debug("begin jtx");
    session.beginTransaction(JtxDbUtil.convertToDbMode(jtxMode));
  }
  return session;
}
origin: oblac/jodd

@ParameterizedTest
@MethodSource(value = "testData_testConvertToDbMode")
void testConvertToDbMode(final DbTransactionMode expected, final JtxTransactionMode input) {
  final DbTransactionMode actual = JtxDbUtil.convertToDbMode(input);
  // asserts
  assertNotNull(actual);
  assertTrue(expected.equals(actual));
}
origin: org.jodd/jodd-db

/**
 * {@inheritDoc}
 */
public DbSession beginTransaction(final JtxTransactionMode jtxMode, final boolean active) {
  DbSession session = new DbSession(connectionProvider);
  if (active) {
    log.debug("begin jtx");
    session.beginTransaction(JtxDbUtil.convertToDbMode(jtxMode));
  }
  return session;
}
jodd.db.jtxJtxDbUtil

Javadoc

Helpers for jtx db.

Most used methods

  • convertToDbMode
    Converter JTX transaction mode to DB transaction mode.

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getApplicationContext (Context)
  • addToBackStack (FragmentTransaction)
  • getExternalFilesDir (Context)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • JLabel (javax.swing)
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Best IntelliJ plugins
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