Top Description Fields Constructors Methods
org.eclipse.persistence.jpa.jpql

public final Enum EclipseLinkVersion

extends Enum<EclipseLinkVersion>
Class Inheritance

An enumeration listing the various releases of EclipseLink.
Author
Pascal Filion

Field Summary

Modifier and TypeField and Description
public static final EclipseLinkVersion
DEFAULT_VERSION

A constant that points to the current release of EclipseLink, which is 4.0.

private final double
version

The real version number.

public static final EclipseLinkVersion
VERSION_1_x

The constant for the EclipseLink 1.x release.

public static final EclipseLinkVersion
VERSION_2_0

The constant for the EclipseLink 2.0 release.

public static final EclipseLinkVersion
VERSION_2_1

The constant for the EclipseLink 2.1 release.

public static final EclipseLinkVersion
VERSION_2_2

The constant for the EclipseLink 2.2 release.

public static final EclipseLinkVersion
VERSION_2_3

The constant for the EclipseLink 2.3 release.

public static final EclipseLinkVersion
VERSION_2_4

The constant for the EclipseLink 2.4 release.

public static final EclipseLinkVersion
VERSION_2_5

The constant for the EclipseLink 2.5 release.

public static final EclipseLinkVersion
VERSION_2_6

The constant for the EclipseLink 2.6 release.

public static final EclipseLinkVersion
VERSION_3_0

The constant for the EclipseLink 3.0 release.

public static final EclipseLinkVersion
VERSION_4_0

The constant for the EclipseLink 4.0 release.

Constructor Summary

AccessConstructor and Description
private
EclipseLinkVersion(double
The actual version number
version
)

Creates a new EclipseLinkVersion.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

The string value of the version
getVersion
()

Returns 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 version
isNewerThan
(EclipseLinkVersion
The 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 version
isNewerThanOrEqual
(EclipseLinkVersion
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
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 version
isOlderThan
(EclipseLinkVersion
The 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 version
isOlderThanOrEqual
(EclipseLinkVersion
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
version
)

Determines whether this constant represents a version that is older than the given version or if it's the same version.

public EclipseLinkVersion

Returns:

Either this same constant or the actual version constant
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.

public String
toString()

Overrides java.lang.Enum.toString.

Returns the name of this enum constant, as contained in the declaration.
public static EclipseLinkVersion

Returns:

The constant version of the given value
value
(String
The value to retrieve its constant version
value
)

Retrieves the enumeration constant for the given value.

public static EclipseLinkVersion
public static EclipseLinkVersion[]
public static EclipseLinkVersion[]

Returns:

The list of unique constants
versions
()

Returns the list of EclipseLinkVersion excluding DEFAULT_VERSION.

Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinalvalueOf

Field Detail

DEFAULT_VERSIONback to summary
public static final EclipseLinkVersion DEFAULT_VERSION

A constant that points to the current release of EclipseLink, which is 4.0.

versionback to summary
private final double version

The real version number.

VERSION_1_xback to summary
public static final EclipseLinkVersion VERSION_1_x

The constant for the EclipseLink 1.x release.

VERSION_2_0back to summary
public static final EclipseLinkVersion VERSION_2_0

The constant for the EclipseLink 2.0 release.

VERSION_2_1back to summary
public static final EclipseLinkVersion VERSION_2_1

The constant for the EclipseLink 2.1 release.

VERSION_2_2back to summary
public static final EclipseLinkVersion VERSION_2_2

The constant for the EclipseLink 2.2 release.

VERSION_2_3back to summary
public static final EclipseLinkVersion VERSION_2_3

The constant for the EclipseLink 2.3 release.

VERSION_2_4back to summary
public static final EclipseLinkVersion VERSION_2_4

The constant for the EclipseLink 2.4 release.

VERSION_2_5back to summary
public static final EclipseLinkVersion VERSION_2_5

The constant for the EclipseLink 2.5 release.

VERSION_2_6back to summary
public static final EclipseLinkVersion VERSION_2_6

The constant for the EclipseLink 2.6 release.

VERSION_3_0back to summary
public static final EclipseLinkVersion VERSION_3_0

The constant for the EclipseLink 3.0 release.

VERSION_4_0back to summary
public static final EclipseLinkVersion VERSION_4_0

The constant for the EclipseLink 4.0 release.

Constructor Detail

EclipseLinkVersionback to summary
private EclipseLinkVersion(double version)

Creates a new EclipseLinkVersion.

Parameters
version:double

The actual version number

Method Detail

getVersionback to summary
public String getVersion()

Returns the real version this constant represents.

Returns:String

The string value of the version

isNewerThanback to summary
public boolean isNewerThan(EclipseLinkVersion version)

Determines whether this constant represents a version that is newer than the given version.

Parameters
version:EclipseLinkVersion

The constant to verify if it's representing a version that is older than this one

Returns:boolean

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 version

isNewerThanOrEqualback to summary
public 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.

Parameters
version:EclipseLinkVersion

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

Returns:boolean

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 version

isOlderThanback to summary
public boolean isOlderThan(EclipseLinkVersion version)

Determines whether this constant represents a version that is older than the given version.

Parameters
version:EclipseLinkVersion

The constant to verify if it's representing a version that is more recent than this one

Returns:boolean

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 version

isOlderThanOrEqualback to summary
public 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.

Parameters
version:EclipseLinkVersion

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

Returns:boolean

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 version

toCurrentVersionback to summary
public 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.

Returns:EclipseLinkVersion

Either this same constant or the actual version constant

toStringback to summary
public String toString()

Overrides java.lang.Enum.toString.

Doc from java.lang.Enum.toString.

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.

Returns:String

the name of this enum constant

Annotations
@Override
valueback to summary
public static EclipseLinkVersion value(String value)

Retrieves the enumeration constant for the given value. If the value is not known, then DEFAULT_VERSION will be returned.

Parameters
value:String

The value to retrieve its constant version

Returns:EclipseLinkVersion

The constant version of the given value

valueOfback to summary
public static EclipseLinkVersion valueOf(String name)
valuesback to summary
public static EclipseLinkVersion[] values()
versionsback to summary
public static EclipseLinkVersion[] versions()

Returns the list of EclipseLinkVersion excluding DEFAULT_VERSION.

Returns:EclipseLinkVersion[]

The list of unique constants