Examples of forceLocked()


Examples of org.hibernate.engine.EntityEntry.forceLocked()

    if ( LockMode.PESSIMISTIC_FORCE_INCREMENT.equals( lockMode ) ) {
      final EntityPersister persister = entry.getPersister();
      Object nextVersion = persister.forceVersionIncrement(
          entry.getId(), entry.getVersion(), event.getSession()
      );
      entry.forceLocked( entity, nextVersion );
    }
    else if ( LockMode.OPTIMISTIC_FORCE_INCREMENT.equals( lockMode ) ) {
      EntityIncrementVersionProcess incrementVersion = new EntityIncrementVersionProcess( entity, entry );
      event.getSession().getActionQueue().registerProcess( incrementVersion );
    }
View Full Code Here

Examples of org.hibernate.engine.EntityEntry.forceLocked()

      throw new HibernateException( "[" + lockMode + "] not supported for non-versioned entities [" + lockable.getEntityName() + "]" );
    }
    EntityEntry entry = session.getPersistenceContext().getEntry( object );
    final EntityPersister persister = entry.getPersister();
    Object nextVersion = persister.forceVersionIncrement( entry.getId(), entry.getVersion(), session );
    entry.forceLocked( object, nextVersion );
  }

  /**
   * Retrieve the specific lock mode defined.
   *
 
View Full Code Here

Examples of org.hibernate.engine.EntityEntry.forceLocked()

    if ( LockMode.PESSIMISTIC_FORCE_INCREMENT.equals( lockMode ) ) {
      final EntityPersister persister = entry.getPersister();
      Object nextVersion = persister.forceVersionIncrement(
          entry.getId(), entry.getVersion(), event.getSession()
      );
      entry.forceLocked( entity, nextVersion );
    }
    else if ( LockMode.OPTIMISTIC_FORCE_INCREMENT.equals( lockMode ) ) {
      EntityIncrementVersionProcess incrementVersion = new EntityIncrementVersionProcess( entity, entry );
      event.getSession().getActionQueue().registerProcess( incrementVersion );
    }
View Full Code Here

Examples of org.hibernate.engine.EntityEntry.forceLocked()

      EntityEntry entry = session.getPersistenceContext().getEntry(object);
      final EntityPersister persister = entry.getPersister();
      Object nextVersion = persister.forceVersionIncrement(
            entry.getId(), entry.getVersion(), session
      );
      entry.forceLocked( object, nextVersion );
  }

  protected LockMode getLockMode() {
    return lockMode;
  }
View Full Code Here

Examples of org.hibernate.engine.EntityEntry.forceLocked()

    if ( LockMode.PESSIMISTIC_FORCE_INCREMENT.equals( lockMode ) ) {
      final EntityPersister persister = entry.getPersister();
      Object nextVersion = persister.forceVersionIncrement(
          entry.getId(), entry.getVersion(), event.getSession()
      );
      entry.forceLocked( entity, nextVersion );
    }
    else if ( LockMode.OPTIMISTIC_FORCE_INCREMENT.equals( lockMode ) ) {
      EntityIncrementVersionProcess incrementVersion = new EntityIncrementVersionProcess( entity, entry );
      event.getSession().getActionQueue().registerProcess( incrementVersion );
    }
View Full Code Here

Examples of org.hibernate.engine.EntityEntry.forceLocked()

      throw new HibernateException( "[" + lockMode + "] not supported for non-versioned entities [" + lockable.getEntityName() + "]" );
    }
    EntityEntry entry = session.getPersistenceContext().getEntry( object );
    final EntityPersister persister = entry.getPersister();
    Object nextVersion = persister.forceVersionIncrement( entry.getId(), entry.getVersion(), session );
    entry.forceLocked( object, nextVersion );
  }

  /**
   * Retrieve the specific lock mode defined.
   *
 
View Full Code Here

Examples of org.hibernate.engine.spi.EntityEntry.forceLocked()

      throw new HibernateException( "[" + lockMode + "] not supported for non-versioned entities [" + lockable.getEntityName() + "]" );
    }
    final EntityEntry entry = session.getPersistenceContext().getEntry( object );
    final EntityPersister persister = entry.getPersister();
    final Object nextVersion = persister.forceVersionIncrement( entry.getId(), entry.getVersion(), session );
    entry.forceLocked( object, nextVersion );
  }

  /**
   * Retrieve the specific lock mode defined.
   *
 
View Full Code Here

Examples of org.hibernate.engine.spi.EntityEntry.forceLocked()

      final Object nextVersion = persister.forceVersionIncrement(
          entry.getId(),
          entry.getVersion(),
          event.getSession()
      );
      entry.forceLocked( entity, nextVersion );
    }
    else if ( LockMode.OPTIMISTIC_FORCE_INCREMENT.equals( lockMode ) ) {
      final EntityIncrementVersionProcess incrementVersion = new EntityIncrementVersionProcess( entity, entry );
      event.getSession().getActionQueue().registerProcess( incrementVersion );
    }
View Full Code Here

Examples of org.hibernate.engine.spi.EntityEntry.forceLocked()

      throw new HibernateException( "[" + lockMode + "] not supported for non-versioned entities [" + lockable.getEntityName() + "]" );
    }
    EntityEntry entry = session.getPersistenceContext().getEntry( object );
    final EntityPersister persister = entry.getPersister();
    Object nextVersion = persister.forceVersionIncrement( entry.getId(), entry.getVersion(), session );
    entry.forceLocked( object, nextVersion );
  }

  /**
   * Retrieve the specific lock mode defined.
   *
 
View Full Code Here

Examples of org.hibernate.engine.spi.EntityEntry.forceLocked()

    if ( LockMode.PESSIMISTIC_FORCE_INCREMENT.equals( lockMode ) ) {
      final EntityPersister persister = entry.getPersister();
      Object nextVersion = persister.forceVersionIncrement(
          entry.getId(), entry.getVersion(), event.getSession()
      );
      entry.forceLocked( entity, nextVersion );
    }
    else if ( LockMode.OPTIMISTIC_FORCE_INCREMENT.equals( lockMode ) ) {
      EntityIncrementVersionProcess incrementVersion = new EntityIncrementVersionProcess( entity, entry );
      event.getSession().getActionQueue().registerProcess( incrementVersion );
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.