8687888990919293
@Override public boolean next() { try { return set.next(); } catch (final SQLException e) { throw new SqlObjectStoreException(e); } }
104105106107108109110111
final String string = set.getString(columnName); final DateTime utcDate = new DateTime(string, Defaults.getTimeZone()); final java.sql.Date date = new java.sql.Date(utcDate.getMillis()); return date; } catch (final SQLException e) { throw new SqlObjectStoreException(e); } }
120121122123124125126127
final DateTime utcDate = formatter.withZone(Defaults.getTimeZone()).parseDateTime(string); final java.sql.Time time = new java.sql.Time(utcDate.getMillis()); return time; } catch (final SQLException e) { throw new SqlObjectStoreException(e); } }
129130131132133134135136
@Override public java.util.Date getJavaDateTime(final String columnName, final Calendar calendar) { try { return set.getDate(columnName, calendar); } catch (final SQLException e) { throw new SqlObjectStoreException(e); } }
138139140141142143144145
@Override public Object getObject(final String columnName) { try { return set.getObject(columnName); } catch (final SQLException e) { throw new SqlObjectStoreException(e); } }
155156157158159160161162
// date is UTC. final String string = set.getString(columnName); final DateTime utcDate = new DateTime(string, Defaults.getTimeZone()); return new Date(utcDate); } catch (final SQLException e) { throw new SqlObjectStoreException(e); } }
168169170171172173174175
final DateTimeFormatter formatter = DateTimeFormat.forPattern("HH:mm:ss"); final DateTimeZone defaultTimeZone = Defaults.getTimeZone(); final DateTime utcDate = formatter.withZone(defaultTimeZone).parseDateTime(string); return new Time(utcDate); } catch (final SQLException e) { throw new SqlObjectStoreException(e); } }
177178179180181182183184
@Override public double getDouble(final String columnName) { try { return set.getDouble(columnName); } catch (final SQLException e) { throw new SqlObjectStoreException(e); } }
188189190191192193194195
try { final HashMap<String, Class<?>> map = new HashMap<String, Class<?>>(); map.put("FLOAT", float.class); return set.getObject(columnName, map); } catch (final SQLException e) { throw new SqlObjectStoreException(e); } }
197198199200201202203204
@Override public Float getFloat(final String columnName) { try { return set.getFloat(columnName); } catch (final SQLException e) { throw new SqlObjectStoreException(e); } }