|
EclipseLink 2.5.0, build 'v20130507-3faac2b' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<EclipseLinkVersion>
org.eclipse.persistence.jpa.jpql.EclipseLinkVersion
public enum EclipseLinkVersion
An enumeration listing the various releases of EclipseLink.
Enum Constant Summary | |
---|---|
DEFAULT_VERSION
A constant that points to the current release of EclipseLink, which is 2.5. |
|
VERSION_1_x
The constant for the EclipseLink 1.x release. |
|
VERSION_2_0
The constant for the EclipseLink 2.0 release. |
|
VERSION_2_1
The constant for the EclipseLink 2.1 release. |
|
VERSION_2_2
The constant for the EclipseLink 2.2 release. |
|
VERSION_2_3
The constant for the EclipseLink 2.3 release. |
|
VERSION_2_4
The constant for the EclipseLink 2.4 release. |
|
VERSION_2_5
The constant for the EclipseLink 2.5 release. |
Method Summary | |
---|---|
java.lang.String |
getVersion()
Returns the real version this constant represents. |
boolean |
isNewerThan(EclipseLinkVersion version)
Determines whether this constant represents a version that is newer than the given version. |
boolean |
isNewerThanOrEqual(EclipseLinkVersion version)
Determines whether this constant represents a version that is newer than the given version or if it's the same version. |
boolean |
isOlderThan(EclipseLinkVersion version)
Determines whether this constant represents a version that is older than the given version. |
boolean |
isOlderThanOrEqual(EclipseLinkVersion version)
Determines whether this constant represents a version that is older than the given version or if it's the same version. |
EclipseLinkVersion |
toCurrentVersion()
Converts the current constant to one of the known versions, this means if the constant is DEFAULT_VERSION , then it will be converted into the actual constant representing that
version. |
java.lang.String |
toString()
|
static EclipseLinkVersion |
value(java.lang.String value)
Retrieves the enumeration constant for the given value. |
static EclipseLinkVersion |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static EclipseLinkVersion[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
static EclipseLinkVersion[] |
versions()
Returns the list of EclipseLinkVersion excluding DEFAULT_VERSION . |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final EclipseLinkVersion DEFAULT_VERSION
public static final EclipseLinkVersion VERSION_1_x
public static final EclipseLinkVersion VERSION_2_0
public static final EclipseLinkVersion VERSION_2_1
public static final EclipseLinkVersion VERSION_2_2
public static final EclipseLinkVersion VERSION_2_3
public static final EclipseLinkVersion VERSION_2_4
public static final EclipseLinkVersion VERSION_2_5
Method Detail |
---|
public static EclipseLinkVersion[] values()
for (EclipseLinkVersion c : EclipseLinkVersion.values()) System.out.println(c);
public static EclipseLinkVersion valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic static EclipseLinkVersion value(java.lang.String value)
DEFAULT_VERSION
will be returned.
value
- The value to retrieve its constant version
public static EclipseLinkVersion[] versions()
EclipseLinkVersion
excluding DEFAULT_VERSION
.
public java.lang.String getVersion()
public boolean isNewerThan(EclipseLinkVersion version)
version
- The constant to verify if it's representing a version that is older than this one
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 versionpublic boolean isNewerThanOrEqual(EclipseLinkVersion version)
version
- The constant to verify if it's representing a version that is older than this
one or if it's the same than this one
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 versionpublic boolean isOlderThan(EclipseLinkVersion version)
version
- The constant to verify if it's representing a version that is more recent than
this one
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 versionpublic boolean isOlderThanOrEqual(EclipseLinkVersion version)
version
- The 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
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
versionpublic EclipseLinkVersion toCurrentVersion()
DEFAULT_VERSION
, then it will be converted into the actual constant representing that
version.
public java.lang.String toString()
toString
in class java.lang.Enum<EclipseLinkVersion>
|
EclipseLink 2.5.0, build 'v20130507-3faac2b' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |