Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 7 (11.1.7)

E22562-07

oracle.apps.fnd.applcore.flex.runtime
Enum DeploymentVersion

java.lang.Object
  extended by java.lang.Enum<DeploymentVersion>
      extended by oracle.apps.fnd.applcore.flex.runtime.DeploymentVersion
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<DeploymentVersion>

public enum DeploymentVersion
extends java.lang.Enum<DeploymentVersion>

For Internal Use Only.

The version of flexfield deployment. The value returned by latest() is saved with a flexfield after the deployment is completed successfully. Patching code or runtime can examine the stored version by calling compare and behave accordingly. A version in this class is not simply a timestamp. It indicates changes in deployment logic, the generated objects in MDS or runtime behavior. A version is more in line with a specific feature than a code release, but the version names may be derived from the release names. A new version should be added only when comparison is needed, i.e. when the version is referenced by compare method.

Do not use compareTo method when comparing two values in this numeration. The order of the versions is not the same as the order of the values. Theoretically comparison is always done between a String and an object of this class, because the version is stored in the DB as a String.


Enum Constant Summary
PT_11_1_1_7_0
           
 
Method Summary
static int compare(java.lang.String versionX, DeploymentVersion versionY)
          Compares two versions.
static DeploymentVersion latest()
          Gets the latest version.
static DeploymentVersion valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static DeploymentVersion[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

PT_11_1_1_7_0

public static final DeploymentVersion PT_11_1_1_7_0
Method Detail

values

public static DeploymentVersion[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (DeploymentVersion c : DeploymentVersion.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static DeploymentVersion valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

latest

public static DeploymentVersion latest()
Gets the latest version.

Returns:
the latest version

compare

public static int compare(java.lang.String versionX,
                          DeploymentVersion versionY)
Compares two versions. Returns a negative integer, zero, or a positive integer as versionX is older than, the same as, or newer than versionY. If versionX is not in this enumeration, it is treated as null and a negative integer is returned. null is considered the oldest version.

Parameters:
versionX - a deployment version in its String form
versionY - a deployment version
Returns:
a negative integer, zero, or a positive integer as versionX is older than, the same as, or newer than versionY.

Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 7 (11.1.7)

E22562-07

Copyright © 2013 Oracle. All Rights Reserved.