Top Description Fields Constructors Methods
org.eclipse.persistence.internal.helper

public Class JavaPlatform

extends Object
Class Inheritance
Imports
java.sql.SQLException, .SQLXML, java.util.concurrent.ConcurrentHashMap, java.util.regex.Pattern

INTERNAL: JavaPlatform abstracts the version of the JDK we are using. It allows any operation which is dependent on JDK version to be called from a single place and then delegates the call to its JDKPlatform
Author
Tom Ware

Field Summary

Modifier and TypeField and Description
private static final ConcurrentHashMap<Object, Pattern>
patternCache

PERF: The like expression compiled Pattern objects are cached to avoid re-compilation on every usage.

private static final ConcurrentHashMap<Object, Pattern>
regexpPatternCache

PERF: The regular expression compiled Pattern objects are cached to avoid re-compilation on every usage.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static Boolean
conformLike(Object left, Object right)

INTERNAL: An implementation of in memory queries with Like which uses the regular expression framework.

public static Boolean
conformRegexp(Object left, Object right)

INTERNAL: An implementation of in memory queries with Regexp which uses the regular expression framework.

public static String
getStringAndFreeSQLXML(Object sqlXml)

INTERNAL: Casts the passed object to SQLXML and calls getString and free methods

public static boolean
isSQLXML(Object object)

INTERNAL: Indicates whether the passed object implements java.sql.SQLXML introduced in jdk 1.6

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

patternCacheback to summary
private static final ConcurrentHashMap<Object, Pattern> patternCache

PERF: The like expression compiled Pattern objects are cached to avoid re-compilation on every usage.

regexpPatternCacheback to summary
private static final ConcurrentHashMap<Object, Pattern> regexpPatternCache

PERF: The regular expression compiled Pattern objects are cached to avoid re-compilation on every usage.

Constructor Detail

JavaPlatformback to summary
public JavaPlatform()

Method Detail

conformLikeback to summary
public static Boolean conformLike(Object left, Object right)

INTERNAL: An implementation of in memory queries with Like which uses the regular expression framework.

conformRegexpback to summary
public static Boolean conformRegexp(Object left, Object right)

INTERNAL: An implementation of in memory queries with Regexp which uses the regular expression framework.

getStringAndFreeSQLXMLback to summary
public static String getStringAndFreeSQLXML(Object sqlXml) throws SQLException

INTERNAL: Casts the passed object to SQLXML and calls getString and free methods

isSQLXMLback to summary
public static boolean isSQLXML(Object object)

INTERNAL: Indicates whether the passed object implements java.sql.SQLXML introduced in jdk 1.6