Class TimestampWithTimezone
- java.lang.Object
 - 
- java.util.Date
 - 
- java.sql.Timestamp
 - 
- com.identityworksllc.iiq.common.query.TimestampWithTimezone
 
 
 
 
- 
- All Implemented Interfaces:
 Serializable,Cloneable,Comparable<Date>
public class TimestampWithTimezone extends Timestamp
A small wrapper class for use with “Parameters” for setting a timestamp with timezone in a bulk context.- See Also:
 - Serialized Form
 
 
- 
- 
Constructor Summary
Constructors Constructor Description TimestampWithTimezone(long time, ZoneId tz)Creates a new instance from an epoch millisecond timestamp and a ZoneIdTimestampWithTimezone(long time, TimeZone tz)Creates a new instance from an epoch millisecond timestamp and a TimeZoneTimestampWithTimezone(ZonedDateTime time)Creates a new instance from a ZonedDateTimeTimestampWithTimezone(Calendar time)Creates a new instance from a Calendar, which must have a non-null time zone 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ZoneIdgetZone()Gets the ZoneId associated with this timestampCalendargetZonedCalendar()Gets the zoned calendar for use with PreparedStatement.setTimestamp and other methods- 
Methods inherited from class java.sql.Timestamp
after, before, compareTo, compareTo, equals, equals, from, getNanos, getTime, hashCode, setNanos, setTime, toInstant, toLocalDateTime, toString, valueOf, valueOf 
- 
Methods inherited from class java.util.Date
after, before, clone, getDate, getDay, getHours, getMinutes, getMonth, getSeconds, getTimezoneOffset, getYear, parse, setDate, setHours, setMinutes, setMonth, setSeconds, setYear, toGMTString, toLocaleString, UTC 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
TimestampWithTimezone
public TimestampWithTimezone(Calendar time)
Creates a new instance from a Calendar, which must have a non-null time zone- Parameters:
 time- The calendar instance
 
- 
TimestampWithTimezone
public TimestampWithTimezone(ZonedDateTime time)
Creates a new instance from a ZonedDateTime- Parameters:
 time- The ZonedDateTime instance
 
- 
TimestampWithTimezone
public TimestampWithTimezone(long time, TimeZone tz)
Creates a new instance from an epoch millisecond timestamp and a TimeZone- Parameters:
 time- The epoch millisecond timestamptz- The time zone
 
- 
TimestampWithTimezone
public TimestampWithTimezone(long time, ZoneId tz)
Creates a new instance from an epoch millisecond timestamp and a ZoneId- Parameters:
 time- The epoch millisecond timestamptz- The zone ID
 
 - 
 
- 
Method Detail
- 
getZonedCalendar
public Calendar getZonedCalendar()
Gets the zoned calendar for use with PreparedStatement.setTimestamp and other methods- Returns:
 - The zoned calendar object
 
 
 - 
 
 -