Package org.apache.ojb.broker.accesslayer.conversions

Examples of org.apache.ojb.broker.accesslayer.conversions.ConversionException


            {
                ret = new BigDecimal(((Long) source).doubleValue());
            }
            else
            {
                throw new ConversionException(
                        "java-->sql, expected type was"+Long.class.getClass()+
                        ", found type "+source.getClass());
            }
            return ret;
        }
View Full Code Here


            {
                ret = new Long(((BigDecimal) source).longValue());
            }
            else
            {
                throw new ConversionException(
                        "sql-->java, expected type was"+BigDecimal.class.getClass()+
                        ", found type "+source.getClass());
            }
            return ret;
        }
View Full Code Here

    {
        public Object javaToSql(Object source) throws ConversionException
        {
            if (!(source instanceof ConversionId))
            {
                throw new ConversionException(
                        "Wrong java field type when java-->sql, expected " +
                        ConversionId.class.getClass() + ", found "
                        + source.getClass());
            }
            return ((ConversionId) source).getConversionId();
View Full Code Here

        public Object sqlToJava(Object source) throws ConversionException
        {
            if (!(source instanceof Integer))
            {
                throw new ConversionException(
                        "Wrong java field type when java-->sql, expected java.lang.Integer, found "
                        + source.getClass());
            }
            return new ConversionId((Integer) source);
        }
View Full Code Here

    {
        public Object javaToSql(Object source) throws ConversionException
        {
            if (!(source instanceof Long))
            {
                throw new ConversionException(
                        "Wrong java field type when java-->sql, expected java.lang.Long, found "
                        + source.getClass());
            }
            return new Integer(((Long) source).intValue());
        }
View Full Code Here

        public Object sqlToJava(Object source) throws ConversionException
        {
            if (!(source instanceof Integer))
            {
                throw new ConversionException(
                        "Wrong java field type when java-->sql, expected java.lang.Integer, found "
                        + source.getClass());
            }
            return new Long(((Integer) source).longValue());
        }
View Full Code Here

                    ret = new BigDecimal(((Long) source).doubleValue());
                }
            }
            else
            {
                throw new ConversionException(
                        "java-->sql, expected type was"+Long.class.getClass()+
                        ", found type "+source.getClass());
            }
            return ret;
        }
View Full Code Here

            {
                ret = new Long(((BigDecimal) source).longValue());
            }
            else
            {
                throw new ConversionException(
                        "sql-->java, expected type was"+BigDecimal.class.getClass()+
                        ", found type "+source.getClass());
            }
            return ret;
        }
View Full Code Here

            {
                ret = new BigDecimal(((Long) source).doubleValue());
            }
            else
            {
                throw new ConversionException(
                        "java-->sql, expected type was"+Long.class.getClass()+
                        ", found type "+source.getClass());
            }
            return ret;
        }
View Full Code Here

            {
                ret = new Long(((BigDecimal) source).longValue());
            }
            else
            {
                throw new ConversionException(
                        "sql-->java, expected type was"+BigDecimal.class.getClass()+
                        ", found type "+source.getClass());
            }
            return ret;
        }
View Full Code Here

TOP

Related Classes of org.apache.ojb.broker.accesslayer.conversions.ConversionException

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.