public class JDK15Platform extends Object implements JDKPlatform
Modifier and Type | Field and Description |
---|---|
protected static Hashtable |
patternCache
PERF: The regular expression compiled Pattern objects are cached
to avoid recompilation on every usage.
|
Constructor and Description |
---|
JDK15Platform() |
Modifier and Type | Method and Description |
---|---|
int |
conformLike(Object left,
Object right)
INTERNAL:
An implementation of in memory queries with Like which uses the JDK 1.4
regular expression framework.
|
Map |
getQueryCacheMap()
INTERNAL
Get the Map to store the query cache in
|
long |
getTimeInMillis(Calendar calendar)
INTERNAL:
Get the milliseconds from a Calendar.
|
void |
setExceptionCause(Throwable exception,
Throwable cause)
INTERNAL:
Use API first available in JDK 1.4 to set the cause of an exception.
|
void |
setTimeInMillis(Calendar calendar,
long millis)
INTERNAL:
Set the milliseconds for a Calendar.
|
boolean |
shouldPrintInternalException()
INTERNAL
return a boolean which determines where TopLink should include the TopLink-stored
Internal exception in it's stack trace.
|
protected static Hashtable patternCache
public Map getQueryCacheMap()
getQueryCacheMap
in interface JDKPlatform
public int conformLike(Object left, Object right)
conformLike
in interface JDKPlatform
public long getTimeInMillis(Calendar calendar)
getTimeInMillis
in interface JDKPlatform
public void setTimeInMillis(Calendar calendar, long millis)
setTimeInMillis
in interface JDKPlatform
public void setExceptionCause(Throwable exception, Throwable cause)
setExceptionCause
in interface JDKPlatform
public boolean shouldPrintInternalException()
shouldPrintInternalException
in interface JDKPlatform
Copyright © 2024. All rights reserved.