Package org.hibernate

Examples of org.hibernate.PessimisticLockException


          return new LockAcquisitionException( message, sqlException, sql );
        }

        if ( "55P03".equals( sqlState ) ) {
          // LOCK NOT AVAILABLE
          return new PessimisticLockException( message, sqlException, sql );
        }

        // returning null allows other delegates to operate
        return null;
      }
View Full Code Here


            return new LockAcquisitionException(message, sqlException, sql);
          }

          if (50200 == errorCode) {
            // LOCK NOT AVAILABLE
            return new PessimisticLockException(message, sqlException, sql);
          }

          if ( 90006 == errorCode ) {
            // NULL not allowed for column [90006-145]
            final String constraintName = getViolatedConstraintNameExtracter().extractConstraintName( sqlException );
View Full Code Here

      JDBCException e = session.getFactory().getSQLExceptionHelper().convert(
          sqle,
          "could not lock: " + MessageHelper.infoString( getLockable(), id, session.getFactory() ),
          sql
      );
      throw new PessimisticLockException( "could not obtain pessimistic lock", e, object );
    }
  }
View Full Code Here

      JDBCException e = session.getFactory().getSQLExceptionHelper().convert(
          sqle,
          "could not lock: " + MessageHelper.infoString( getLockable(), id, session.getFactory() ),
          sql
      );
      throw new PessimisticLockException( "could not obtain pessimistic lock", e, object );
    }
  }
View Full Code Here

      JDBCException e = session.getFactory().getSQLExceptionHelper().convert(
          sqle,
          "could not lock: " + MessageHelper.infoString( lockable, id, session.getFactory() ),
          sql
        );
      throw new PessimisticLockException("could not obtain pessimistic lock", e, object);
    }
  }
View Full Code Here

      JDBCException e = session.getFactory().getSQLExceptionHelper().convert(
          sqle,
          "could not lock: " + MessageHelper.infoString( lockable, id, session.getFactory() ),
          sql
        );
      throw new PessimisticLockException("could not obtain pessimistic lock", e, object);
    }
  }
View Full Code Here

        return new LockAcquisitionException( message, sqlException, sql );
      }

      if ( "40XL1".equals( sqlState ) || "40XL2".equals( sqlState )) {
        // Derby "A lock could not be obtained within the time requested."
        return new PessimisticLockException( message, sqlException, sql );
      }

      // MySQL Query execution was interrupted
      if ( "70100".equals( sqlState ) ||
        // Oracle user requested cancel of current operation
View Full Code Here

          session.getFactory().getSQLExceptionConverter(),
          sqle,
          "could not lock: " + MessageHelper.infoString( lockable, id, session.getFactory() ),
          sql
        );
      throw new PessimisticLockException("could not obtain pessimistic lock", e, object);
    }
  }
View Full Code Here

          session.getFactory().getSQLExceptionConverter(),
          sqle,
          "could not lock: " + MessageHelper.infoString( lockable, id, session.getFactory() ),
          sql
        );
      throw new PessimisticLockException("could not obtain pessimistic lock", e, object);
    }
  }
View Full Code Here

                    if (40001 == errorCode) { // DEADLOCK DETECTED
                        exception = new LockAcquisitionException(message, sqlException, sql);
                    }

                    if (50200 == errorCode) { // LOCK NOT AVAILABLE
                        exception = new PessimisticLockException(message, sqlException, sql);
                    }

          if ( 90006 == errorCode ) {
            // NULL not allowed for column [90006-145]
            final String constraintName = getViolatedConstraintNameExtracter().extractConstraintName( sqlException );
View Full Code Here

TOP

Related Classes of org.hibernate.PessimisticLockException

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.