congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
Synchronizations.registerSynchronization
Code IndexAdd Tabnine to your IDE (free)

How to use
registerSynchronization
method
in
org.jboss.seam.transaction.Synchronizations

Best Java code snippets using org.jboss.seam.transaction.Synchronizations.registerSynchronization (Showing top 8 results out of 315)

origin: org.jboss.seam/jboss-seam-ioc

@Override
public void registerSynchronization(Synchronization sync)
{
 getSynchronizations().registerSynchronization(sync);
}
origin: org.jboss.seam/jboss-seam

@Override
public void registerSynchronization(Synchronization sync)
{
 getSynchronizations().registerSynchronization(sync);
}
origin: org.jboss.seam.transaction/seam-transaction

@Override
public void registerSynchronization(Synchronization sync) {
  getSynchronizations().registerSynchronization(sync);
}
origin: org.jbpm/droolsjbpm-knowledge-services

@Override
public void registerSynchronization(Synchronization sync) {
  Synchronizations synchronizations = getSynchronizations();
  if (synchronizations.isAwareOfContainerTransactions()) {
    synchronizations.registerSynchronization(sync);
  } else {
    throw new UnsupportedOperationException("cannot register synchronization with container transaction, use <transaction:ejb-transaction/>");
  }
}
origin: org.jboss.seam.transaction/seam-transaction

@Override
public void registerSynchronization(Synchronization sync) {
  Synchronizations synchronizations = getSynchronizations();
  if (synchronizations.isAwareOfContainerTransactions()) {
    synchronizations.registerSynchronization(sync);
  } else {
    throw new UnsupportedOperationException("cannot register synchronization with container transaction, use <transaction:ejb-transaction/>");
  }
}
origin: org.jboss.seam/jboss-seam

@Override
public void registerSynchronization(Synchronization sync)
{
 Synchronizations synchronizations = getSynchronizations();
 if ( synchronizations.isAwareOfContainerTransactions() )
 {
   synchronizations.registerSynchronization(sync);
 }
 else
 {
   throw new UnsupportedOperationException("cannot register synchronization with container transaction, use <transaction:ejb-transaction/>");
 }
}
origin: org.jboss.seam.transaction/seam-transaction

@Override
public void registerSynchronization(Synchronization sync) {
  if (log.isDebugEnabled()) {
    log.debug("registering synchronization: " + sync);
  }
  // try to register the synchronization directly with the
  // persistence provider
  getSynchronizations().registerSynchronization(sync);
}
origin: org.jboss.seam/jboss-seam

@Override
public void registerSynchronization(Synchronization sync)
{
 if ( log.isDebugEnabled() )
 {
   log.debug("registering synchronization: " + sync);
 }
 assertActive();
 //try to register the synchronization directly with the
 //persistence provider, but if this fails, just hold
 //on to it myself
 if ( !PersistenceProvider.instance().registerSynchronization(sync, currentEntityManager) )
 {
   getSynchronizations().registerSynchronization(sync);
 }
}
org.jboss.seam.transactionSynchronizationsregisterSynchronization

Popular methods of Synchronizations

  • afterTransactionBegin
  • beforeTransactionCommit
  • isAwareOfContainerTransactions
  • afterTransactionCommit
  • afterTransactionCompletion
  • afterTransactionRollback

Popular in Java

  • Reading from database using SQL prepared statement
  • compareTo (BigDecimal)
  • findViewById (Activity)
  • onRequestPermissionsResult (Fragment)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • ImageIO (javax.imageio)
  • Notification (javax.management)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • PhpStorm for WordPress
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now