Examples of LockTimeoutException


Examples of org.hibernate.exception.LockTimeoutException

        final int errorCode = JdbcExceptionHelper.extractErrorCode( sqlException );

        if ( errorCode == 131 ) {
          // 131 - Transaction rolled back by lock wait timeout
          return new LockTimeoutException( message, sqlException, sql );
        }

        if ( errorCode == 146 ) {
          // 146 - Resource busy and acquire with NOWAIT specified
          return new LockTimeoutException( message, sqlException, sql );
        }

        if ( errorCode == 132 ) {
          // 132 - Transaction rolled back due to unavailable resource
          return new LockAcquisitionException( message, sqlException, sql );
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.