| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final String | DATE_TIME_FORMAT
The date format of a MySQL formatted date/time. |
| private static final String[] | FORMAT_REPLACE
Format replacements for MySQL date formats. |
| private static final int | |
| private static final HashMap | |
| private static final int | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected void | checkParameterCount(int
the number of parameters set len)Overrides org. Check if the parameter count is correct. |
| private static String | |
| public static String | Returns: a formatted date/time String in the format "yyyy-MM-dd HH:mm:ss".The current timestamp in seconds. seconds)See https://dev.mysql.com/doc/refman/5.1/en/date-and-time-functions.html#function_from-unixtime |
| public static String | Returns: a formatted date/time String in the given format.The current timestamp in seconds. seconds, String The format of the date/time String to return. format)See https://dev.mysql.com/doc/refman/5.1/en/date-and-time-functions.html#function_from-unixtime |
| public static FunctionsMySQL | Returns: the function with specified name ornullthe upper-case name of a function upperName)Returns mode-specific function for a given name, or |
| public Value | getValue(SessionLocal
the session session)Overrides org. Return the resulting value for the current row. |
| public Expression | optimize(SessionLocal
the session session)Implements abstract org. Try to optimize the expression. |
| public static int | Returns: the timestamp in seconds since EPOCHthe session session, Value the timestamp value)Get the seconds since 1970-01-01 00:00:00 UTC of the given timestamp. |
| DATE | back to summary |
|---|---|
| private static final int DATE | |
| DATE_TIME_FORMAT | back to summary |
|---|---|
| private static final String DATE_TIME_FORMAT The date format of a MySQL formatted date/time. Example: 2008-09-25 08:40:59 | |
| FORMAT_REPLACE | back to summary |
|---|---|
| private static final String[] FORMAT_REPLACE Format replacements for MySQL date formats. See https://dev.mysql.com/doc/refman/5.1/en/date-and-time-functions.html#function_date-format | |
| FROM_UNIXTIME | back to summary |
|---|---|
| private static final int FROM_UNIXTIME | |
| FUNCTIONS | back to summary |
|---|---|
| private static final HashMap<String, FunctionInfo> FUNCTIONS | |
| LAST_INSERT_ID | back to summary |
|---|---|
| private static final int LAST_INSERT_ID | |
| UNIX_TIMESTAMP | back to summary |
|---|---|
| private static final int UNIX_TIMESTAMP | |
| FunctionsMySQL | back to summary |
|---|---|
| pack-priv FunctionsMySQL(FunctionInfo info) | |
| checkParameterCount | back to summary |
|---|---|
| protected void checkParameterCount(int len) Overrides org. Doc from org. Check if the parameter count is correct.
| |
| convertToSimpleDateFormat | back to summary |
|---|---|
| private static String convertToSimpleDateFormat(String format) | |
| fromUnixTime | back to summary |
|---|---|
| public static String fromUnixTime(int seconds) See https://dev.mysql.com/doc/refman/5.1/en/date-and-time-functions.html#function_from-unixtime
| |
| fromUnixTime | back to summary |
|---|---|
| public static String fromUnixTime(int seconds, String format) See https://dev.mysql.com/doc/refman/5.1/en/date-and-time-functions.html#function_from-unixtime | |
| getFunction | back to summary |
|---|---|
| public static FunctionsMySQL getFunction(String upperName) Returns mode-specific function for a given name, or
| |
| getValue | back to summary |
|---|---|
| public Value getValue(SessionLocal session) Overrides org. Doc from org. Return the resulting value for the current row.
| |
| optimize | back to summary |
|---|---|
| public Expression optimize(SessionLocal session) Implements abstract org. Doc from org. Try to optimize the expression.
| |
| unixTimestamp | back to summary |
|---|---|
| public static int unixTimestamp(SessionLocal session, Value value) Get the seconds since 1970-01-01 00:00:00 UTC of the given timestamp. See https://dev.mysql.com/doc/refman/8.0/en/date-and-time-functions.html#function_unix-timestamp
| |