public void setParameter(ParameterSetter parameterSetter, Object value)
throws SQLException {
if (value == null) {
parameterSetter.setNull(Types.TIME);
} else {
MyTime myTime = (MyTime) value;
Calendar c = Calendar.getInstance();
c.set(Calendar.HOUR_OF_DAY, myTime.getHours());
c.set(Calendar.MINUTE, myTime.getMinutes());
c.set(Calendar.SECOND, myTime.getSeconds());
Time time = new Time(c.getTime().getTime());
parameterSetter.setTime(time);
}