Package org.hibernate.engine.jdbc.internal

Examples of org.hibernate.engine.jdbc.internal.JdbcCoordinatorImpl


  public TransactionCoordinatorImpl(
      Connection userSuppliedConnection,
      TransactionContext transactionContext) {
    this.transactionContext = transactionContext;
    this.jdbcCoordinator = new JdbcCoordinatorImpl( userSuppliedConnection, this );
    this.transactionEnvironment = transactionContext.getTransactionEnvironment();
    this.transactionFactory = this.transactionEnvironment.getTransactionFactory();
    this.observers = new ArrayList<TransactionObserver>();
    this.synchronizationRegistry = new SynchronizationRegistryImpl();
    reset();
View Full Code Here


  }

  public static TransactionCoordinatorImpl deserialize(
      ObjectInputStream ois,
      TransactionContext transactionContext) throws ClassNotFoundException, IOException {
    final JdbcCoordinatorImpl jdbcCoordinator = JdbcCoordinatorImpl.deserialize( ois, transactionContext );
    final int observerCount = ois.readInt();
    final List<TransactionObserver> observers = CollectionHelper.arrayList( observerCount );
    for ( int i = 0; i < observerCount; i++ ) {
      observers.add( (TransactionObserver) ois.readObject() );
    }
    final TransactionCoordinatorImpl transactionCoordinator = new TransactionCoordinatorImpl( transactionContext, jdbcCoordinator, observers );
    jdbcCoordinator.afterDeserialize( transactionCoordinator );
    return transactionCoordinator;
  }
View Full Code Here

  public TransactionCoordinatorImpl(
      Connection userSuppliedConnection,
      TransactionContext transactionContext) {
    this.transactionContext = transactionContext;
    this.jdbcCoordinator = new JdbcCoordinatorImpl( userSuppliedConnection, this );
    this.transactionEnvironment = transactionContext.getTransactionEnvironment();
    this.transactionFactory = this.transactionEnvironment.getTransactionFactory();
    this.observers = new ArrayList<TransactionObserver>();
    this.synchronizationRegistry = new SynchronizationRegistryImpl();
    reset();
View Full Code Here

  }

  public static TransactionCoordinatorImpl deserialize(
      ObjectInputStream ois,
      TransactionContext transactionContext) throws ClassNotFoundException, IOException {
    final JdbcCoordinatorImpl jdbcCoordinator = JdbcCoordinatorImpl.deserialize( ois, transactionContext );
    final int observerCount = ois.readInt();
    final List<TransactionObserver> observers = CollectionHelper.arrayList( observerCount );
    for ( int i = 0; i < observerCount; i++ ) {
      observers.add( (TransactionObserver) ois.readObject() );
    }
    final TransactionCoordinatorImpl transactionCoordinator = new TransactionCoordinatorImpl( transactionContext, jdbcCoordinator, observers );
    jdbcCoordinator.afterDeserialize( transactionCoordinator );
    return transactionCoordinator;
  }
View Full Code Here

  public TransactionCoordinatorImpl(
      Connection userSuppliedConnection,
      TransactionContext transactionContext) {
    this.transactionContext = transactionContext;
    this.jdbcCoordinator = new JdbcCoordinatorImpl( userSuppliedConnection, this );
    this.transactionEnvironment = transactionContext.getTransactionEnvironment();
    this.transactionFactory = this.transactionEnvironment.getTransactionFactory();
    this.observers = new ArrayList<TransactionObserver>();
    this.synchronizationRegistry = new SynchronizationRegistryImpl();
    reset();
View Full Code Here

  }

  public static TransactionCoordinatorImpl deserialize(
      ObjectInputStream ois,
      TransactionContext transactionContext) throws ClassNotFoundException, IOException {
    final JdbcCoordinatorImpl jdbcCoordinator = JdbcCoordinatorImpl.deserialize( ois, transactionContext );
    final int observerCount = ois.readInt();
    final List<TransactionObserver> observers = CollectionHelper.arrayList( observerCount );
    for ( int i = 0; i < observerCount; i++ ) {
      observers.add( (TransactionObserver) ois.readObject() );
    }
    final TransactionCoordinatorImpl transactionCoordinator = new TransactionCoordinatorImpl( transactionContext, jdbcCoordinator, observers );
    jdbcCoordinator.afterDeserialize( transactionCoordinator );
    return transactionCoordinator;
  }
View Full Code Here

  public TransactionCoordinatorImpl(
      Connection userSuppliedConnection,
      TransactionContext transactionContext) {
    this.transactionContext = transactionContext;
    this.jdbcCoordinator = new JdbcCoordinatorImpl( userSuppliedConnection, this );
    this.transactionEnvironment = transactionContext.getTransactionEnvironment();
    this.transactionFactory = this.transactionEnvironment.getTransactionFactory();
    this.observers = new ArrayList<TransactionObserver>();
    this.synchronizationRegistry = new SynchronizationRegistryImpl();
    reset();
View Full Code Here

  }

  public static TransactionCoordinatorImpl deserialize(
      ObjectInputStream ois,
      TransactionContext transactionContext) throws ClassNotFoundException, IOException {
    final JdbcCoordinatorImpl jdbcCoordinator = JdbcCoordinatorImpl.deserialize( ois, transactionContext );
    final int observerCount = ois.readInt();
    final List<TransactionObserver> observers = CollectionHelper.arrayList( observerCount );
    for ( int i = 0; i < observerCount; i++ ) {
      observers.add( (TransactionObserver) ois.readObject() );
    }
    final TransactionCoordinatorImpl transactionCoordinator = new TransactionCoordinatorImpl( transactionContext, jdbcCoordinator, observers );
    jdbcCoordinator.afterDeserialize( transactionCoordinator );
    return transactionCoordinator;
  }
View Full Code Here

  public TransactionCoordinatorImpl(
      Connection userSuppliedConnection,
      TransactionContext transactionContext) {
    this.transactionContext = transactionContext;
    this.jdbcCoordinator = new JdbcCoordinatorImpl( userSuppliedConnection, this );
    this.transactionEnvironment = transactionContext.getTransactionEnvironment();
    this.transactionFactory = this.transactionEnvironment.getTransactionFactory();
    this.observers = new ArrayList<TransactionObserver>();
    this.synchronizationRegistry = new SynchronizationRegistryImpl();
    reset();
View Full Code Here

  }

  public static TransactionCoordinatorImpl deserialize(
      ObjectInputStream ois,
      TransactionContext transactionContext) throws ClassNotFoundException, IOException {
    final JdbcCoordinatorImpl jdbcCoordinator = JdbcCoordinatorImpl.deserialize( ois, transactionContext );
    final int observerCount = ois.readInt();
    final List<TransactionObserver> observers = CollectionHelper.arrayList( observerCount );
    for ( int i = 0; i < observerCount; i++ ) {
      observers.add( (TransactionObserver) ois.readObject() );
    }
    final TransactionCoordinatorImpl transactionCoordinator = new TransactionCoordinatorImpl( transactionContext, jdbcCoordinator, observers );
    jdbcCoordinator.afterDeserialize( transactionCoordinator );
    return transactionCoordinator;
  }
View Full Code Here

TOP

Related Classes of org.hibernate.engine.jdbc.internal.JdbcCoordinatorImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.