public boolean isBeforeFirst() throws SQLException {
        return !(queryResult.getResultSetType() == ResultSetType.MODIFY || queryResult.getRows() == 0)
                && ((SelectQueryResult) queryResult).getRowPointer() == -1;
    }
public boolean isBeforeFirst ( ) throws SQLException { return ! ( queryResult . getResultSetType ( ) == ResultSetType . MODIFY || queryResult . getRows ( ) == 0 ) && ( ( SelectQueryResult ) queryResult ) . getRowPointer ( ) == - 1 ; }
Retrieves whether the cursor is before the first row in this <code>ResultSet</code> object.
<p/>
<strong>Note:</strong>Support for the <code>isBeforeFirst</code> method is optional for <code>ResultSet</code>s
with a result set type of <code>TYPE_FORWARD_ONLY</code>

@return <code>true</code> if the cursor is before the first row; <code>false</code> if the cursor is at any other
position or the result set contains no rows
@throws java.sql.SQLException if a database access error occurs or this method is called on a closed result set
@throws java.sql.SQLFeatureNotSupportedException
if the JDBC driver does not support this method
@since 1.2