Methods Summary |
---|
public static int | conformLike(java.lang.Object left, java.lang.Object right)INTERNAL:
Conform an expression which uses the operator "like" for an in-memory query
return getPlatform().conformLike(left, right);
|
private static oracle.toplink.essentials.internal.helper.JDKPlatform | getPlatform()INTERNAL:
Get the version of JDK being used from the Version class.
if (platform == null) {
if (Version.isJDK15()) {
try {
Class platformClass = null;
// use class.forName() to avoid loading the JDK 1.5 class unless it is needed.
if (PrivilegedAccessHelper.shouldUsePrivilegedAccess()){
try {
platformClass = (Class)AccessController.doPrivileged(new PrivilegedClassForName("oracle.toplink.essentials.internal.helper.JDK15Platform"));
} catch (PrivilegedActionException exception) {
}
} else {
platformClass = oracle.toplink.essentials.internal.security.PrivilegedAccessHelper.getClassForName("oracle.toplink.essentials.internal.helper.JDK15Platform");
}
if (PrivilegedAccessHelper.shouldUsePrivilegedAccess()){
try {
platform = (JDKPlatform)AccessController.doPrivileged(new PrivilegedNewInstanceFromClass(platformClass));
} catch (PrivilegedActionException exception) {
}
} else {
platform = (JDKPlatform)PrivilegedAccessHelper.newInstanceFromClass(platformClass);
}
} catch (Exception exception) {
}
}
if (platform == null) {
platform = new JDK15Platform();
}
}
return platform;
|
public static java.util.Map | getQueryCacheMap()INTERNAL:
Get the Map to store the query cache in
return getPlatform().getQueryCacheMap();
|
public static long | getTimeInMillis(java.util.Calendar calendar)INTERNAL:
Get the milliseconds from a Calendar.
return getPlatform().getTimeInMillis(calendar);
|
public static void | setExceptionCause(java.lang.Throwable exception, java.lang.Throwable cause)INTERNAL:
Set the cause of an exception. This is useful for JDK 1.4 exception chaining
getPlatform().setExceptionCause(exception, cause);
|
public static void | setTimeInMillis(java.util.Calendar calendar, long millis)INTERNAL:
Set the milliseconds for a Calendar.
getPlatform().setTimeInMillis(calendar, millis);
|
public static boolean | shouldPrintInternalException()INTERNAL
return a boolean which determines where TopLink should include the TopLink-stored
Internal exception in it's stack trace. For JDK 1.4 VMs with exception chaining
the Internal exception can be redundant and confusing.
return getPlatform().shouldPrintInternalException();
|