Provisional API: This interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
| Modifier and Type | Field and Description |
|---|---|
| public static final JPAVersion | DEFAULT_VERSION
The constant for the default version used by the parsing system, which is always the latest version of the Java Persistence functional specification, which is version 2.0. |
| private final double | version
The real version number. |
| public static final JPAVersion | VERSION_1_0
The constant for the Java Persistence specification 1.0. |
| public static final JPAVersion | VERSION_2_0
The constant for the Java Persistence specification 2.0. |
| public static final JPAVersion | VERSION_2_1
The constant for the Java Persistence specification 2.1. |
| public static final JPAVersion | VERSION_2_2
The constant for the Java Persistence specification 2.2. |
| public static final JPAVersion | VERSION_3_0
The constant for the Jakarta Persistence specification 3.0. |
| public static final JPAVersion | VERSION_3_1
The constant for the Jakarta Persistence specification 3.1. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: The string value of the versionReturns the real version this constant represents. |
| public boolean | Returns: true if this constant represents a newer version and the given constant
represents a version that is older; false if the given constant represents a
newer and this constant represents an older versionThe constant to verify if it's representing a version that is older than this one version)Determines whether this constant represents a version that is newer than the given version. |
| public boolean | Returns: true if this constant represents a newer version and the given constant
represents a version that is older or if it's the same constant; false if the
given constant represents a newer and this constant represents an older versionThe constant to verify if it's representing a version that is older than this
one or if it's the same than this one version)Determines whether this constant represents a version that is newer than the given version or if it's the same version. |
| public boolean | Returns: true if this constant represents an earlier version and the given
constant represents a version that is more recent; false if the given constant
represents an earlier version and this constant represents a more recent versionThe constant to verify if it's representing a version that is more recent than
this one version)Determines whether this constant represents a version that is older than the given version. |
| public boolean | Returns: true if this constant represents an earlier version and the given
constant represents a version that is more recent or if it's the same constant; false
if the given constant represents an earlier version and this constant represents a more recent
versionThe constant to verify if it's representing a version that is more recent than
this one or if it's the same than this one version)Determines whether this constant represents a version that is older than the given version or if it's the same version. |
| public JPAVersion | Returns: Either this same constant or the actual version constantConverts the current constant to one of the known versions, this means if the constant is
|
| public String | toString()
Overrides java. |
| public static JPAVersion | |
| public static JPAVersion | |
| public static JPAVersion[] | |
| public static JPAVersion[] | Returns: The list of unique constantsReturns the list of |
| DEFAULT_VERSION | back to summary |
|---|---|
| public static final JPAVersion DEFAULT_VERSION The constant for the default version used by the parsing system, which is always the latest version of the Java Persistence functional specification, which is version 2.0. | |
| version | back to summary |
|---|---|
| private final double version The real version number. | |
| VERSION_1_0 | back to summary |
|---|---|
| public static final JPAVersion VERSION_1_0 The constant for the Java Persistence specification 1.0. | |
| VERSION_2_0 | back to summary |
|---|---|
| public static final JPAVersion VERSION_2_0 The constant for the Java Persistence specification 2.0. | |
| VERSION_2_1 | back to summary |
|---|---|
| public static final JPAVersion VERSION_2_1 The constant for the Java Persistence specification 2.1. | |
| VERSION_2_2 | back to summary |
|---|---|
| public static final JPAVersion VERSION_2_2 The constant for the Java Persistence specification 2.2. | |
| VERSION_3_0 | back to summary |
|---|---|
| public static final JPAVersion VERSION_3_0 The constant for the Jakarta Persistence specification 3.0. | |
| VERSION_3_1 | back to summary |
|---|---|
| public static final JPAVersion VERSION_3_1 The constant for the Jakarta Persistence specification 3.1. | |
| JPAVersion | back to summary |
|---|---|
| private JPAVersion(double version) Creates a new
| |
| getVersion | back to summary |
|---|---|
| public String getVersion() Returns the real version this constant represents.
| |
| isNewerThan | back to summary |
|---|---|
| public boolean isNewerThan(JPAVersion version) Determines whether this constant represents a version that is newer than the given version.
| |
| isNewerThanOrEqual | back to summary |
|---|---|
| public boolean isNewerThanOrEqual(JPAVersion version) Determines whether this constant represents a version that is newer than the given version or if it's the same version.
| |
| isOlderThan | back to summary |
|---|---|
| public boolean isOlderThan(JPAVersion version) Determines whether this constant represents a version that is older than the given version.
| |
| isOlderThanOrEqual | back to summary |
|---|---|
| public boolean isOlderThanOrEqual(JPAVersion version) Determines whether this constant represents a version that is older than the given version or if it's the same version.
| |
| toCurrentVersion | back to summary |
|---|---|
| public JPAVersion toCurrentVersion() Converts the current constant to one of the known versions, this means if the constant is
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns the name of this enum constant, as contained in the declaration. This method may be overridden, though it typically isn't necessary or desirable. An enum class should override this method when a more "programmer-friendly" string form exists. | |
| value | back to summary |
|---|---|
| public static JPAVersion value(String value) Retrieves the enumeration constant for the given value. If the value is not known, then
| |
| valueOf | back to summary |
|---|---|
| public static JPAVersion valueOf(String name) | |
| values | back to summary |
|---|---|
| public static JPAVersion[] values() | |
| versions | back to summary |
|---|---|
| public static JPAVersion[] versions() Returns the list of
| |