private boolean isString(int type) {
        switch (type) {
            case Types.CHAR:
            case Types.VARCHAR:
            case Types.LONGVARCHAR:
                return true;
            default:
                return false;
        }
    }
Indicates whether the given SQL data type is a string type.

@param type one of the constants from <code>java.sql.Types</code>
@return <code>true</code> if the given type is <code>CHAR</code>,'
        <code>VARCHAR</code>, or <code>LONGVARCHAR</code>;
        <code>false</code> otherwise
src/main/java/org/replicadb/rowset/sun/rowset/CachedRowSetImpl.java