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

E22562-07

oracle.apps.fnd.applcore.dt.setid.utils
Class SetIdUtils

java.lang.Object
  extended by oracle.apps.fnd.applcore.dt.setid.utils.SetIdUtils

public final class SetIdUtils
extends java.lang.Object

Utility class to contain helper methods for Set Id project.


Method Summary
static java.sql.Connection getDatabaseConnectionFromApplication(oracle.jbo.dt.objects.JboApplication app, boolean forceCreate)
          This method retrieves the current JBO database connection from the current JBO Application.
static java.sql.Connection getDatabaseConnectionFromProject(oracle.ide.model.Project project, boolean forceCreate)
          This method retrieves the current JBO database connection from the current JBO Project.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDatabaseConnectionFromProject

public static java.sql.Connection getDatabaseConnectionFromProject(oracle.ide.model.Project project,
                                                                   boolean forceCreate)
                                                            throws java.lang.ClassNotFoundException,
                                                                   java.sql.SQLException
This method retrieves the current JBO database connection from the current JBO Project. It also initialises the connection if has not already been done.

Parameters:
project - the current JBO project
forceCreate - boolean inidicating whether a new connection should be created if existing connection cannot be found.
Returns:
A valid initialised connection.
Throws:
java.lang.ClassNotFoundException - - can throw this exception.
java.sql.SQLException - - can throw this exception.

getDatabaseConnectionFromApplication

public static java.sql.Connection getDatabaseConnectionFromApplication(oracle.jbo.dt.objects.JboApplication app,
                                                                       boolean forceCreate)
                                                                throws java.lang.ClassNotFoundException,
                                                                       java.sql.SQLException
This method retrieves the current JBO database connection from the current JBO Application. It also initialises the connection if has not already been done.

Parameters:
app - JboApplication the current JBO project
forceCreate - boolean inidicating whether a new connection should be created if existing connection cannot be found.
Returns:
A valid initialised connection.
Throws:
java.lang.ClassNotFoundException - - can throw this exception.
java.sql.SQLException - - can throw this exception.

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

E22562-07

Copyright © 2013 Oracle. All Rights Reserved.