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

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

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

origin: org.avaje.ebean/ebean

/**
 * Start a transaction with 'REQUIRED' semantics.
 * <p>
 * If a transaction already exists that transaction will be used.
 * </p>
 * <p>
 * Note that the transaction is stored in a ThreadLocal variable.
 * </p>
 */
public Transaction beginTransaction() {
 return beginTransaction(TxScope.required());
}
origin: org.actframework/act-ebean-java7

@Override
protected void doStartTx(Object delegate, boolean readOnly) {
  if (readOnly) {
    TxScope scope = TxScope.required().setReadOnly(true);
    ebeanReadOnly.beginTransaction(scope);
  } else {
    ebean.beginTransaction();
  }
}
com.avaje.ebeanTxScoperequired

Javadoc

Helper method to create a TxScope with REQUIRES.

Popular methods of TxScope

  • <init>
    Create with a given transaction scope type.
  • getIsolation
    Return the Isolation level this transaction should run with.
  • getNoRollbackFor
    Return the throwable's that should NOT cause a rollback.
  • 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.
  • 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

  • Parsing JSON documents to java classes using gson
  • getApplicationContext (Context)
  • scheduleAtFixedRate (Timer)
  • findViewById (Activity)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • 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