Class TIMESTAMPHelper
java.lang.Object
org.eclipse.persistence.internal.platform.database.oracle.TIMESTAMPHelper
Used as a helper class for TIMESTAMP, TIMESTAMPTZ and TIMESTAMPLTZ in oracle9.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CalendarbuildCalendar(TIMESTAMPLTZWrapper timestampLTZ) Build a calendar from TIMESTAMPLTZWrapper.static CalendarbuildCalendar(TIMESTAMPTZWrapper timestampTZ) Build a calendar from TIMESTAMPTZWrapper.static oracle.sql.TIMESTAMPTZbuildTIMESTAMPTZ(Calendar cal, Connection con, boolean shouldPrintCalendar) This conversion required the use of the literal string to get the same functionality as the native SQL to_timestamp() approach.static TimeZoneextractTimeZone(byte[] bytes) Extract TimeZone from TIMESTAMPTZ.static StringprintCalendar(Calendar calendar) Build a calendar string based on the calendar fields.static booleanshouldAppendDaylightTime(Calendar calendar) Return true if the calendar supports and is in daylight time (according to its timezone), false otherwise
-
Constructor Details
-
TIMESTAMPHelper
public TIMESTAMPHelper()
-
-
Method Details
-
buildTIMESTAMPTZ
public static oracle.sql.TIMESTAMPTZ buildTIMESTAMPTZ(Calendar cal, Connection con, boolean shouldPrintCalendar) throws SQLException This conversion required the use of the literal string to get the same functionality as the native SQL to_timestamp() approach.- Throws:
SQLException
-
buildCalendar
Build a calendar from TIMESTAMPTZWrapper. -
buildCalendar
Build a calendar from TIMESTAMPLTZWrapper. -
printCalendar
Build a calendar string based on the calendar fields. If the daylight savings time should be printed and the zone is in daylight savings time, print the short representation of daylight savings from the calendar's timezone data. -
shouldAppendDaylightTime
Return true if the calendar supports and is in daylight time (according to its timezone), false otherwise -
extractTimeZone
Extract TimeZone from TIMESTAMPTZ.
-