7677787980818283
@Override public String getString(final String columnName) { try { return set.getString(columnName); } catch (final SQLException e) { throw new SqlObjectStoreException(e); } }
8586878889909192
@Override public boolean next() { try { return set.next(); } catch (final SQLException e) { throw new SqlObjectStoreException(e); } }
103104105106107108109110
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); } }
119120121122123124125126
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); } }
128129130131132133134135
@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); } }
137138139140141142143144
@Override public Object getObject(final String columnName) { try { return set.getObject(columnName); } catch (final SQLException e) { throw new SqlObjectStoreException(e); } }
154155156157158159160161
// 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); } }
167168169170171172173174
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); } }
176177178179180181182183
@Override public double getDouble(final String columnName) { try { return set.getDouble(columnName); } catch (final SQLException e) { throw new SqlObjectStoreException(e); } }
187188189190191192193194
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); } }