Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.7.3)

E10653-11


oracle.jbo.version
Class VersionConfig

java.lang.Object
  extended by oracle.jbo.version.VersionConfig


public class VersionConfig
extends java.lang.Object
Since:
12.1.3.1.0

Field Summary
static java.lang.String ATTR_DISPLAYNAME
           
static java.lang.String ATTR_LIFECYCLE
           
static java.lang.String ATTR_NAME
           
static java.lang.String ELEM_VERSION
           
static java.lang.String LATEST_VERSION
          Reserved keyword for identifying the latest version.

 

Method Summary
 VersionDef findVersionByDisplayName(java.lang.String displayName)
          Returns the version metadata for the specified version display name.
 VersionDef getLatestVersion()
          Returns the latest supported version as defined in adf-config.xml.
static VersionConfig getNullVersionConfig()
           
static VersionConfig initFromXML(Element versionsNode)
           
 boolean isVersioningEnabled()
          Returns true if versioning is enabled in this application.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

ELEM_VERSION

public static final java.lang.String ELEM_VERSION
See Also:
Constant Field Values

ATTR_NAME

public static final java.lang.String ATTR_NAME
See Also:
Constant Field Values

ATTR_DISPLAYNAME

public static final java.lang.String ATTR_DISPLAYNAME
See Also:
Constant Field Values

ATTR_LIFECYCLE

public static final java.lang.String ATTR_LIFECYCLE
See Also:
Constant Field Values

LATEST_VERSION

public static final java.lang.String LATEST_VERSION
Reserved keyword for identifying the latest version.
See Also:
Constant Field Values

Method Detail

initFromXML

public static VersionConfig initFromXML(Element versionsNode)
For internal use only. Application developers should not use this
Used by AdfmConfig to parse the <versions> node.

getNullVersionConfig

public static VersionConfig getNullVersionConfig()
For internal use only. Application developers should not use this
Used by AdfmConfig to return an instance of VersionConfig when there's no <versions> defined.

isVersioningEnabled

public boolean isVersioningEnabled()
Returns true if versioning is enabled in this application. In other words, a <versions> element is defined in adf-config.xml. Note that this method returns true even if the <versions> element is empty (i.e. no versions are defined).
Returns:
whether versioning is configured.

getLatestVersion

public VersionDef getLatestVersion()
Returns the latest supported version as defined in adf-config.xml. If versioning is not configured, a token object with "latest" display name and empty name and lifecycle will be returned.
Returns:
the metadata for the latest version, or null if no supported versions are defined in adf-config.xml.

findVersionByDisplayName

public VersionDef findVersionByDisplayName(java.lang.String displayName)
Returns the version metadata for the specified version display name. If displayName is LATEST_VERSION, this method will return the latest supported version as defined in adf-config.xml.
Parameters:
displayName - the display name for the version
Returns:
the version metadata for the specified display name.
See Also:
getLatestVersion()

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.7.3)

E10653-11


Copyright © 1997, 2014, Oracle. All rights reserved.