public Object nullSafeGet(ResultSet resultSet, String string) throws SQLException { Object timestamp = StandardBasicTypes.TIMESTAMP.nullSafeGet(resultSet, string); if (timestamp == null) { return null; } return new DateTime(timestamp); }
public Object nullSafeGet(ResultSet resultSet, String string) throws SQLException { Object timestamp = StandardBasicTypes.TIMESTAMP.nullSafeGet(resultSet, string); if (timestamp == null) { return null; } return new DateTime(timestamp); }
@Override public Object nullSafeGet(final ResultSet rs, final String[] names, final SessionImplementor session, final Object owner) throws HibernateException, SQLException { final Object timestamp = StandardBasicTypes.TIMESTAMP.nullSafeGet(rs, names[0], session, owner); if (timestamp == null) { return null; } return new DateTime(timestamp); }
@Override public Object nullSafeGet(ResultSet resultSet, String[] names, SessionImplementor session, Object owner) throws HibernateException, SQLException { Object timestamp = StandardBasicTypes.TIMESTAMP.nullSafeGet(resultSet, names, session, owner); if (timestamp == null) { return null; } return new DateTime(timestamp); }
@Override public Object nullSafeGet(ResultSet rs, String[] names, SessionImplementor session, Object owner) throws HibernateException, SQLException { Date timestamp = (Date) StandardBasicTypes.TIMESTAMP.nullSafeGet(rs, names, session, owner); if (timestamp == null) { return null; } return LocalDateTime.ofInstant(timestamp.toInstant(), ZoneId.systemDefault()); }
@Override public Object nullSafeGet(ResultSet rs, String[] names, SessionImplementor session, Object owner) throws HibernateException, SQLException { Date timestamp = (Date) StandardBasicTypes.TIMESTAMP.nullSafeGet(rs, names, session, owner); if (timestamp == null) { return null; } return LocalDateTime.ofInstant(timestamp.toInstant(), ZoneId.systemDefault()); }
public Object nullSafeGet(ResultSet resultSet, String name) throws SQLException { Object value = StandardBasicTypes.TIMESTAMP.nullSafeGet(resultSet, name); if (value == null) { return null; } return new Instant(value); }
public Object nullSafeGet(ResultSet resultSet, String string) throws SQLException { Object timestamp = StandardBasicTypes.TIMESTAMP.nullSafeGet(resultSet, string); if (timestamp == null) { return null; } return new LocalTime(timestamp, DateTimeZone.UTC); }
@Override public Object nullSafeGet(ResultSet rs, String[] names, SharedSessionContractImplementor sharedSessionContractImplementor, Object owner) throws HibernateException, SQLException { Timestamp timestamp = (Timestamp) StandardBasicTypes.TIMESTAMP.nullSafeGet(rs, names[0], sharedSessionContractImplementor, owner); String timezone = (String) StandardBasicTypes.STRING.nullSafeGet(rs, names[1], sharedSessionContractImplementor, owner); if (timestamp == null || timezone == null) return null; else return new DateTime(timestamp, DateTimeZone.forID(timezone)); }
@Override public Object nullSafeGet(ResultSet rs, String[] names, SharedSessionContractImplementor sharedSessionContractImplementor, Object owner) throws HibernateException, SQLException { Object value = StandardBasicTypes.TIMESTAMP.nullSafeGet(rs, names[0], sharedSessionContractImplementor, owner); return asDateTime(value); }
public Object nullSafeGet(ResultSet resultSet, String[] strings, Object object) throws HibernateException, SQLException { Object timestamp = StandardBasicTypes.TIMESTAMP.nullSafeGet(resultSet, strings[0]); Object timezone = StandardBasicTypes.STRING.nullSafeGet(resultSet, strings[1]); if (timestamp == null || timezone == null) { return null; } return new DateTime(timestamp, DateTimeZone.forID(timezone.toString())); }
public Object nullSafeGet(ResultSet resultSet, String[] strings, Object object) throws HibernateException, SQLException { Object timestamp = StandardBasicTypes.TIMESTAMP.nullSafeGet(resultSet, strings[0]); Object timezone = StandardBasicTypes.STRING.nullSafeGet(resultSet, strings[1]); if (timestamp == null || timezone == null) { return null; } return new DateTime(timestamp, DateTimeZone.forID(timezone.toString())); }
public Object nullSafeGet(ResultSet resultSet, String name) throws SQLException { Object value = StandardBasicTypes.TIMESTAMP.nullSafeGet(resultSet, name); if (value == null) { return null; } return new Instant(value); }
public Object nullSafeGet(ResultSet resultSet, String string) throws SQLException { Object timestamp = StandardBasicTypes.TIMESTAMP.nullSafeGet(resultSet, string); if (timestamp == null) { return null; } return new LocalTime(timestamp, DateTimeZone.UTC); }
public Object nullSafeGet(ResultSet resultSet, String string) throws SQLException { Object timestamp = StandardBasicTypes.TIMESTAMP.nullSafeGet(resultSet, string); if (timestamp == null) { return null; } if (timestamp instanceof Date) { return LocalDateTime.fromDateFields((Date) timestamp); } else if (timestamp instanceof Calendar) { return LocalDateTime.fromCalendarFields((Calendar) timestamp); } return new LocalDateTime(timestamp); }
public Object nullSafeGet(ResultSet resultSet, String string) throws SQLException { Object timestamp = StandardBasicTypes.TIMESTAMP.nullSafeGet(resultSet, string); if (timestamp == null) { return null; } if (timestamp instanceof Date) { return LocalDateTime.fromDateFields((Date) timestamp); } else if (timestamp instanceof Calendar) { return LocalDateTime.fromCalendarFields((Calendar) timestamp); } return new LocalDateTime(timestamp); }