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

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


  }
 
  public DataType getDataType(int jdbcType, String name, int size) {
    // TODO: These are in java.sql.Types as of Java 6 but not yet in Java 1.5
    if ("NCHAR".equals(name) || "NVARCHAR".equals(name) || "NCLOB".equals(name)) {
      return new SQLCharacterString(this, name, true);
    }

   
    switch (jdbcType) {
    case Types.CHAR:
    case Types.VARCHAR:
    case Types.LONGVARCHAR:
    case Types.CLOB:
      return new SQLCharacterString(this, name, true);
     
    case Types.BOOLEAN:
      return new SQLBoolean(this, name);

    case Types.BINARY:
View Full Code Here


  @Override
  public DataType getDataType(int jdbcType, String name, int size) {

    // Doesn't support DISTINCT over LOB types
    if (jdbcType == Types.CLOB || "NCLOB".equals(name)) {
      return new SQLCharacterString(this, name, false);
    }
    if (jdbcType == Types.BLOB) {
      return new SQLBinary(this, name, false);
    }
   
View Full Code Here

      return new SQLServerCompatibilityBitDataType(this);
    }

    // Doesn't support DISTINCT over LOB types
    if (jdbcType == Types.CLOB || "NCLOB".equals(name)) {
      return new SQLCharacterString(this, name, false);
    }
    if (jdbcType == Types.BLOB) {
      return new SQLBinary(this, name, false);
    }
View Full Code Here

  @Override
  public DataType getDataType(int jdbcType, String name, int size) {
   
    // Doesn't support DISTINCT over LOB types
    if (jdbcType == Types.CLOB || "NCLOB".equals(name)) {
      return new SQLCharacterString(this, name, false);
    }
    if (jdbcType == Types.BLOB) {
      return new SQLBinary(this, name, false);
    }
   
    DataType standard = super.getDataType(jdbcType, name, size);
    if (standard != null) return standard;

    // Special handling for TIMESTAMP(x) WITH LOCAL TIME ZONE
    if (name.contains("WITH LOCAL TIME ZONE") || "TIMESTAMPLTZ".equals(name)) {
      return new OracleCompatibilityTimeZoneLocalDataType(this, name);
    }
   
    // Special handling for TIMESTAMP(x) WITH TIME ZONE
    if(name.contains("WITH TIME ZONE") || "TIMESTAMPTZ".equals(name)) {
      return new OracleCompatibilityTimeZoneDataType(this, name);
    }
   
    // Oracle-specific character string types
    if ("VARCHAR2".equals(name) || "NVARCHAR2".equals(name)) {
      return new SQLCharacterString(this, name, true);
    }

    // Oracle-specific floating point types
      if ("BINARY_FLOAT".equals(name) || "BINARY_DOUBLE".equals(name)) {
        return new SQLApproximateNumeric(this, name);
View Full Code Here

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

    if ("UUID".equals(name)) {
      return new SQLCharacterString(this, name, true);
    }
   
    // As postGis jdbc is only a wrapper of the org.postgresql.Driver,
    // the JDBC database product type is the one of Postgresql : PostgreSQL
    // Thus Postgis field as geometry are handled here
    if ((jdbcType == Types.OTHER) && ("GEOMETRY".equals(name))) {
      // let try the simpliest version
      return new SQLCharacterString(this, name, true);
    }

    return null;
  }
View Full Code Here

TOP

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

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.