public V get ( ) throws SQLException { V result = next ( ) ; if ( result != null ) { int spurious = 0 ; while ( next ( ) != null ) { spurious ++ ; } if ( spurious > 0 ) { log . warning ( "Cursor.get() quietly tossed " + spurious + " spurious additional " + "records." , "query" , _query ) ; } } return result ; }
Returns the first element matched by this cursor or null if no elements were matched . Checks to ensure that no subsequent elements were matched by the query logs a warning if there were spurious additional matches .