Package org.apache.torque

Examples of org.apache.torque.TooManyRowsException


            log.trace("mapping took " + (mappingEndTime - queryEndTime)
                    + " milliseconds");

            if (criteria.isSingleRecord() && result.size() > 1)
            {
                throw new TooManyRowsException(
                        "Criteria expected single Record and "
                        + "Multiple Records were selected");
            }
            return result;
        }
View Full Code Here


            log.trace("mapping took " + (mappingEndTime - queryEndTime)
                    + " milliseconds");

            if (criteria.isSingleRecord() && result.size() > 1)
            {
                throw new TooManyRowsException(
                        "Criteria expected single Record and "
                        + "Multiple Records were selected");
            }
            return result;
        }
View Full Code Here

    {
        List<TT> resultList = doSelect(criteria, mapper);
        TT result = null;
        if (resultList.size() > 1)
        {
            throw new TooManyRowsException("Criteria " + criteria
                + " matched more than one record");
        }
        if (!resultList.isEmpty())
        {
            result = resultList.get(0);
View Full Code Here

                mapper,
                connection);
        TT result = null;
        if (resultList.size() > 1)
        {
            throw new TooManyRowsException("Criteria " + criteria
                + " matched more than one record");
        }
        if (!resultList.isEmpty())
        {
            result = resultList.get(0);
View Full Code Here

        {
            throw new NoRowsException("Failed to select a row.");
        }
        else if (v.size() > 1)
        {
            throw new TooManyRowsException("Failed to select only one row.");
        }
        else
        {
            return (TurbineRole)v.get(0);
        }
View Full Code Here

        {
            throw new NoRowsException("Failed to select a row.");
        }
        else if (v.size() > 1)
        {
            throw new TooManyRowsException("Failed to select only one row.");
        }
        else
        {
            return (TurbineUserGroupRole)v.get(0);
        }
View Full Code Here

        {
            throw new NoRowsException("Failed to select a row.");
        }
        else if (v.size() > 1)
        {
            throw new TooManyRowsException("Failed to select only one row.");
        }
        else
        {
            return (EmailInbox)v.get(0);
        }
View Full Code Here

        {
            throw new NoRowsException("Failed to select a row.");
        }
        else if (v.size() > 1)
        {
            throw new TooManyRowsException("Failed to select only one row.");
        }
        else
        {
            return (Coffees)v.get(0);
        }
View Full Code Here

        {
            throw new NoRowsException("Failed to select a row.");
        }
        else if (v.size() > 1)
        {
            throw new TooManyRowsException("Failed to select only one row.");
        }
        else
        {
            return (TurbineRolePermission)v.get(0);
        }
View Full Code Here

        {
            throw new NoRowsException("Failed to select a row.");
        }
        else if (v.size() > 1)
        {
            throw new TooManyRowsException("Failed to select only one row.");
        }
        else
        {
            return (TurbineUser)v.get(0);
        }
View Full Code Here

TOP

Related Classes of org.apache.torque.TooManyRowsException

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.