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

E22562-03

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

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

public class ModelerSandbox
extends java.lang.Object

Utility class for running a modeler with an MDS sandbox.


Constructor Summary
ModelerSandbox(boolean isApplCoreSandbox, java.lang.String baseName, java.lang.String description)
          Constructs a modeler sandbox.
 
Method Summary
 void create()
          Creates the sandbox.
 void destroy()
          Destroys the sandbox
 java.lang.String getName()
          Gets the name of the sandbox.
static boolean isApplCoreSandbox(java.lang.String name)
          Returns true if a sandbox name implies that it is an ApplCore sandbox.
static boolean isFeatureSupported()
          Checks whether the metadata store this class will use supports sandbox feature or not.
 void publish()
          Publishes the sandbox.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ModelerSandbox

public ModelerSandbox(boolean isApplCoreSandbox,
                      java.lang.String baseName,
                      java.lang.String description)
Constructs a modeler sandbox.

Parameters:
isApplCoreSandbox - true if the sandbox should be an ApplCore sandbox
baseName - the base name used to construct the MDS sandbox name
description - the description of the sandbox
Throws:
java.lang.NullPointerException - if the base name is null
Method Detail

getName

public final java.lang.String getName()
Gets the name of the sandbox. This is the actual name of the MDS sandbox.

Returns:
the name of the sandbox

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

isApplCoreSandbox

public static boolean isApplCoreSandbox(java.lang.String name)
Returns true if a sandbox name implies that it is an ApplCore sandbox.

Parameters:
name - the name of the sandbox
Returns:
true if the sandbox is an ApplCore sandbox
Throws:
java.lang.NullPointerException - if the given name is null

create

public void create()
Creates the sandbox.


publish

public void publish()
Publishes the sandbox.

Throws:
java.lang.UnsupportedOperationException - if the sandbox cannot be published using this method
BCModelerException - if an error occurs, or if the sandbox has not been created

destroy

public void destroy()
Destroys the sandbox

Throws:
BCModelerException - if any error occurs

isFeatureSupported

public static boolean isFeatureSupported()
Checks whether the metadata store this class will use supports sandbox feature or not. Note that the result is associated with the current ADF context when this method is called.

Returns:
true if the metadata store this class will use supports sandbox feature

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

E22562-03

Copyright © 2012 Oracle. All Rights Reserved.