Package org.jpox.store.rdbms.typeinfo

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


    public HSQLAdapter(DatabaseMetaData metadata)
    {
        super(metadata);

        // Add on any missing JDBC types
        TypeInfo ti = new HSQLTypeInfo("LONGVARCHAR",
            (short)Types.CLOB,
            2147483647,
            "'",
            "'",
            null,
View Full Code Here


     * overwrite this method to appropriate set the TypeInfo (SQL type) for
     * all the columns
   */
    protected void initTypeInfo()
    {
        TypeInfo typeInfo = getTypeInfo();
        if (typeInfo == null)
        {
            throw new UnsupportedDataTypeException(LOCALISER.msg("055000",column));
        }

View Full Code Here

        {
            reservedKeywords.addAll(parseKeywordList(ORACLE_10_RESERVED_WORDS));
        }

        // Add on any missing JDBC types
        TypeInfo ti = new OracleTypeInfo("CLOB",
            (short)Types.CLOB,
            1073741823,
            "'",
            "'",
            null,
View Full Code Here

        super(metadata);

        reservedKeywords.addAll(parseKeywordList(NONSQL92_RESERVED_WORDS));

        // Add on any missing JDBC types
        TypeInfo ti = new MySQLTypeInfo("MEDIUMBLOB",
            (short)Types.BLOB,
            2147483647,
            null,
            null,
            null,
View Full Code Here

     * @param rs The ResultSet from DatabaseMetaData.getTypeInfo().
     * @return A TypeInfo object.
     **/
    public TypeInfo newTypeInfo(ResultSet rs)
    {
        TypeInfo ti=new MySQLTypeInfo(rs);

        // Exclude BINARY and VARBINARY since these equate to CHAR(M) BINARY
        // and VARCHAR(M) BINARY respectively, which aren't true binary
        // types (e.g. trailing space characters are stripped).
        if (ti.typeName.equalsIgnoreCase("binary") ||
View Full Code Here

        try
        {
            while (rs.next())
            {
                TypeInfo ti = newTypeInfo(rs);
                if (ti != null)
                {
                    Integer key = new Integer(ti.dataType);
                    JDBCTypeInfo jti = (JDBCTypeInfo)typesByTypeNumber.get(key);
                    if (jti == null)
View Full Code Here

     *      <code>null</code> if the type indicated by this row should be
     *      excluded from use.
     */
    protected TypeInfo newTypeInfo(ResultSet rs)
    {
        return new TypeInfo(rs);
    }
View Full Code Here

     * @param rs The ResultSet from DatabaseMetaData.getTypeInfo().
     * @return A TypeInfo object.
     **/
    public TypeInfo newTypeInfo(ResultSet rs)
    {
        TypeInfo ti=new FirebirdTypeInfo(rs);

        return ti;
    }
View Full Code Here

        return new SybaseColumnInfo(rs);
    }

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

        // Discard the tinyint type because it doesn't support negative values.
        if (ti.typeName.toLowerCase().startsWith("tinyint"))
        {
            return null;
View Full Code Here

        super(metadata);

        reservedKeywords.addAll(parseKeywordList(MSSQL_RESERVED_WORDS));

        // Add on any missing JDBC types
        TypeInfo ti = new MSSQLTypeInfo("UNIQUEIDENTIFIER",
            (short)Types.CHAR,
             36,
             "'",
             "'",
             "",
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.