Package org.jpox.store.rdbms.typeinfo

Examples of org.jpox.store.rdbms.typeinfo.PostgreSQLTypeInfo


       
        reservedKeywords.addAll(parseKeywordList(POSTGRESQL_RESERVED_WORDS));

        // Add on any missing JDBC types
        // If the PostgreSQL JDBC driver does not provide info for the CHAR type we fake it as "char" (e.g PSQL 8.1.405)
        TypeInfo ti = new PostgreSQLTypeInfo("char",
            (short)Types.CHAR,
            65000,
            null,
            null,
            null,
            0,
            false,
            (short)3,
            false,
            false,
            false,
            "char",
            (short)0,
            (short)0,
            10);
        addTypeInfo((short)Types.CHAR, ti, true);

        ti = new PostgreSQLTypeInfo("text",
            (short)Types.CLOB,
            9,
            null,
            null,
            null,
            0,
            false,
            (short)3,
            false,
            false,
            false,
            null,
            (short)0,
            (short)0,
            10);
        addTypeInfo((short)Types.CLOB, ti, true);

        ti = new PostgreSQLTypeInfo("BYTEA",
            (short)Types.BLOB,
            9,
            null,
            null,
            null,
View Full Code Here


        return "postgresql";
    }

    public TypeInfo newTypeInfo(ResultSet rs)
    {
        TypeInfo ti = new PostgreSQLTypeInfo(rs);

        /*
         * Since PostgreSQL supports many user defined data types and uses
         * many type aliases the default methods have trouble finding the
         * right associations between JDBC and PostgreSQL data types.  We
View Full Code Here

TOP

Related Classes of org.jpox.store.rdbms.typeinfo.PostgreSQLTypeInfo

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.