Package org.apache.ojb.broker.metadata

Examples of org.apache.ojb.broker.metadata.JdbcType


            m_containers = new ValueContainer[containers.length];

            for(int i = 0; i < containers.length; i++)
            {
                Object value = containers[i].getValue();
                JdbcType type = containers[i].getJdbcType();

                // BRJ:
                // convert all Numbers to Long to simplify equals
                // Long(100) is not equal to Integer(100)
                //
View Full Code Here


            m_containers = new ValueContainer[containers.length];

            for(int i = 0; i < containers.length; i++)
            {
                Object value = containers[i].getValue();
                JdbcType type = containers[i].getJdbcType();

                // BRJ:
                // convert all Numbers to Long to simplify equals
                // Long(100) is not equal to Integer(100)
                //
View Full Code Here

            m_containers = new ValueContainer[containers.length];

            for (int i = 0; i < containers.length; i++)
            {
                Object value = containers[i].getValue();
                JdbcType type = containers[i].getJdbcType();

                // BRJ:
                // convert all Numbers to Long to simplify equals
                // Long(100) is not equal to Integer(100)
                //
View Full Code Here

     * Lookup the {@link JdbcType} by name. If name was not found an exception
     * is thrown.
     */
    public static JdbcType getJdbcTypeByName(String typeName)
    {
        JdbcType result = null;
        result = (JdbcType) jdbcObjectTypesFromName.get(typeName.toLowerCase());
        if (result == null)
        {
            throw new OJBRuntimeException("The type " + typeName + " can not be handled by OJB." +
                    " Please specify only types as defined by java.sql.Types.");
View Full Code Here

     *
     * @see org.apache.ojb.broker.metadata.FieldDescriptor#getJdbcType
     */
    public static JdbcType getJdbcTypeByReflection(String fieldType)
    {
        JdbcType result;
        if (fieldType.equalsIgnoreCase(Character.class.getName()) || fieldType.equalsIgnoreCase("char"))
            result = getJdbcTypeByName("char");
        else if (fieldType.equalsIgnoreCase(Short.class.getName()) || fieldType.equalsIgnoreCase("short"))
            result = getJdbcTypeByName("smallint");
        else if (fieldType.equalsIgnoreCase(Integer.class.getName()) || fieldType.equalsIgnoreCase("int"))
View Full Code Here

TOP

Related Classes of org.apache.ojb.broker.metadata.JdbcType

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.