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

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

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

origin: com.haulmont.thirdparty/eclipselink

  /**
   * INTERNAL:
   * Obtain and return the JTA TransactionManager on this platform
   */
  protected TransactionManager acquireTransactionManager() throws Exception {
    try {
      return (TransactionManager)jndiLookup(JNDI_TRANSACTION_MANAGER_NAME_AS7);
    } catch(TransactionException transactionException) {
      if (transactionException.getErrorCode() == TransactionException.ERROR_DOING_JNDI_LOOKUP) {
        return (TransactionManager)jndiLookup(JNDI_TRANSACTION_MANAGER_NAME_AS4);
      } else {
        throw transactionException;
      }
    }
  }
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

  /**
   * INTERNAL:
   * Obtain and return the JTA TransactionManager on this platform
   */
  protected TransactionManager acquireTransactionManager() throws Exception {
    try {
      return (TransactionManager)jndiLookup(JNDI_TRANSACTION_MANAGER_NAME_AS7);
    } catch(TransactionException transactionException) {
      if (transactionException.getErrorCode() == TransactionException.ERROR_DOING_JNDI_LOOKUP) {
        return (TransactionManager)jndiLookup(JNDI_TRANSACTION_MANAGER_NAME_AS4);
      } else {
        throw transactionException;
      }
    }
  }
}
org.eclipse.persistence.exceptionsTransactionExceptiongetErrorCode

Popular methods of TransactionException

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

Popular in Java

  • Reading from database using SQL prepared statement
  • getResourceAsStream (ClassLoader)
  • notifyDataSetChanged (ArrayAdapter)
  • getSharedPreferences (Context)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • JButton (javax.swing)
  • JPanel (javax.swing)
  • Top plugins for Android Studio
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