private boolean isBoolean(int type) {
        switch (type) {
            case Types.BIT:
            case Types.BOOLEAN:
                return true;
            default:
                return false;
        }
    }
Indicates whether the given SQL data type is a boolean type.
This method is called internally by the conversion methods
<code>convertNumeric</code> and <code>convertBoolean</code>.

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