public static String getFetchDirectionString ( int direction ) { switch ( direction ) { case ResultSet . FETCH_FORWARD : return "FETCH FORWARD (" + direction + ' ' ; case ResultSet . FETCH_REVERSE : return "FETCH REVERSE (" + direction + ' ' ; case ResultSet . FETCH_UNKNOWN : return "FETCH UNKNOWN (" + direction + ' ' ; } return "UNRECOGNIZED FETCH DIRECTION CONSTANT (" + direction + ' ' ; }
Display the java . sql . ResultSet fetch direction constant corresponding to the value supplied .