public static java.sql.Time toSqlTime(String hourStr,String minuteStr,String secondStr){
  java.util.Date newDate=toDate("0","0","0",hourStr,minuteStr,secondStr);
  if (newDate != null) {
    return new java.sql.Time(newDate.getTime());
  }
 else {
    return null;
  }
}

public static java . sql . Time toSqlTime ( String hourStr , String minuteStr , String secondStr ) { java . util . Date newDate = toDate ( "0" , "0" , "0" , hourStr , minuteStr , secondStr ) ; if ( newDate != null ) { return new java . sql . Time ( newDate . getTime ( ) ) ; } else { return null ; } }
makes a java . sql . time from separate strings for hour , minute , and second .
