Package de.fuberlin.wiwiss.d2rq.sql.types

Examples of de.fuberlin.wiwiss.d2rq.sql.types.SQLBoolean


    // TINYINT(1) is conventionally treated as BOOLEAN in MySQL.
    // MySQL reports TINYINT(1) either as Types.BIT with size 0,
    // or as Types.BIT with type name still TINYINT. All real BIT
    // types are reported with a size > 0.
    if (jdbcType == Types.BIT && ("TINYINT".equals(name) || size == 0)) {
      return new SQLBoolean(this, name);
    }

    // MySQL supports UNSIGNED varieties of the integer types
    if (name.contains("UNSIGNED")) {
      return new SQLExactNumeric(this, name, jdbcType, true);
View Full Code Here


    // The PostgreSQL JDBC driver reports boolean types as BIT(1),
    // but the type name is still BOOL. We don't check the size here
    // to also catch the case of a SELECT query result, where column
    // size isn't reported.
    if (jdbcType == Types.BIT && "BOOL".equals(name)) {
      return new SQLBoolean(this, name);
    }

    DataType standard = super.getDataType(jdbcType, name, size);
    if (standard != null) return standard;
View Full Code Here

    case Types.LONGVARCHAR:
    case Types.CLOB:
      return new SQLCharacterString(this, name, true);
     
    case Types.BOOLEAN:
      return new SQLBoolean(this, name);

    case Types.BINARY:
    case Types.VARBINARY:
    case Types.LONGVARBINARY:
    case Types.BLOB:
View Full Code Here

TOP

Related Classes of de.fuberlin.wiwiss.d2rq.sql.types.SQLBoolean

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.