Tabnine Logo
TransactionCoordinator.getTransaction
Code IndexAdd Tabnine to your IDE (free)

How to use
getTransaction
method
in
org.hibernate.engine.transaction.spi.TransactionCoordinator

Best Java code snippets using org.hibernate.engine.transaction.spi.TransactionCoordinator.getTransaction (Showing top 18 results out of 315)

origin: org.hibernate/com.springsource.org.hibernate

@Override
public Transaction getTransaction() throws HibernateException {
  errorIfClosed();
  return transactionCoordinator.getTransaction();
}
origin: org.hibernate/com.springsource.org.hibernate.core

@Override
public Transaction getTransaction() throws HibernateException {
  errorIfClosed();
  return transactionCoordinator.getTransaction();
}
origin: com.github.mg365/mg-common

  @Override
  public IntegralDataTypeHolder getNextValue() {
    return session.getTransactionCoordinator().getTransaction().createIsolationDelegate().delegateWork(abstractReturningWork, true);
  }
};
origin: org.hibernate/com.springsource.org.hibernate

  public IntegralDataTypeHolder getNextValue() {
    return session.getTransactionCoordinator().getTransaction().createIsolationDelegate().delegateWork( work, true );
  }
}
origin: org.hibernate/com.springsource.org.hibernate.core

  public IntegralDataTypeHolder getNextValue() {
    return session.getTransactionCoordinator().getTransaction().createIsolationDelegate().delegateWork( work, true );
  }
}
origin: org.hibernate/com.springsource.org.hibernate.core

@Override
public IntegralDataTypeHolder getNextValue() {
  return session.getTransactionCoordinator().getTransaction().createIsolationDelegate().delegateWork(
      new AbstractReturningWork<IntegralDataTypeHolder>() {
        @Override
origin: org.hibernate/com.springsource.org.hibernate

@Override
public IntegralDataTypeHolder getNextValue() {
  return session.getTransactionCoordinator().getTransaction().createIsolationDelegate().delegateWork(
      new AbstractReturningWork<IntegralDataTypeHolder>() {
        @Override
origin: org.hibernate/com.springsource.org.hibernate.core

@Override
public IntegralDataTypeHolder getNextValue() {
  return session.getTransactionCoordinator().getTransaction().createIsolationDelegate().delegateWork(
      new AbstractReturningWork<IntegralDataTypeHolder>() {
        @Override
origin: org.hibernate/com.springsource.org.hibernate

@Override
public IntegralDataTypeHolder getNextValue() {
  return session.getTransactionCoordinator().getTransaction().createIsolationDelegate().delegateWork(
      new AbstractReturningWork<IntegralDataTypeHolder>() {
        @Override
origin: org.hibernate/com.springsource.org.hibernate.core

value = session.getTransactionCoordinator().getTransaction().createIsolationDelegate().delegateWork( work, true );
origin: org.hibernate/com.springsource.org.hibernate

value = session.getTransactionCoordinator().getTransaction().createIsolationDelegate().delegateWork( work, true );
origin: org.hibernate/com.springsource.org.hibernate.core

    .getService( JdbcServices.class )
    .getSqlStatementLogger();
return session.getTransactionCoordinator().getTransaction().createIsolationDelegate().delegateWork(
    new AbstractReturningWork<IntegralDataTypeHolder>() {
      @Override
origin: org.hibernate/com.springsource.org.hibernate

    .getService( JdbcServices.class )
    .getSqlStatementLogger();
return session.getTransactionCoordinator().getTransaction().createIsolationDelegate().delegateWork(
    new AbstractReturningWork<IntegralDataTypeHolder>() {
      @Override
origin: org.hibernate/com.springsource.org.hibernate

if ( shouldIsolateTemporaryTableDDL() ) {
  session.getTransactionCoordinator()
      .getTransaction()
      .createIsolationDelegate()
      .delegateWork( work, getFactory().getSettings().isDataDefinitionInTransactionSupported() );
origin: org.hibernate/com.springsource.org.hibernate.core

protected void createTemporaryTableIfNecessary(final Queryable persister, final SessionImplementor session) {
  // Don't really know all the codes required to adequately decipher returned jdbc exceptions here.
  // simply allow the failure to be eaten and the subsequent insert-selects/deletes should fail
  TemporaryTableCreationWork work = new TemporaryTableCreationWork( persister );
  if ( shouldIsolateTemporaryTableDDL() ) {
    session.getTransactionCoordinator()
        .getTransaction()
        .createIsolationDelegate()
        .delegateWork( work, getFactory().getSettings().isDataDefinitionInTransactionSupported() );
  }
  else {
    final Connection connection = session.getTransactionCoordinator()
        .getJdbcCoordinator()
        .getLogicalConnection()
        .getShareableConnectionProxy();
    work.execute( connection );
    session.getTransactionCoordinator()
        .getJdbcCoordinator()
        .getLogicalConnection()
        .afterStatementExecution();
  }
}
origin: org.hibernate/com.springsource.org.hibernate

protected void createTemporaryTableIfNecessary(final Queryable persister, final SessionImplementor session) {
  // Don't really know all the codes required to adequately decipher returned jdbc exceptions here.
  // simply allow the failure to be eaten and the subsequent insert-selects/deletes should fail
  TemporaryTableCreationWork work = new TemporaryTableCreationWork( persister );
  if ( shouldIsolateTemporaryTableDDL() ) {
    session.getTransactionCoordinator()
        .getTransaction()
        .createIsolationDelegate()
        .delegateWork( work, getFactory().getSettings().isDataDefinitionInTransactionSupported() );
  }
  else {
    final Connection connection = session.getTransactionCoordinator()
        .getJdbcCoordinator()
        .getLogicalConnection()
        .getShareableConnectionProxy();
    work.execute( connection );
    session.getTransactionCoordinator()
        .getJdbcCoordinator()
        .getLogicalConnection()
        .afterStatementExecution();
  }
}
origin: org.hibernate/com.springsource.org.hibernate.core

if ( shouldIsolateTemporaryTableDDL() ) {
  session.getTransactionCoordinator()
      .getTransaction()
      .createIsolationDelegate()
      .delegateWork( work, getFactory().getSettings().isDataDefinitionInTransactionSupported() );
origin: org.hibernate/com.springsource.org.hibernate.ejb

final TransactionImplementor transaction = transactionCoordinator.getTransaction();
org.hibernate.engine.transaction.spiTransactionCoordinatorgetTransaction

Javadoc

Get the Hibernate transaction facade object currently associated with this coordinator.

Popular methods of TransactionCoordinator

  • getJdbcCoordinator
    Retrieves the JDBC coordinator currently operating within this transaction coordinator.
  • getTransactionContext
    Retrieves the context in which this coordinator operates.
  • pulse
    Attempts to register JTA synchronization if possible and needed.
  • getSynchronizationCallbackCoordinator
  • afterNonTransactionalQuery
    Performs actions needed after execution of a non-transactional query.
  • afterTransaction
  • close
    Close the transaction context, returning any user supplied connection from the underlying JDBC coord
  • getSynchronizationRegistry
    Obtain the javax.transaction.Synchronization registry associated with this coordinator.
  • isSynchronizationRegistered
  • isTransactionInProgress
    Are we "in" an active and joined transaction
  • sendAfterTransactionBeginNotifications
  • sendBeforeTransactionCompletionNotifications
  • sendAfterTransactionBeginNotifications,
  • sendBeforeTransactionCompletionNotifications,
  • setRollbackOnly,
  • takeOwnership,
  • isTransactionJoinable,
  • resetJoinStatus

Popular in Java

  • Updating database using SQL prepared statement
  • compareTo (BigDecimal)
  • getApplicationContext (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Socket (java.net)
    Provides a client-side TCP socket.
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • JOptionPane (javax.swing)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Join (org.hibernate.mapping)
  • Best IntelliJ 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