public boolean isSupportedPropertyType ( int sqlTypeId , String sqlTypeName ) throws SQLException { switch ( sqlTypeId ) { case Types . BOOLEAN : case Types . DOUBLE : case Types . FLOAT : case Types . INTEGER : case Types . BIGINT : case Types . SMALLINT : case Types . DATE : case Types . VARCHAR : case Types . NCHAR : case Types . CHAR : case Types . ARRAY : case Types . OTHER : case Types . DECIMAL : case Types . REAL : case Types . TINYINT : case Types . NUMERIC : case Types . NULL : return true ; default : throw new SQLException ( "Field type not supported by GeoJSON driver: " + sqlTypeName ) ; } }
Return true is the SQL type is supported by the GeoJSON driver .