public class JpaSupport extends Object
Modifier and Type | Class and Description |
---|---|
static class |
JpaSupport.ApiVersion
Individual JPA specifications support.
|
Modifier and Type | Field and Description |
---|---|
private static String |
JPA_PROVIDER_SINCE_V1
GlassFish server JPA provider class since V1.
|
private static String |
JPA_PROVIDER_SINCE_V3
GlassFish server JPA provider class since V3.
|
private static AtomicReferenceArray<JpaSupport.ApiVersion> |
jpaSupport
GlassFish JPA support matrix:
GlassFishJPA 1.0JPA 2.0JPA 2.1
V1YESNONO
V2YESNONO
V3YESYESNO
V4YESYESYES
Array is stored as
Object[] array internally which
is initialized with all values set to null . |
Constructor and Description |
---|
JpaSupport() |
Modifier and Type | Method and Description |
---|---|
static JpaSupport.ApiVersion |
getApiVersion(GlassFishVersion version)
Get GlassFish JPA support information for given GlassFish version.
|
private static final String JPA_PROVIDER_SINCE_V1
private static final String JPA_PROVIDER_SINCE_V3
private static final AtomicReferenceArray<JpaSupport.ApiVersion> jpaSupport
GlassFish | JPA 1.0 | JPA 2.0 | JPA 2.1 |
---|---|---|---|
V1 | YES | NO | NO |
V2 | YES | NO | NO |
V3 | YES | YES | NO |
V4 | YES | YES | YES |
Object[] array
internally which
is initialized with all values set to null
.public static JpaSupport.ApiVersion getApiVersion(GlassFishVersion version)
version
- GlassFish version to get JPA support information for.Copyright © 2013. All Rights Reserved.