Package org.apache.torque

Examples of org.apache.torque.ConstraintViolationException


    @Override
    public TorqueException toTorqueException(SQLException sqlException)
    {
        if (StringUtils.startsWith(sqlException.getSQLState(), "23"))
        {
            return new ConstraintViolationException(sqlException);
        }
        if (StringUtils.equals(sqlException.getSQLState(), "40001"))
        {
            // mysql, derby, mssql
            return new DeadlockException(sqlException);
View Full Code Here

TOP

Related Classes of org.apache.torque.ConstraintViolationException

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.