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

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

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

origin: com.haulmont.thirdparty/eclipselink

/**
 * Start the current transaction. This can only be invoked if
 * {@link #isActive()} returns <code>false</code>.
 * 
 * @throws IllegalStateException
 *             if isActive() is true.
 */
public void begin() {
  if (isActive()) {
    throw new IllegalStateException(TransactionException.transactionIsActive().getMessage());
  }
  //bug307445 : Throw IllegalStateException if entityManager was closed
  this.wrapper.getEntityManager().verifyOpen();
  // always extended
  this.wrapper.localUOW = this.wrapper.getEntityManager().getActivePersistenceContext(null);
  this.wrapper.localUOW.setShouldTerminateTransaction(false);
  this.active = true;
}
org.eclipse.persistence.exceptionsTransactionExceptiontransactionIsActive

Popular methods of TransactionException

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

Popular in Java

  • Updating database using SQL prepared statement
  • compareTo (BigDecimal)
  • notifyDataSetChanged (ArrayAdapter)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Kernel (java.awt.image)
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top Sublime Text 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