Oracle Fusion Middleware extensions for Seed Data Framework
11g Release 1 (11.1.2)

E22564-02

oracle.apps.fnd.applseed.rt.common.util
Class SDInvokerUtil

java.lang.Object
  extended by oracle.apps.fnd.applseed.rt.common.util.SDInvokerUtil

public final class SDInvokerUtil
extends java.lang.Object

Utility class to track method of seed data invocation. Please note that this code will get called during initialization, so it cannot take a dependency on any code other than the libraries that SDF requires on the system classpath (J2SE, SDF, OJDL, XML Parser).


Method Summary
static void disableSeedMode(oracle.jbo.server.DBTransaction dbt)
          Disable the Seed Data Mode in the SDF context name space.
static void enableSeedMode(oracle.jbo.server.DBTransaction dbt)
          Enable the Seed Data Mode in the SDF context name space.
static java.lang.String getModeDisplayName()
          get the display name string for the invocation mode.
static boolean isModeCmdLine()
          check for command line invocation mode.
static boolean isModeGUI()
          check for GUI invocation mode.
static boolean isModeJavaWorker()
          check for java worker invocation mode.
static boolean isModeProgram()
          check for programmatic invocation mode.
static void setInvokerMode(oracle.apps.fnd.applseed.rt.common.util.SDInvokerUtil.SDInvocationMode mode)
          Set the invoker mode.
static void setModeCmdLine()
          Set the cmdline invocation mode.
static void setModeGUI()
          Set the GUI invocation mode.
static void setModeJavaWorker()
          Set the java worker invocation mode.
static void setModeProgram()
          Set the programmatic invocation mode.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setInvokerMode

public static void setInvokerMode(oracle.apps.fnd.applseed.rt.common.util.SDInvokerUtil.SDInvocationMode mode)
Set the invoker mode.

Parameters:
mode - SDInvokerMode

setModeGUI

public static void setModeGUI()
Set the GUI invocation mode.


setModeCmdLine

public static void setModeCmdLine()
Set the cmdline invocation mode.


setModeJavaWorker

public static void setModeJavaWorker()
Set the java worker invocation mode.


setModeProgram

public static void setModeProgram()
Set the programmatic invocation mode.


isModeGUI

public static boolean isModeGUI()
check for GUI invocation mode.

Returns:
true when invoked from GUI

isModeCmdLine

public static boolean isModeCmdLine()
check for command line invocation mode.

Returns:
true when invoked from command line

isModeJavaWorker

public static boolean isModeJavaWorker()
check for java worker invocation mode.

Returns:
true when invoked from java worker

isModeProgram

public static boolean isModeProgram()
check for programmatic invocation mode.

Returns:
true when invoked programmatically

getModeDisplayName

public static java.lang.String getModeDisplayName()
get the display name string for the invocation mode.

Returns:
String name of the invocation mode

enableSeedMode

public static void enableSeedMode(oracle.jbo.server.DBTransaction dbt)
                           throws java.sql.SQLException
Enable the Seed Data Mode in the SDF context name space.

Parameters:
dbt - DBTransaction
Throws:
java.sql.SQLException

disableSeedMode

public static void disableSeedMode(oracle.jbo.server.DBTransaction dbt)
Disable the Seed Data Mode in the SDF context name space.

Parameters:
dbt - DBTransation

Oracle Fusion Middleware extensions for Seed Data Framework
11g Release 1 (11.1.2)

E22564-02

Copyright © 2011 Oracle. All Rights Reserved.