-
- All Superinterfaces:
ScalarSettable
,ScalarTyped
,TokenSettable
,TokenTyped
- All Known Subinterfaces:
TimestampOutputField
- All Known Implementing Classes:
TimestampRegister
public interface TimestampSettable extends ScalarSettable
ATokenSettable
object containing a timestamp value.- See Also:
TokenTypeConstant#TIMESTAMP
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
set(long seconds, int nanos, int offsetSeconds)
Sets the container to a timestamp value specified as time since Java epoch (January 1, 1970 00:00:00 GMT) with time zone and daylight saving time offset.void
set(Timestamp timestamp)
Sets the container to a timestamp value specified as ajava.sql.Timestamp
object, relative to the default time zone.void
set(Timestamp timestamp, TimeZone timeZone)
Sets the container to a timestamp value specified as ajava.sql.Timestamp
object, relative to the given time zone.void
set(Date date)
Sets the container to a timestamp value specified as ajava.util.Date
object, relative to the default time zone.void
set(Date date, TimeZone timeZone)
Sets the container to a timestamp value specified as ajava.util.Date
object, relative to the given time zone.-
Methods inherited from interface com.pervasive.datarush.types.ScalarTyped
getType
-
Methods inherited from interface com.pervasive.datarush.tokens.TokenSettable
set, setNull, setZero
-
-
-
-
Method Detail
-
set
void set(Timestamp timestamp)
Sets the container to a timestamp value specified as ajava.sql.Timestamp
object, relative to the default time zone. The time zone returned byTimeZone.getDefault()
is used.- Parameters:
timestamp
- timestamp value to which to set the container, expressed as a point in time relative to the default time zone.
-
set
void set(Date date)
Sets the container to a timestamp value specified as ajava.util.Date
object, relative to the default time zone. The time zone returned byTimeZone.getDefault()
is used.- Parameters:
date
- timestamp value to which to set the container, expressed as a point in time relative to the default time zone.
-
set
void set(Timestamp timestamp, TimeZone timeZone)
Sets the container to a timestamp value specified as ajava.sql.Timestamp
object, relative to the given time zone.- Parameters:
timestamp
- timestamp value to which to set the container, expressed as a point in time relative to the default time zone.timeZone
- the time zone in which the timestamp should be interpreted
-
set
void set(Date date, TimeZone timeZone)
Sets the container to a timestamp value specified as ajava.util.Date
object, relative to the given time zone.- Parameters:
date
- timestamp value to which to set the container, expressed as a point in time relative to the default time zone.timeZone
- the time zone in which the timestamp should be interpreted
-
set
void set(long seconds, int nanos, int offsetSeconds)
Sets the container to a timestamp value specified as time since Java epoch (January 1, 1970 00:00:00 GMT) with time zone and daylight saving time offset.- Parameters:
seconds
- number of seconds since Java epochnanos
- fractional portion of epoch time in nanosecondsoffsetSeconds
- time zone and daylight saving time offset, in seconds
-
-