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

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

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

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

public static TransactionException internalProxyException(Exception ex1) {
  Object[] args = {  };
  TransactionException ex = new TransactionException(ExceptionMessageGenerator.buildMessage(TransactionException.class, EXCEPTION_IN_PROXY_EXECUTION, args), ex1);
  ex.setErrorCode(EXCEPTION_IN_PROXY_EXECUTION);
  return ex;
}
origin: com.haulmont.thirdparty/eclipselink

public static TransactionException externalTransactionNotActive() {
  Object[] args = {  };
  TransactionException ex = new TransactionException(ExceptionMessageGenerator.buildMessage(TransactionException.class, ERROR_NO_EXTERNAL_TRANSACTION_ACTIVE, args));
  ex.setErrorCode(ERROR_NO_EXTERNAL_TRANSACTION_ACTIVE);
  return ex;
}
origin: com.haulmont.thirdparty/eclipselink

public static TransactionException inactiveUnitOfWork(UnitOfWorkImpl unitOfWork) {
  Object[] args = { unitOfWork };
  TransactionException ex = new TransactionException(ExceptionMessageGenerator.buildMessage(TransactionException.class, ERROR_INACTIVE_UOW, args));
  ex.setErrorCode(ERROR_INACTIVE_UOW);
  return ex;
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

public static TransactionException inactiveUnitOfWork(UnitOfWorkImpl unitOfWork) {
  Object[] args = { unitOfWork };
  TransactionException ex = new TransactionException(ExceptionMessageGenerator.buildMessage(TransactionException.class, ERROR_INACTIVE_UOW, args));
  ex.setErrorCode(ERROR_INACTIVE_UOW);
  return ex;
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

public static TransactionException entityTransactionNotActive() {
  Object[] args = {  };
  TransactionException ex = new TransactionException(ExceptionMessageGenerator.buildMessage(TransactionException.class, ERROR_NO_ENTITY_TRANSACTION_ACTIVE, args));
  ex.setErrorCode(ERROR_NO_ENTITY_TRANSACTION_ACTIVE);
  return ex;
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

public static TransactionException externalTransactionNotActive() {
  Object[] args = {  };
  TransactionException ex = new TransactionException(ExceptionMessageGenerator.buildMessage(TransactionException.class, ERROR_NO_EXTERNAL_TRANSACTION_ACTIVE, args));
  ex.setErrorCode(ERROR_NO_EXTERNAL_TRANSACTION_ACTIVE);
  return ex;
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

public static TransactionException inactiveUnitOfWork(UnitOfWorkImpl unitOfWork) {
  Object[] args = { unitOfWork };
  TransactionException ex = new TransactionException(ExceptionMessageGenerator.buildMessage(TransactionException.class, ERROR_INACTIVE_UOW, args));
  ex.setErrorCode(ERROR_INACTIVE_UOW);
  return ex;
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

public static TransactionException transactionNotActive() {
  Object[] args = {  };
  TransactionException ex = new TransactionException(ExceptionMessageGenerator.buildMessage(TransactionException.class, ERROR_NO_TRANSACTION_ACTIVE, args));
  ex.setErrorCode(ERROR_NO_TRANSACTION_ACTIVE);
  return ex;
}
public static TransactionException transactionIsActive() {
origin: org.eclipse.persistence/org.eclipse.persistence.core

public static TransactionException entityTransactionWithJTANotAllowed() {
  Object[] args = {  };
  TransactionException ex = new TransactionException(ExceptionMessageGenerator.buildMessage(TransactionException.class, ENTITY_TRANSACTION_WITH_JTA_NOT_ALLOWED, args));
  ex.setErrorCode(ENTITY_TRANSACTION_WITH_JTA_NOT_ALLOWED);
  return ex;
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

public static TransactionException transactionIsActive() {
  Object[] args = {  };
  TransactionException ex = new TransactionException(ExceptionMessageGenerator.buildMessage(TransactionException.class, ERROR_TRANSACTION_IS_ACTIVE, args));
  ex.setErrorCode(ERROR_TRANSACTION_IS_ACTIVE);
  return ex;
}
origin: com.haulmont.thirdparty/eclipselink

public static TransactionException errorBindingToExternalTransaction(Exception internalException) {
  Object[] args = {  };
  TransactionException ex = new TransactionException(ExceptionMessageGenerator.buildMessage(TransactionException.class, ERROR_BINDING_TO_TRANSACTION, args));
  ex.setErrorCode(ERROR_BINDING_TO_TRANSACTION);
  ex.setInternalException(internalException);
  return ex;
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

public static TransactionException errorCommittingExternalTransaction(Exception internalException) {
  Object[] args = {  };
  TransactionException ex = new TransactionException(ExceptionMessageGenerator.buildMessage(TransactionException.class, ERROR_COMMITTING_TRANSACTION, args));
  ex.setErrorCode(ERROR_COMMITTING_TRANSACTION);
  ex.setInternalException(internalException);
  return ex;
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

public static TransactionException errorRollingBackExternalTransaction(Exception internalException) {
  Object[] args = {  };
  TransactionException ex = new TransactionException(ExceptionMessageGenerator.buildMessage(TransactionException.class, ERROR_ROLLING_BACK_TRANSACTION, args));
  ex.setErrorCode(ERROR_ROLLING_BACK_TRANSACTION);
  ex.setInternalException(internalException);
  return ex;
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

public static TransactionException errorMarkingTransactionForRollback(Exception internalException) {
  Object[] args = {  };
  TransactionException ex = new TransactionException(ExceptionMessageGenerator.buildMessage(TransactionException.class, ERROR_MARKING_TRANSACTION_FOR_ROLLBACK, args));
  ex.setErrorCode(ERROR_MARKING_TRANSACTION_FOR_ROLLBACK);
  ex.setInternalException(internalException);
  return ex;
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

public static TransactionException jndiLookupException(String jndiName, Exception internalException) {
  Object[] args = { jndiName };
  TransactionException ex = new TransactionException(ExceptionMessageGenerator.buildMessage(TransactionException.class, ERROR_DOING_JNDI_LOOKUP, args));
  ex.setErrorCode(ERROR_DOING_JNDI_LOOKUP);
  ex.setInternalException(internalException);
  return ex;
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

public static TransactionException errorBindingToExternalTransaction(Exception internalException) {
  Object[] args = {  };
  TransactionException ex = new TransactionException(ExceptionMessageGenerator.buildMessage(TransactionException.class, ERROR_BINDING_TO_TRANSACTION, args));
  ex.setErrorCode(ERROR_BINDING_TO_TRANSACTION);
  ex.setInternalException(internalException);
  return ex;
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

public static TransactionException errorGettingExternalTransaction(Exception internalException) {
  Object[] args = {  };
  TransactionException ex = new TransactionException(ExceptionMessageGenerator.buildMessage(TransactionException.class, ERROR_GETTING_TRANSACTION, args));
  ex.setErrorCode(ERROR_GETTING_TRANSACTION);
  ex.setInternalException(internalException);
  return ex;
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

public static TransactionException errorMarkingTransactionForRollback(Exception internalException) {
  Object[] args = {  };
  TransactionException ex = new TransactionException(ExceptionMessageGenerator.buildMessage(TransactionException.class, ERROR_MARKING_TRANSACTION_FOR_ROLLBACK, args));
  ex.setErrorCode(ERROR_MARKING_TRANSACTION_FOR_ROLLBACK);
  ex.setInternalException(internalException);
  return ex;
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

public static TransactionException errorCommittingExternalTransaction(Exception internalException) {
  Object[] args = {  };
  TransactionException ex = new TransactionException(ExceptionMessageGenerator.buildMessage(TransactionException.class, ERROR_COMMITTING_TRANSACTION, args));
  ex.setErrorCode(ERROR_COMMITTING_TRANSACTION);
  ex.setInternalException(internalException);
  return ex;
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

public static TransactionException errorRollingBackExternalTransaction(Exception internalException) {
  Object[] args = {  };
  TransactionException ex = new TransactionException(ExceptionMessageGenerator.buildMessage(TransactionException.class, ERROR_ROLLING_BACK_TRANSACTION, args));
  ex.setErrorCode(ERROR_ROLLING_BACK_TRANSACTION);
  ex.setInternalException(internalException);
  return ex;
}
org.eclipse.persistence.exceptionsTransactionExceptionsetErrorCode

Popular methods of TransactionException

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

Popular in Java

  • Parsing JSON documents to java classes using gson
  • runOnUiThread (Activity)
  • compareTo (BigDecimal)
  • setContentView (Activity)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • Join (org.hibernate.mapping)
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Option (scala)
  • Best plugins for Eclipse
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