Tabnine Logo
TransactionException.errorBeginningExternalTransaction
Code IndexAdd Tabnine to your IDE (free)

How to use
errorBeginningExternalTransaction
method
in
org.eclipse.persistence.exceptions.TransactionException

Best Java code snippets using org.eclipse.persistence.exceptions.TransactionException.errorBeginningExternalTransaction (Showing top 3 results out of 315)

origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * INTERNAL:
 * Begin an external transaction.
 *
 * @param session The session for which the transaction is being begun.
 */
public void beginTransaction(AbstractSession session) {
  try {
    Object status = getTransactionStatus();
    logTxStateTrace(session, "TX_begin", status);
    // Make sure that we are in a state that we can actually start
    // a transaction (e.g. ensure one is not already in progress)
    if (canBeginTransaction_impl(status)) {
      logTxTrace(session, "TX_beginningTxn", null);
      beginTransaction_impl();
      session.setWasJTSTransactionInternallyStarted(true);
    }
  } catch (Exception exception) {
    throw TransactionException.errorBeginningExternalTransaction(exception);
  }
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL:
 * Begin an external transaction.
 *
 * @param session The session for which the transaction is being begun.
 */
public void beginTransaction(AbstractSession session) {
  try {
    Object status = getTransactionStatus();
    logTxStateTrace(session, "TX_begin", status);
    // Make sure that we are in a state that we can actually start 
    // a transaction (e.g. ensure one is not already in progress)
    if (canBeginTransaction_impl(status)) {
      logTxTrace(session, "TX_beginningTxn", null);
      beginTransaction_impl();
      session.setWasJTSTransactionInternallyStarted(true);
    }
  } catch (Exception exception) {
    throw TransactionException.errorBeginningExternalTransaction(exception);
  }
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * INTERNAL:
 * Begin an external transaction.
 *
 * @param session The session for which the transaction is being begun.
 */
public void beginTransaction(AbstractSession session) {
  try {
    Object status = getTransactionStatus();
    logTxStateTrace(session, "TX_begin", status);
    // Make sure that we are in a state that we can actually start 
    // a transaction (e.g. ensure one is not already in progress)
    if (canBeginTransaction_impl(status)) {
      logTxTrace(session, "TX_beginningTxn", null);
      beginTransaction_impl();
      session.setWasJTSTransactionInternallyStarted(true);
    }
  } catch (Exception exception) {
    throw TransactionException.errorBeginningExternalTransaction(exception);
  }
}
org.eclipse.persistence.exceptionsTransactionExceptionerrorBeginningExternalTransaction

Popular methods of TransactionException

  • <init>
  • errorBindingToExternalTransaction
  • errorCommittingExternalTransaction
  • errorGettingExternalTransaction
  • errorGettingExternalTransactionStatus
  • errorMarkingTransactionForRollback
  • errorObtainingTransactionManager
  • errorRollingBackExternalTransaction
  • externalTransactionNotActive
  • inactiveUnitOfWork
  • jndiLookupException
  • setErrorCode
  • jndiLookupException,
  • setErrorCode,
  • setInternalException,
  • getErrorCode,
  • entityTransactionWithJTANotAllowed,
  • getMessage,
  • internalProxyException,
  • multipleResourceException,
  • transactionIsActive

Popular in Java

  • Reading from database using SQL prepared statement
  • requestLocationUpdates (LocationManager)
  • onCreateOptionsMenu (Activity)
  • getContentResolver (Context)
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • 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