Package org.jpox.store.rdbms.typeinfo

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


        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


       
        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,
View Full Code Here

        super(metadata);

        reservedKeywords.addAll(parseKeywordList(DB2_RESERVED_WORDS));

        // Add on any missing JDBC types
        TypeInfo ti = new DB2TypeInfo("FLOAT",
            (short)Types.FLOAT,
             53,
             null,
             null,
             null,
View Full Code Here

        return false;
    }

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

        return ti;
    }
View Full Code Here

        //somehow BIGINT is set to 9
        JDBCTypeInfo fromJDBC = (JDBCTypeInfo) typesByTypeNumber.get(new Integer(9));
        if (fromJDBC != null)
        {
            TypeInfo ti = new TypeInfo(fromJDBC.defaultTypeInfo.typeName,
                (short)Types.BIGINT,
                fromJDBC.defaultTypeInfo.precision,
                fromJDBC.defaultTypeInfo.literalPrefix,
                fromJDBC.defaultTypeInfo.literalSuffix,
                fromJDBC.defaultTypeInfo.createParams,
                fromJDBC.defaultTypeInfo.nullable,
                fromJDBC.defaultTypeInfo.caseSensitive,
                fromJDBC.defaultTypeInfo.searchable,
                fromJDBC.defaultTypeInfo.unsignedAttribute,
                fromJDBC.defaultTypeInfo.fixedPrecScale,
                fromJDBC.defaultTypeInfo.autoIncrement,
                fromJDBC.defaultTypeInfo.localTypeName,
                fromJDBC.defaultTypeInfo.minimumScale,
                fromJDBC.defaultTypeInfo.maximumScale,
                fromJDBC.defaultTypeInfo.numPrecRadix);
            addTypeInfo((short)Types.BIGINT, ti, true);
        }

        //somehow BOOLEAN is set to 16
        fromJDBC = (JDBCTypeInfo) typesByTypeNumber.get(new Integer(16));
        if (fromJDBC != null)
        {
            TypeInfo ti = new TypeInfo(fromJDBC.defaultTypeInfo.typeName,
                (short)Types.BOOLEAN,
                fromJDBC.defaultTypeInfo.precision,
                fromJDBC.defaultTypeInfo.literalPrefix,
                fromJDBC.defaultTypeInfo.literalSuffix,
                fromJDBC.defaultTypeInfo.createParams,
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

                    colmd.setLength(getStoreManager().getOMFContext().getPersistenceConfiguration().getIntProperty("org.jpox.rdbms.stringDefaultLength"));
                }
                IdentifierFactory idFactory = getStoreManager().getIdentifierFactory();
                DatastoreIdentifier colIdentifier = idFactory.newIdentifier(IdentifierFactory.COLUMN, colmd.getName());
                Column col = (Column)addDatastoreField(null, colIdentifier, null, colmd);
                TypeInfo typeInfo = dba.getTypeInfo(JDBCUtils.getJDBCTypeForName(colmd.getJdbcType()));
                col.setTypeInfo(typeInfo);

                if (unmappedColumns == null)
                {
                    unmappedColumns = new HashSet();
View Full Code Here

TOP

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

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.