Purpose: Define any useful methods that are missing from the base Java.
| Modifier and Type | Field and Description |
|---|---|
| protected static final Queue | calendarCache
PERF: Used to cache a set of calendars for conversion/printing purposes. |
| protected static String | CR
Hides org. |
| protected static String | CURRENT_WORKING_DIRECTORY
Prime the platform-dependent current working directory |
| private static DateTimeFormatter | |
| public static final String | |
| private static String | |
| private static String | |
| protected static final TimeZone | defaultTimeZone
PERF: Cache default timezone for calendar conversion. |
| protected static String | FILE_SEPARATOR
Prime the platform-dependent file separator |
| public static final String | |
| public static final String | |
| public static final String | |
| public static boolean | isZeroValidPrimaryKey
Backdoor to allow 0 to be used in primary keys. |
| public static final String | NL
Store newline string |
| private static final String | NULL_STRING
Used to convert |
| public static final Object | NULL_VALUE
Used to store null values in hashtables, is helper because need to be serializable. |
| protected static String | PATH_SEPARATOR
Prime the platform-dependent path separator |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final int | |
| public static final int | |
| public static final String | |
| public static final String | |
| public static boolean | shouldOptimizeDates
Used to configure JDBC level date optimization. |
| public static final String | SPACE
formatting strings for indenting |
| protected static String | TEMP_DIRECTORY
Prime the platform-dependent temporary directory |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static <E> void | |
| public static <T> List | |
| public static <T> Vector | |
| public static Calendar | |
| public static boolean | areTypesAssignable(List<Class<?>> types1, List<Class<?>> types2)
PUBLIC: Compare two vectors of types. |
| public static Object[] | |
| public static byte[] | |
| public static String | |
| public static <T> Vector | |
| public static String | |
| public static String | buildZeroPrefixAndTruncTrailZeros(int number, int totalDigits)
Build a numerical string with leading 0s and truncate trailing zeros. |
| public static String | |
| public static Calendar | |
| public static <T> boolean | Returns: booleanINTERNAL: Return whether a Class implements a specific interface, either directly or indirectly (through interface or implementation inheritance). |
| public static boolean | Returns: booleanINTERNAL: Return whether a Class is a subclass of, or the same as, another Class. |
| public static void | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | compareHashtables(Hashtable<?, ?> hashtable1, Hashtable<?, ?> hashtable2)
PUBLIC: Compare the elements in 2 hashtables to see if they are equal Added Nov 9, 2000 JED Patch 2.5.1.8 |
| public static boolean | comparePotentialArrays(Object firstValue, Object secondValue)
Compare two potential arrays and return true if they are the same. |
| public static int | compareVersions(String version1, String version2)
INTERNAL: Compares two version in num.num.num.num.num*** format. |
| protected static int | compareVersions(List<Integer> list1, List<Integer> list2)
INTERNAL: Compares two lists of Integers -1, 0, 1 means the first list is less than, equal, greater than the second list. |
| public static <K, V> Map | concatenateMaps(Map<? extends K, ? extends V> first, Map<? extends K, ? extends V> second)
Merge the two Maps into a new HashMap. |
| public static <E> List | concatenateUniqueLists(List<? extends E> first, List<? extends E> second)
Return a new List with no duplicated values. |
| public static <E> Vector | concatenateUniqueVectors(Vector<? extends E> first, Vector<? extends E> second)
Return a new vector with no duplicated values. |
| public static <E> Vector | |
| public static String | |
| public static boolean[] | |
| public static int[] | |
| public static String[] | |
| public static <E> Vector | copyVector(List<E>
- original vector originalVector, int - starting position in vector startIndex, int - ending position in vector stopIndex)Return a copy of the vector containing a subset starting at startIndex and ending at stopIndex. |
| public static int | countOccurrencesOf(Object comparisonObject, List<?> list)
Return an integer representing the number of occurrences (using equals()) of the specified object in the specified list. |
| public static String | cr()
Hides org. |
| public static String | |
| public static Date | |
| public static Date | dateFromLong(Long
- milliseconds from the epoch (00:00:00 GMT
Jan 1, 1970). Negative values represent dates prior to the epoch. longObject)Answer a Date from a long This implementation is based on the java.sql.Date class, not java.util.Date. |
| public static Date | Returns: - date representation of string- string representation of date dateString)Answer a Date from a string representation. |
| public static Date | Returns: - date representation of timestampObject- timestamp representation of date timestamp)Answer a Date from a timestamp This implementation is based on the java.sql.Date class, not java.util.Date. |
| public static Date | |
| public static boolean | |
| public static String | |
| public static String | |
| public static String | fileSeparator()
Return a string containing the platform-appropriate characters for separating directory and file names. |
| public static String | getAttributeNameFromMethodName(String methodName)
INTERNAL: Method to convert a getXyz or isXyz method name to an xyz attribute name. |
| public static Queue | getCalendarCache()
PERF: Return the calendar cache use to avoid calendar creation for processing java.sql/util.Date/Time/Timestamp objects. |
| public static <T> Class | |
| public static String | |
| public static Method | getDeclaredMethod(Class<?> javaClass, String methodName)
INTERNAL: Returns a Method for the specified Class, method name, and that has no parameters. |
| public static Method | getDeclaredMethod(final Class<?> javaClass, final String methodName, final Class<?>[] methodParameterTypes)
INTERNAL: Returns a Method for the specified Class, method name, and formal parameter types. |
| public static DateTimeFormatter | |
| public static String | |
| public static String | |
| public static TimeZone | |
| public static Field | |
| public static Object | |
| public static Class | |
| public static String | |
| public static String | |
| public static String | getShortClassName(String javaClassName)
Answers the unqualified class name from the specified String. |
| public static String | |
| public static String | |
| public static String | getWeavedGetMethodName(String attributeName)
Return the set method name weaved for getting attribute value. |
| public static String | getWeavedSetMethodName(String attributeName)
Return the set method name weaved for setting attribute value. |
| public static String | getWeavedValueHolderGetMethodName(String attributeName)
Return the get method name weaved for a value-holder attribute. |
| public static String | getWeavedValueHolderSetMethodName(String attributeName)
Return the set method name weaved for a value-holder attribute. |
| public static boolean | |
| public static int | indexOfNullElement(Vector<?> v, int index)
Returns the index of the the first |
| public static Queue | initCalendarCache()
PERF: Init the calendar cache use to avoid calendar creation for processing java.sql/util.Date/Time/Timestamp objects. |
| public static String | |
| public static boolean | |
| public static boolean | |
| public static boolean | isNumberNegativeOrZero(Object value)
Returns true if the passed value is Number that is negative or equals to zero. |
| public static boolean | isPrimitiveWrapper(Class<?> classInQuestion)
ADVANCED returns true if the class in question is a primitive wrapper |
| public static boolean | |
| public static boolean | |
| public static File[] | |
| public static <T> Vector | |
| public static void | outputClassFile(String className, byte[] classBytes, String outputPath)
Used by our byte code weaving to enable users who are debugging to output the generated class to a file |
| public static String | pathSeparator()
Return a string containing the platform-appropriate characters for separating entries in a path (e.g. the classpath) |
| public static String | |
| public static String | |
| public static String | |
| public static String | |
| public static String | |
| public static String | |
| public static String | printStackTraceToString(Throwable aThrowable)
Return a String containing the printed stacktrace of an exception. |
| public static String | |
| public static String | |
| public static String | |
| public static String | |
| public static String | |
| public static String | |
| public static String | |
| public static <K, V> Hashtable | |
| public static <K, V> Map | |
| public static void | |
| public static String | removeAllButAlphaNumericToFit(String s1, int maximumStringLength)
Returns a String which has had enough non-alphanumeric characters removed to be equal to the maximumStringLength. |
| public static String | removeCharacterToFit(String s1, char aChar, int maximumStringLength)
Returns a String which has had enough of the specified character removed to be equal to the maximumStringLength. |
| public static String | removeVowels(String s1)
Returns a String which has had enough of the specified character removed to be equal to the maximumStringLength. |
| public static String | replaceFirstSubString(String source, String subString, String replacement)
Replaces the first subString of the source with the replacement. |
| public static <T> Vector | |
| public static String | Returns: - String- timestamp representation of date originalString)Returns a new string with all space characters removed from the right |
| public static void | |
| public static void | |
| public static void | |
| public static String | shortenStringsByRemovingVowelsToFit(String s1, String s2, int maximumStringLength)
Returns a String which is a concatenation of two string which have had enough vowels removed from them so that the sum of the sized of the two strings is less than or equal to the specified size. |
| public static boolean | |
| public static Date | |
| public static void | |
| public static String | |
| public static Time | |
| public static Time | Returns: - time representation of dateObject- time representation of date date)Answer a Time from a Date This implementation is based on the java.sql.Date class, not java.util.Date. |
| public static Time | timeFromHourMinuteSecond(int hour, int minute, int second)
Answer a Time with the hour, minute, second. |
| public static Time | timeFromLong(Long
- milliseconds from the epoch (00:00:00 GMT
Jan 1, 1970). Negative values represent dates prior to the epoch. longObject)Answer a Time from a long |
| public static Time | Returns: - time representation of string- string representation of time timeString)Answer a Time from a string representation. |
| public static Time | timeFromTimestamp(Timestamp timestamp)
Answer a Time from a Timestamp Usus the Hours, Minutes, Seconds instead of getTime() ms value. |
| public static Timestamp | |
| public static Timestamp | |
| public static Timestamp | timestampFromLong(Long
- milliseconds from the epoch (00:00:00 GMT
Jan 1, 1970). Negative values represent dates prior to the epoch. millis)Answer a Time from a long |
| public static Timestamp | timestampFromLong(long
- milliseconds from the epoch (00:00:00 GMT
Jan 1, 1970). Negative values represent dates prior to the epoch. millis)Answer a Time from a long |
| public static Timestamp | Returns: - timestamp representation of string- string representation of timestamp timestampString)Answer a Timestamp from a string representation. |
| public static Timestamp | timestampFromYearMonthDateHourMinuteSecondNanos(int year, int month, int date, int hour, int minute, int second, int nanos)
Answer a Timestamp with the year, month, day, hour, minute, second. |
| public static long | |
| public static void | |
| public static String | Returns: StringConvert dotted format class name to slashed format class name. |
| public static URI | |
| public static String | |
| public static Date | |
| public static Date | truncateDateIgnoreMilliseconds(Date date)
Return a sql.Date with time component zeroed out (with possible exception of milliseconds). |
| public static Date | utilDateFromLong(Long
- milliseconds from the epoch (00:00:00 GMT
Jan 1, 1970). Negative values represent dates prior to the epoch. longObject)Answer a Date from a long This implementation is based on the java.sql.Date class, not java.util.Date. |
| public static Date | Returns: - java.util.Date representation of the sql.date- sql.date representation of date sqlDate)Answer a java.util.Date from a sql.date |
| public static Date | Returns: - java.util.Date representation of the time- time representation of util date time)Answer a java.util.Date from a sql.Time |
| public static Date | Returns: - java.util.Date representation of timestampObject- timestamp representation of date timestampObject)Answer a java.util.Date from a timestamp |
| public static <T> Vector | |
| protected static List | |
| public static void |