|
Oracle Fusion Middleware extensions for Applications Core API Reference 11g Release 1 (11.1.2) E22562-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.apps.fnd.applcore.oaext.model.OAUtility
public final class OAUtility
Generic (utility) constants and functions such as comparing Dates and checking if two objects are equal. Other generic utility functions should be included here. All methods are static and do not need an instance of the class to use the methods.
Field Summary | |
---|---|
static java.lang.String |
OC4J_CLASS
|
static java.lang.String |
RCS_ID
RCS_ID. |
static java.lang.String |
USE_APPLICATION_DB_ENV_INFO_PROVIDER
The name of the session-scoped property indicating whether an EnvInfoProvider that sets the data source to
ApplSession.APPLICATION_DB_DS should be used in
createRootApplicationModule . |
static java.lang.String |
WLS_CLASS
|
Constructor Summary | |
---|---|
OAUtility()
|
Method Summary | |
---|---|
static oracle.jbo.ApplicationModule |
createRootApplicationModule(java.lang.String appMod,
java.lang.String configName)
Creates a Root ApplicationModule. |
static oracle.jbo.Row[] |
filterRow(oracle.jbo.ViewObject vo,
java.util.Map<java.lang.String,java.lang.String> attrVal)
A utility method to query a viewObject basing on given attribute-value pairs. |
static oracle.jbo.Row[] |
filterRow(oracle.jbo.ViewObject vo,
java.lang.String attr,
java.lang.String value)
A utility method to query a viewObject basing on a given attribute and its value. |
static java.sql.Connection |
getConnection()
Returns the connection associated with the current session. |
static java.sql.Connection |
getConnection(java.lang.String dataSourceName)
Returns the connection associated with the data source specified by the parameter dataSourceName. |
static java.lang.Long |
getDocSequence(java.lang.Long appId,
java.lang.String categoryCode,
java.lang.Long sobId,
java.lang.String methodCode,
java.sql.Timestamp txnDate,
java.lang.Long seqVal,
java.lang.String suppressWarn,
java.lang.String suppressError,
oracle.jbo.server.DBTransaction dbTxn)
Deprecated. |
static java.lang.Long[] |
getDocSequenceValueWithId(java.lang.Long appId,
java.lang.String categoryCode,
java.lang.Long sobId,
java.lang.String methodCode,
java.sql.Timestamp txnDate,
java.lang.Long seqVal,
java.lang.String suppressWarn,
java.lang.String suppressError,
oracle.jbo.server.DBTransaction dbTxn)
Utility API to get/validate document sequence from the database. |
static java.sql.Connection |
getLWSConnection()
Deprecated. |
static ApplSession |
getSession()
Deprecated. |
static java.sql.Date |
getSQLDate(java.util.Date d,
java.util.TimeZone tz)
Constructs a java.sql.Date based on a java.util.Date by setting the hour, minute, second and millisecond to zero in the given time zone. |
static java.lang.String |
getXSSessionAttribute(java.lang.String attrName,
java.lang.String nameSpace)
Deprecated. |
static java.lang.String |
getXSSessionAttributeInGlobalNameSpace(java.lang.String attrName)
Deprecated. |
static java.lang.String |
getXSSessionAttributeInXSNameSpace(java.lang.String attrName)
Deprecated. |
static java.io.Serializable |
invokeMethod(java.lang.String methodName,
java.lang.Object obj)
Allow arbitrary methods to be executed remotely without generating remote stubs. |
static java.io.Serializable |
invokeMethod(java.lang.String methodName,
java.io.Serializable[] methodParams,
java.lang.Class[] methodParamTypes,
java.lang.Object obj)
In developement - to allow arbitrary methods to be executed remotely without generating remote stubs. |
static java.io.Serializable |
invokeMethod(java.lang.String methodName,
java.io.Serializable[] methodParams,
java.lang.Object obj)
Allows arbitrary methods to be executed remotely without generating remote stubs. |
static boolean |
isEqual(java.lang.Object pObject1,
java.lang.Object pObject2)
Object comparator that returns true if both arguments point to the same object or if both args are null. |
static boolean |
isInDateRange(java.sql.Timestamp pCheckDate,
java.sql.Timestamp pStartDate,
java.sql.Timestamp pEndDate)
Checks if the first Timestamp is between or equal to the other Dates. |
static boolean |
isNotEqual(java.lang.Object pObject1,
java.lang.Object pObject2)
Object comparator that returns false if both arguments point to the same object or if both args are null. |
boolean |
isRunningInJ2EEMode()
|
static void |
raiseDocSeqException(int status,
oracle.jbo.server.DBTransaction dbTxn)
|
static void |
releaseRootApplicationModule(oracle.jbo.ApplicationModule am,
boolean remove)
Releases an application module. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String RCS_ID
public static final java.lang.String USE_APPLICATION_DB_ENV_INFO_PROVIDER
EnvInfoProvider
that sets the data source to
ApplSession.APPLICATION_DB_DS
should be used in
createRootApplicationModule
.
The value must be null, "true" or "false".
createRootApplicationModule(java.lang.String, java.lang.String)
,
Constant Field Valuespublic static final java.lang.String OC4J_CLASS
public static final java.lang.String WLS_CLASS
Constructor Detail |
---|
public OAUtility()
Method Detail |
---|
public static boolean isEqual(java.lang.Object pObject1, java.lang.Object pObject2)
pObject1
- object to compare.pObject2
- object to compare with.
public static boolean isNotEqual(java.lang.Object pObject1, java.lang.Object pObject2)
pObject1
- object to compare.pObject2
- object to compare with.
public static boolean isInDateRange(java.sql.Timestamp pCheckDate, java.sql.Timestamp pStartDate, java.sql.Timestamp pEndDate)
pCheckDate
- The date to check if it is in range.pStartDate
- The beginning of the range to check.pEndDate
- The end of the range to check.
public static java.io.Serializable invokeMethod(java.lang.String methodName, java.lang.Object obj)
methodName
- the name of the method being invoked.obj
- the object being invoked.
public static java.io.Serializable invokeMethod(java.lang.String methodName, java.io.Serializable[] methodParams, java.lang.Object obj)
methodName
- the name of the method being invoked.methodParams
- the parameters to the method in order.obj
- the object being invoked.
public static java.io.Serializable invokeMethod(java.lang.String methodName, java.io.Serializable[] methodParams, java.lang.Class[] methodParamTypes, java.lang.Object obj)
methodName
- the name of the method being invoked.methodParams
- the parameters to the method in order.methodParamTypes
- the Class of the parameter.obj
- the object being invoked.
public static java.sql.Date getSQLDate(java.util.Date d, java.util.TimeZone tz)
DATE
.
When two java.sql.Date
objects are compared by invoking
the method equals
, the two objects may not be equal if they
have been "normalized" in diffrent time zones.
d
- the instance of java.util.Datetz
- the time zone in which the hour, minute, second and millisecond
should be set to zero
public static ApplSession getSession()
ApplSessionUtil.getSession()
public static java.sql.Connection getLWSConnection()
ApplSessionUtil.getConnection()
public static java.sql.Connection getConnection()
ApplSessionUtil.getConnection()
public static java.sql.Connection getConnection(java.lang.String dataSourceName)
dataSourceName
- Name of the data source.
public static java.lang.String getXSSessionAttributeInGlobalNameSpace(java.lang.String attrName)
attrName
- Name of the attribute to be looked up.
ApplSessionUtil.getNamespaceAttribute(String namespaceName, String attrName)
public static java.lang.String getXSSessionAttributeInXSNameSpace(java.lang.String attrName)
attrName
- Name of the attribute to be looked up.
ApplSessionUtil.getSessionAttribute(String name)
public static java.lang.String getXSSessionAttribute(java.lang.String attrName, java.lang.String nameSpace)
attrName
- Name of the attribute to be looked up.nameSpace
- Name space in which to look up the attribute.
ApplSessionUtil.getNamespaceAttribute(String namespaceName, String attrName)
,
ApplSessionUtil.getSessionAttribute(String name)
public static oracle.jbo.ApplicationModule createRootApplicationModule(java.lang.String appMod, java.lang.String configName)
appMod
- the package qualified application module definition nameconfigName
- the name ofthe configuration
public static java.lang.Long getDocSequence(java.lang.Long appId, java.lang.String categoryCode, java.lang.Long sobId, java.lang.String methodCode, java.sql.Timestamp txnDate, java.lang.Long seqVal, java.lang.String suppressWarn, java.lang.String suppressError, oracle.jbo.server.DBTransaction dbTxn)
appId
- Application IdcategoryCode
- Document Sequence Category CodesobId
- Ledger Id to use for this Document Sequence.methodCode
- Document sequence Method Code (Automatic ("A"), Manual ("M") or null for both modes).txnDate
- Document Transaction DateseqVal
- Document Sequence Value to use in Manual ModesuppressWarn
- Suppress warning (Y/N/null)suppressError
- Suppress Error (valid values are Y/N/null)
getDocSequenceValueWithId(java.lang.Long, java.lang.String, java.lang.Long, java.lang.String, java.sql.Timestamp, java.lang.Long, java.lang.String, java.lang.String, oracle.jbo.server.DBTransaction)
public static java.lang.Long[] getDocSequenceValueWithId(java.lang.Long appId, java.lang.String categoryCode, java.lang.Long sobId, java.lang.String methodCode, java.sql.Timestamp txnDate, java.lang.Long seqVal, java.lang.String suppressWarn, java.lang.String suppressError, oracle.jbo.server.DBTransaction dbTxn)
appId
- Application IdcategoryCode
- Document Sequence Category CodesobId
- Ledger Id to use for this Document Sequence.methodCode
- Document sequence Method Code (Automatic ("A"), Manual ("M") or null for both modes).txnDate
- Document Transaction DateseqVal
- Document Sequence Value to use in Manual ModesuppressWarn
- Suppress warning (Y/N/null)suppressError
- Suppress Error (valid values are Y/N/null)
public static void raiseDocSeqException(int status, oracle.jbo.server.DBTransaction dbTxn)
public boolean isRunningInJ2EEMode()
public static void releaseRootApplicationModule(oracle.jbo.ApplicationModule am, boolean remove)
am
- the application module to be releasedremove
- true if this application module should be removed from the
pool. Applicable only if the application module was
created by oracle.jbo.client.Configuration
public static oracle.jbo.Row[] filterRow(oracle.jbo.ViewObject vo, java.lang.String attr, java.lang.String value)
vo
- viewObjectattr
- an attribute of the viewObjectvalue
- value for this attribute
public static oracle.jbo.Row[] filterRow(oracle.jbo.ViewObject vo, java.util.Map<java.lang.String,java.lang.String> attrVal)
vo
- viewObjectattrVal
- attribute-value paires
|
Oracle Fusion Middleware extensions for Applications Core API Reference 11g Release 1 (11.1.2) E22562-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |