Package org.apache.cayenne

Examples of org.apache.cayenne.ExtendedEnumeration


            Object value,
            int pos,
            int type,
            int precision) throws Exception {
        if (value instanceof ExtendedEnumeration) {
            ExtendedEnumeration e = (ExtendedEnumeration) value;

            if (TypesMapping.isNumeric(type))
                statement.setInt(pos, (Integer) e.getDatabaseValue());
            else
                statement.setString(pos, (String) e.getDatabaseValue());
        }
        else {
            statement.setNull(pos, type);
        }
    }
View Full Code Here


            Object value,
            int pos,
            int type,
            int precision) throws Exception {
        if (value instanceof ExtendedEnumeration) {
            ExtendedEnumeration e = (ExtendedEnumeration) value;

            if (TypesMapping.isNumeric(type))
                statement.setInt(pos, (Integer) e.getDatabaseValue());
            else
                statement.setString(pos, (String) e.getDatabaseValue());
        }
        else {
            statement.setNull(pos, type);
        }
    }
View Full Code Here

            Object value,
            int pos,
            int type,
            int precision) throws Exception {
        if (value instanceof ExtendedEnumeration) {
            ExtendedEnumeration e = (ExtendedEnumeration) value;

            if (TypesMapping.isNumeric(type))
                statement.setInt(pos, (Integer) e.getDatabaseValue());
            else
                statement.setString(pos, (String) e.getDatabaseValue());
        }
        else {
            statement.setNull(pos, type);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.cayenne.ExtendedEnumeration

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.