Examples of MSSQLTypeInfo


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

        super(metadata);

        reservedKeywords.addAll(parseKeywordList(MSSQL_RESERVED_WORDS));

        // Add on any missing JDBC types
        TypeInfo ti = new MSSQLTypeInfo("UNIQUEIDENTIFIER",
            (short)Types.CHAR,
             36,
             "'",
             "'",
             "",
             1,
             false,
             (short)2,
             false,
             false,
             false,
             "UNIQUEIDENTIFIER",
             (short)0,
             (short)0,
             10);
        ti.allowsPrecisionSpec = false;
        addTypeInfo((short)MSSQLTypeInfo.UNIQUEIDENTIFIER, ti, true);

        ti = new MSSQLTypeInfo("IMAGE",
            (short)Types.BLOB,
            2147483647,
            null,
            null,
            null,
            1,
            false,
            (short)1,
            false,
            false,
            false,
            "BLOB",
            (short)0,
            (short)0,
            0);
        addTypeInfo((short)Types.BLOB, ti, true);

        ti = new MSSQLTypeInfo("TEXT",
            (short)Types.CLOB,
            2147483647,
            null,
            null,
            null,
            1,
            true,
            (short)1,
            false,
            false,
            false,
            "TEXT",
            (short)0,
            (short)0,
            0);
        addTypeInfo((short)Types.CLOB, ti, true);

        ti = new MSSQLTypeInfo("float", //double precision
            (short)Types.DOUBLE,
            53,
            null,
            null,
            null,
            1,
            false,
            (short)2,
            false,
            false,
            false,
            null,
            (short)0,
            (short)0,
            2);
        addTypeInfo((short)Types.DOUBLE, ti, true);

        ti = new MSSQLTypeInfo("IMAGE",
            (short)Types.LONGVARBINARY,
            2147483647,
            null,
            null,
            null,
View Full Code Here

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

        return new TableExprAsJoins(qs, table, rangeVar);
    }

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

        /*
         * Discard the tinyint type because it doesn't support negative values.
         */
        if (ti.typeName.toLowerCase().startsWith("tinyint"))
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.