Package org.apache.torque

Examples of org.apache.torque.DeadlockException


            return new ConstraintViolationException(sqlException);
        }
        if (StringUtils.equals(sqlException.getSQLState(), "40001"))
        {
            // mysql, derby, mssql
            return new DeadlockException(sqlException);
        }
        if (StringUtils.equals(sqlException.getSQLState(), "40P01"))
        {
            // postgresql
            return new DeadlockException(sqlException);
        }
        if (StringUtils.equals(sqlException.getSQLState(), "61000")
                && sqlException.getErrorCode() == 60)
        {
            // oracle
            return new DeadlockException(sqlException);
        }
        return new TorqueException(sqlException);
    }
View Full Code Here

TOP

Related Classes of org.apache.torque.DeadlockException

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.