public static String getConcurrencyModeString ( int concurrency ) { switch ( concurrency ) { case ResultSet . CONCUR_READ_ONLY : return "CONCUR READ ONLY (" + concurrency + ' ' ; case ResultSet . CONCUR_UPDATABLE : return "CONCUR UPDATABLE (" + concurrency + ' ' ; case CONCUR_SS_SCROLL_LOCKS : return "CONCUR SS SCROLL LOCKS (" + concurrency + ' ' ; case CONCUR_SS_OPTIMISTIC_CCVAL : return "CONCUR SS OPTIMISTIC CCVAL (" + concurrency + ' ' ; } return "UNKNOWN RESULT SET CONCURRENCY (" + concurrency + ' ' ; }
Display the java . sql . ResultSet concurrency mode constant corresponding to the value supplied .