Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 1 (11.1.2)

E22562-02

oracle.apps.fnd.applcore.flex.runtime
Class ModelerADFContextScope

java.lang.Object
  extended by oracle.apps.fnd.applcore.flex.runtime.ModelerADFContextScope

public class ModelerADFContextScope
extends java.lang.Object

Utility class that temporarily switches the current ADF context to a context for running the modeler.


Nested Class Summary
static class ModelerADFContextScope.OperationException
          Thrown when an error occurs during an operation.
 
Method Summary
 void abort()
          Aborts the current scope.
 void begin()
          Begins the scope.
static void beginMDSFlush()
           
 void end()
          Ends the current scope.
static void endMDSFlush()
           
static ModelerADFContextScope getInstance(java.util.List<java.lang.String> pkgs)
          Gets an instance of this class.
static ModelerADFContextScope getInstance(java.util.List<java.lang.String> pkgs, ModelerSandbox sandbox)
          Gets an instance of this class that uses a sandbox.
static ModelerADFContextScope getInstance(java.util.List<java.lang.String> pkgs, java.lang.String outputPath)
          Gets an instance of this class.
static org.eclipse.persistence.sdo.helper.SDOHelperContext newSDOHelperContext()
          Gets an instance of the SDO helper context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

beginMDSFlush

public static void beginMDSFlush()

endMDSFlush

public static void endMDSFlush()

newSDOHelperContext

public static final org.eclipse.persistence.sdo.helper.SDOHelperContext newSDOHelperContext()
Gets an instance of the SDO helper context. The return instance is a thread local instance, and it is always reset when this method is called. Note that there's no guarantee this method always returns a brand new instance. In the same thread, the same instance may be reused after reset.

Returns:
a thread-local instance of the SDO helper context

begin

public void begin()
Begins the scope. If a sandbox is used, it will be created.

Throws:
java.lang.IllegalStateException - if the the current scope is still in effect
ModelerADFContextScope.OperationException - if an error occurs while configuring the context

end

public void end()
Ends the current scope. If a sandbox is used, it may be published.

Throws:
ModelerADFContextScope.OperationException - if an error occurs

abort

public void abort()
Aborts the current scope. If a sandbox is used, it will be destroyed.

Throws:
ModelerADFContextScope.OperationException - if an error occurs

getInstance

public static ModelerADFContextScope getInstance(java.util.List<java.lang.String> pkgs,
                                                 java.lang.String outputPath)
Gets an instance of this class.

Parameters:
pkgs - the list of package names to be mapped in ADF configuration
outputPath - the output path the file system metadata store path
Returns:
an instance of this class
Throws:
java.lang.IllegalArgumentException - if the given list or output path is null

getInstance

public static ModelerADFContextScope getInstance(java.util.List<java.lang.String> pkgs)
Gets an instance of this class.

Parameters:
pkgs - the list of package names to be mapped in ADF configuration
Returns:
an instance of this class
Throws:
java.lang.IllegalArgumentException - if the package list is null

getInstance

public static ModelerADFContextScope getInstance(java.util.List<java.lang.String> pkgs,
                                                 ModelerSandbox sandbox)
Gets an instance of this class that uses a sandbox.

Parameters:
pkgs - the list of packages
sandbox - the sandbox
Returns:
an instance
Throws:
java.lang.IllegalArgumentException - if the given sandbox or package is null

Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 1 (11.1.2)

E22562-02

Copyright © 2011 Oracle. All Rights Reserved.