Codota Logo
TransactionException.entityTransactionWithJTANotAllowed
Code IndexAdd Codota to your IDE (free)

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

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

  • Common ways to obtain TransactionException
private void myMethod () {
TransactionException t =
  • Codota IconObject[] arguments;new TransactionException(ExceptionMessageGenerator.buildMessage(TransactionException.class, errorNumber, arguments))
  • Codota IconTransactionException.externalTransactionNotActive()
  • Codota IconUnitOfWorkImpl unitOfWork;TransactionException.inactiveUnitOfWork(unitOfWork)
  • Smart code suggestions by Codota
}
origin: com.haulmont.thirdparty/eclipselink

protected void throwUserTransactionException() {
  throw TransactionException.entityTransactionWithJTANotAllowed();
}
origin: com.haulmont.thirdparty/eclipselink

/**
 *  An ENtityTransaction cannot be used at the same time as a JTA transaction
 *  throw an exception
 */
public EntityTransaction getTransaction(){
 throw new IllegalStateException(TransactionException.entityTransactionWithJTANotAllowed().getMessage());
}
  
org.eclipse.persistence.exceptionsTransactionExceptionentityTransactionWithJTANotAllowed

Popular methods of TransactionException

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

Popular in Java

  • Running tasks concurrently on multiple threads
  • getSupportFragmentManager (FragmentActivity)
  • onRequestPermissionsResult (Fragment)
  • getSystemService (Context)
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Vector (java.util)
    The Vector class implements a growable array of objects. Like an array, it contains components that
  • ConcurrentHashMap (java.util.concurrent)
    A hash table supporting full concurrency of retrievals and adjustable expected concurrency for updat
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
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