| Modifier and Type | Class and Description |
|---|---|
| public static enum | ToCharFunction.
Represents a capitalization / casing strategy. |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final int | AM_PM
The AM / PM field. |
| public static final int | JULIAN_EPOCH
The beginning of the Julian calendar. |
| public static final int | MONTHS
The month field. |
| private static volatile String[][] | |
| private static final String[] | |
| private static final int[] | |
| public static final int | SHORT_MONTHS
The month field (short form). |
| public static final int | SHORT_WEEKDAYS
The weekday field (short form). |
| public static final int | WEEKDAYS
The weekday field. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static void | addSign(StringBuilder output, int signum, boolean leadingSign, boolean trailingSign, boolean trailingMinus, boolean angleBrackets, boolean fillMode)
|
| private static int | |
| public static void | |
| private static ToCharFunction. | Returns: a capitalization strategy if the specified string contains any of the specified substrings at the specified index,null otherwisethe string to check s, int the index to check at index, String... the substrings to check for within the string substrings)Returns a capitalization strategy if the specified string contains any of the specified substrings at the specified index. |
| private static int | |
| private static Currency | |
| public static String[] | |
| public String | |
| private static String | Returns: time zone display name or IDthe session session, Value value value, boolean if tzd)true return TZD (time zone region with Daylight Saving
Time information included), if false return TZR (time zone
region)Returns time zone display name or ID for the specified date-time value. |
| public Value | getValue(SessionLocal
the session session, Value the value of first argument, or v1, Value nullthe value of second argument, or v2, Value nullthe value of third argument, or v3)nullOverrides org. Returns the value of this function. |
| public Expression | optimize(SessionLocal
the session session)Implements abstract org. Try to optimize the expression. |
| public static String | Returns: the formatted numberthe number to format number, String the format pattern to use (if any) format, String the NLS parameter (if any) nlsParam)Emulates Oracle's TO_CHAR(number) function. |
| public static String | Returns: the formatted timestampthe session session, Value the date-time value to format value, String the format pattern to use (if any) format, String the NLS parameter (if any) nlsParam)Emulates Oracle's TO_CHAR(datetime) function. |
| private static String | |
| private static String | |
| private static String |
| AM_PM | back to summary |
|---|---|
| pack-priv static final int AM_PM The AM / PM field. | |
| JULIAN_EPOCH | back to summary |
|---|---|
| public static final int JULIAN_EPOCH The beginning of the Julian calendar. | |
| MONTHS | back to summary |
|---|---|
| public static final int MONTHS The month field. | |
| NAMES | back to summary |
|---|---|
| private static volatile String[][] NAMES | |
| ROMAN_NUMERALS | back to summary |
|---|---|
| private static final String[] ROMAN_NUMERALS | |
| ROMAN_VALUES | back to summary |
|---|---|
| private static final int[] ROMAN_VALUES | |
| SHORT_MONTHS | back to summary |
|---|---|
| public static final int SHORT_MONTHS The month field (short form). | |
| SHORT_WEEKDAYS | back to summary |
|---|---|
| public static final int SHORT_WEEKDAYS The weekday field (short form). | |
| WEEKDAYS | back to summary |
|---|---|
| public static final int WEEKDAYS The weekday field. | |
| ToCharFunction | back to summary |
|---|---|
| public ToCharFunction(Expression arg1, Expression arg2, Expression arg3) | |
| addSign | back to summary |
|---|---|
| private static void addSign(StringBuilder output, int signum, boolean leadingSign, boolean trailingSign, boolean trailingMinus, boolean angleBrackets, boolean fillMode) | |
| calculateScale | back to summary |
|---|---|
| private static int calculateScale(String format, int separator) | |
| clearNames | back to summary |
|---|---|
| public static void clearNames() Used for testing. | |
| containsAt | back to summary |
|---|---|
| private static ToCharFunction. Returns a capitalization strategy if the specified string contains any of
the specified substrings at the specified index. The capitalization
strategy indicates the casing of the substring that was found. If none of
the specified substrings are found, this method returns
| |
| findDecimalSeparator | back to summary |
|---|---|
| private static int findDecimalSeparator(String format) | |
| getCurrency | back to summary |
|---|---|
| private static Currency getCurrency() | |
| getDateNames | back to summary |
|---|---|
| public static String[] getDateNames(int names) Get the date (month / weekday / ...) names.
| |
| getName | back to summary |
|---|---|
| public String getName() Implements org. Doc from org. Get the name. | |
| getTimeZone | back to summary |
|---|---|
| private static String getTimeZone(SessionLocal session, Value value, boolean tzd) Returns time zone display name or ID for the specified date-time value.
| |
| getValue | back to summary |
|---|---|
| public Value getValue(SessionLocal session, Value v1, Value v2, Value v3) Overrides org. Doc from org. Returns the value of this function. | |
| optimize | back to summary |
|---|---|
| public Expression optimize(SessionLocal session) Implements abstract org. Doc from org. Try to optimize the expression.
| |
| toChar | back to summary | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| public static String toChar(BigDecimal number, String format, String nlsParam) Emulates Oracle's TO_CHAR(number) function.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| toCharDateTime | back to summary | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| public static String toCharDateTime(SessionLocal session, Value value, String format, String nlsParam) Emulates Oracle's TO_CHAR(datetime) function.
See also TO_CHAR(datetime) and datetime format models in the Oracle documentation.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| toHex | back to summary |
|---|---|
| private static String toHex(BigDecimal number, String format) | |
| toRomanNumeral | back to summary |
|---|---|
| private static String toRomanNumeral(int number) | |
| zeroesAfterDecimalSeparator | back to summary |
|---|---|
| private static String zeroesAfterDecimalSeparator(BigDecimal number) | |
| Modifier and Type | Field and Description |
|---|---|
| public static final ToCharFunction. | CAPITALIZE
The string is capitalized (first letter uppercased, subsequent letters lowercased). |
| public static final ToCharFunction. | LOWERCASE
All letters are lowercased. |
| public static final ToCharFunction. | UPPERCASE
All letters are uppercased. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| pack-priv static ToCharFunction. | Returns: the capitalization / casing strategy which should be used when the first and second letters have the specified casingwhether or not the first letter is uppercased up1, Boolean whether or not the second letter is uppercased up2)Returns the capitalization / casing strategy which should be used when the first and second letters have the specified casing. |
| public static ToCharFunction. | |
| public static ToCharFunction. |
| CAPITALIZE | back to summary |
|---|---|
| public static final ToCharFunction. The string is capitalized (first letter uppercased, subsequent letters lowercased). | |
| LOWERCASE | back to summary |
|---|---|
| public static final ToCharFunction. All letters are lowercased. | |
| UPPERCASE | back to summary |
|---|---|
| public static final ToCharFunction. All letters are uppercased. | |
| Capitalization | back to summary |
|---|---|
| private Capitalization() | |
| apply | back to summary |
|---|---|
| public String apply(String s) Applies this capitalization strategy to the specified string. | |
| toCapitalization | back to summary |
|---|---|
| pack-priv static ToCharFunction. Returns the capitalization / casing strategy which should be used when the first and second letters have the specified casing.
| |
| valueOf | back to summary |
|---|---|
| public static ToCharFunction. | |
| values | back to summary |
|---|---|
| public static ToCharFunction. | |