case Types.TIME:
{
Time time = stmt.getTime(field);
if (time != null) {
Context context = Context.getInstance();
Calendar cal = Calendar.getInstance(context.getTimeZone(), context.getLocale());
cal.setTime(time);
return new AnyCalendar(cal);
} else {
return Any.NULL;
}
}
case Types.TIMESTAMP:
{
Timestamp time = stmt.getTimestamp(field);
if (time != null) {
Context context = Context.getInstance();
Calendar cal = Calendar.getInstance(context.getTimeZone(), context.getLocale());
cal.setTime(time);
return new AnyCalendar(cal);
} else {
return Any.NULL;
}
}
case Types.DATE:
{
Date date = stmt.getDate(field);
if (date != null) {
Context context = Context.getInstance();
Calendar cal = Calendar.getInstance(context.getTimeZone(), context.getLocale());
cal.setTime(date);
return new AnyCalendar(cal);
} else {
return Any.NULL;
}