Java SDK Documentation
11.0.1
|
Static Public Member Functions | |
static int | getNumericPrecision (int typmod) |
Get Numeric precision from typmod. | |
static int | getNumericScale (int typmod) |
Get Numeric scale from typmod. | |
static int | getNumericWordCount (int precision) |
Get Numeric word count from precision. | |
static boolean | isSimilarNumericTypmod (int a, int b) |
Return true if these have the same EE representation. | |
static long | JavaSQLDateToVerticaDate (java.sql.Date d) |
static long | JavaSQLTimestampToVerticaTimestamp (java.sql.Timestamp ts) |
static java.sql.Date | VerticaDateToJavaSQLDate (long num_days) |
static java.sql.Timestamp | VerticaTimestampToJavaSQLTimestamp (long vts) |
|
static |
Get the internal value that Vertica stores for the date
type.
d | A date value. Java stores Date objects as an offset from 1970-01-01 00:00:00 GMT. The day represented by d is the calendar date of d in GMT. |
date
type internally to vertica Referenced by com.vertica.sdk.ParamWriter.setDate(), and com.vertica.sdk.BlockWriter.setDate().
|
static |
num_days | number of days since 2000-01-01 |
|
static |
vts | number of microseconds since 2000-01-01 00:00:00 GMT |