Tabnine Logo
TxScope.getNoRollbackFor
Code IndexAdd Tabnine to your IDE (free)

How to use
getNoRollbackFor
method
in
com.avaje.ebean.TxScope

Best Java code snippets using com.avaje.ebean.TxScope.getNoRollbackFor (Showing top 3 results out of 315)

origin: org.avaje/ebean

public ScopeTrans(boolean rollbackOnChecked, boolean created, SpiTransaction transaction, TxScope txScope,
    SpiTransaction suspendedTransaction,  SpiTransactionScopeManager scopeMgr) {
  this.rollbackOnChecked = rollbackOnChecked;
  this.created = created;
  this.transaction = transaction;
  this.suspendedTransaction = suspendedTransaction;
  this.scopeMgr = scopeMgr;
  
  this.noRollbackFor = txScope.getNoRollbackFor();
  this.rollbackFor = txScope.getRollbackFor();
  
  Thread t = Thread.currentThread();
  originalUncaughtHandler = t.getUncaughtExceptionHandler();
  
  t.setUncaughtExceptionHandler(this);
}
 
origin: org.avaje.ebeanorm/avaje-ebeanorm-server

public ScopeTrans(boolean rollbackOnChecked, boolean created, SpiTransaction transaction, TxScope txScope,
    SpiTransaction suspendedTransaction,  SpiTransactionScopeManager scopeMgr) {
  this.rollbackOnChecked = rollbackOnChecked;
  this.created = created;
  this.transaction = transaction;
  this.suspendedTransaction = suspendedTransaction;
  this.scopeMgr = scopeMgr;
  
  this.noRollbackFor = txScope.getNoRollbackFor();
  this.rollbackFor = txScope.getRollbackFor();
  
  Thread t = Thread.currentThread();
  originalUncaughtHandler = t.getUncaughtExceptionHandler();
  
  t.setUncaughtExceptionHandler(this);
}
 
origin: org.avaje.ebean/ebean

public ScopeTrans(boolean rollbackOnChecked, boolean created, SpiTransaction transaction, TxScope txScope,
         SpiTransaction suspendedTransaction, SpiTransactionScopeManager scopeMgr) {
 this.rollbackOnChecked = rollbackOnChecked;
 this.created = created;
 this.transaction = transaction;
 this.suspendedTransaction = suspendedTransaction;
 this.scopeMgr = scopeMgr;
 this.noRollbackFor = txScope.getNoRollbackFor();
 this.rollbackFor = txScope.getRollbackFor();
 if (transaction != null) {
  if (!created && txScope.isBatchSet() || txScope.isBatchOnCascadeSet() || txScope.isBatchSizeSet()) {
   restoreBatch = transaction.getBatch();
   restoreBatchOnCascade = transaction.getBatchOnCascade();
   restoreBatchSize = transaction.getBatchSize();
   restoreBatchGeneratedKeys = transaction.getBatchGetGeneratedKeys();
  }
  if (txScope.isBatchSet()) {
   transaction.setBatch(txScope.getBatch());
  }
  if (txScope.isBatchOnCascadeSet()) {
   transaction.setBatchOnCascade(txScope.getBatchOnCascade());
  }
  if (txScope.isBatchSizeSet()) {
   transaction.setBatchSize(txScope.getBatchSize());
  }
  if (txScope.isSkipGeneratedKeys()) {
   transaction.setBatchGetGeneratedKeys(false);
  }
 }
}
com.avaje.ebeanTxScopegetNoRollbackFor

Javadoc

Return the throwable's that should NOT cause a rollback.

Popular methods of TxScope

  • <init>
    Create with a given transaction scope type.
  • getIsolation
    Return the Isolation level this transaction should run with.
  • getRollbackFor
    Return the throwable's that should cause a rollback.
  • getServerName
    Return the serverName for this transaction. If this is null then the default server (default DataSou
  • getType
    Return the transaction type.
  • required
    Helper method to create a TxScope with REQUIRES.
  • checkBatchMode
    Check for batchSize being set without batch mode and use this to imply PersistBatch.ALL.
  • getBatch
    Return the batch mode.
  • getBatchOnCascade
    Return the batch on cascade mode.
  • getBatchSize
    Return the batch size. 0 means use the default value.
  • isBatchOnCascadeSet
    Return true if batch on cascade has been set.
  • isBatchSet
    Return true if PersistBatch has been set.
  • isBatchOnCascadeSet,
  • isBatchSet,
  • isBatchSizeSet,
  • isSkipGeneratedKeys,
  • notSet,
  • setReadOnly

Popular in Java

  • Making http post requests using okhttp
  • setContentView (Activity)
  • startActivity (Activity)
  • onRequestPermissionsResult (Fragment)
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • JCheckBox (javax.swing)
  • Top PhpStorm 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