FileDocCategorySizeDatePackage
JDKPlatform.javaAPI DocGlassfish v2 API3518Tue May 22 16:54:34 BST 2007oracle.toplink.essentials.internal.helper

JDKPlatform

public interface JDKPlatform
INTERNAL: Interface which abstracts the version of the JDK we are on. This should only implement methods that are dependant on JDK version The implementers should implement the minimum amount of functionality required to allow support of multiple versions of the JDK.
see
JDK13Platform
see
JDK14Platform
see
JDK15Platform
see
JavaPlatform
author
Tom Ware

Fields Summary
Constructors Summary
Methods Summary
public intconformLike(java.lang.Object left, java.lang.Object right)
Conforming queries with LIKE will act differently in different JDKs.

public java.util.MapgetQueryCacheMap()
Get the Map to store the query cache in

public longgetTimeInMillis(java.util.Calendar calendar)
Get the milliseconds from a Calendar. JDK 1.4 offers a more efficient way of doing this.

public voidsetExceptionCause(java.lang.Throwable exception, java.lang.Throwable cause)
JDK 1.4 offers the option of setting the cause of an exception

public voidsetTimeInMillis(java.util.Calendar calendar, long millis)
Set the milliseconds for a Calendar. JDK 1.4 offers a more efficient way of doing this.

public booleanshouldPrintInternalException()
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.