code: protected DbColumnType toPdbType(final int type, final String typeName) {
          switch (type) {
              case Types.BIT:
              case Types.BOOLEAN:
                  return DbColumnType.BOOLEAN;
  
              case Types.CHAR:
              case Types.LONGNVARCHAR:
              case Types.LONGVARCHAR:
              case Types.NCHAR:
              case Types.NVARCHAR:
              case Types.ROWID:
              case Types.SQLXML:
              case Types.VARCHAR:
                  return DbColumnType.STRING;
  
              case Types.INTEGER:
              case Types.SMALLINT:
              case Types.TINYINT:
                  return DbColumnType.INT;
  
              case Types.DECIMAL:
              case Types.DOUBLE:
              case Types.FLOAT:
              case Types.NUMERIC:
              case Types.REAL:
                  return DbColumnType.DOUBLE;
  
              case Types.BIGINT:
              case Types.TIMESTAMP:
                  return DbColumnType.LONG;
  
              case Types.BINARY:
              case Types.BLOB:
              case Types.JAVA_OBJECT:
              case Types.LONGVARBINARY:
              case Types.VARBINARY:
                  return DbColumnType.BLOB;
  
              case Types.CLOB:
              case Types.NCLOB:
                  return DbColumnType.CLOB;
  
              case Types.ARRAY:
              case Types.DATALINK:
              case Types.DATE:
              case Types.DISTINCT:
              case Types.NULL:
              case Types.OTHER:
              case Types.REF:
              case Types.REF_CURSOR:
              case Types.STRUCT:
              case Types.TIME:
              case Types.TIME_WITH_TIMEZONE:
              case Types.TIMESTAMP_WITH_TIMEZONE:
              default:
                  return DbColumnType.UNMAPPED;
          }
      }
docs: Maps the database type to {@link DbColumnType}. If there's no mapping a {@link DbColumnType#UNMAPPED} is returned.
  
  @param type     The SQL type from {@link java.sql.Types}.
  @param typeName The native database type name.  It provides additional information for
  derived classes to resolve types unmapped here.
  @return The {@link DbColumnType}.