question: public ResultSet select ( String query ) throws SQLException { if ( ! isConnected ( ) ) { throw new IllegalStateException ( "Not connected, please connect first!" ) ; } Statement statement ; if ( ! isCursorScrollable ( ) ) { statement = m_Connection . createStatement ( ResultSet . TYPE_FORWARD_ONLY , ResultSet . CONCUR_READ_ONLY ) ; } else { statement = m_Connection . createStatement ( getSupportedCursorScrollType ( ) , ResultSet . CONCUR_READ_ONLY ) ; } ResultSet result = statement . executeQuery ( query ) ; return result ; }
target:  Executes a SQL SELECT query that returns a ResultSet. Note: the ResultSet object must be closed by the caller.