Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.4.0)

E10653-05

oracle.jbo.server.svc
Class ServiceImpl

java.lang.Object
  extended by oracle.jbo.server.ejb.SessionBeanImpl
      extended by oracle.jbo.server.svc.ServiceImpl
All Implemented Interfaces:
java.io.Serializable, javax.ejb.EnterpriseBean, javax.ejb.SessionBean

public abstract class ServiceImpl
extends SessionBeanImpl

Since:
11.1.1
See Also:
Serialized Form

Nested Class Summary
protected  class ServiceImpl.NamedParam
           
 
Field Summary
protected  java.util.Stack appModuleStack
          stack to trace the appModule nested structure
protected  java.util.Stack exceptionHandlerStack
          stack to track the JboExceptionHandler
static java.lang.String FND_FLEX_INTEGRATED_EXTENSION
          Property Name for Flex DFF extension usage
static boolean SUPPORT_LAZY_LOADING
          Flag indicating whether the ADF service implementation supports lazy loading.
 
Fields inherited from class oracle.jbo.server.ejb.SessionBeanImpl
mApplicationModule
 
Constructor Summary
ServiceImpl()
          default constructor.
 
Method Summary
protected  commonj.sdo.DataObject create(java.lang.Object object, java.lang.String voName)
          Standard insert operation.
protected  MethodResult delete(java.lang.Object object, java.lang.String voName)
          Standard delete operation.
protected  java.lang.Object find(FindCriteria findCriteria, FindControl findControl, java.lang.String voName, java.lang.Class interfaceClass)
          Standard find operation.
protected  java.lang.Object find(FindCriteria findCriteria, FindControl findControl, java.lang.String voName, java.lang.Class interfaceClass, java.lang.String vcName)
          Custom find operation based on View Criteria with literal values.
protected  java.lang.Object find(FindCriteria findCriteria, FindControl findControl, java.lang.String voName, java.lang.Class interfaceClass, java.lang.String vcName, ServiceImpl.NamedParam[] params)
          Custom find operation based on View Criteria with bind variables.
protected  commonj.sdo.DataObject get(java.lang.Object[] keyValues, java.lang.String voName, java.lang.Class interfaceClass)
          Standard select-by-PK operation.
protected  ApplicationModule getApplicationModule()
          Gets an application module at the top of the stack without removing it from the stack.
protected  java.util.List<AttrCtrlHints> getCtrlHints(commonj.sdo.DataObject dataObject, java.lang.String voName, java.lang.String localeName)
          Returns the row-level UI hints defined on a view row for a given locale.
protected  java.util.List<AttrCtrlHints> getCtrlHints(java.lang.String voName, java.lang.String localeName)
          Returns the base UI hints defined on a view object definition for a given locale.
protected  java.util.List<java.lang.String> getCtrlHintsKey(java.lang.String voName)
          Returns the list of attributes that is to be considered the context key attributes for looking up row-level UI hints.
 AttributeList getParentAttributeList(ViewObject viewObject, ViewRowImpl row, java.lang.String attributeName)
           
protected  java.lang.Object handleError(java.lang.Exception e)
           
protected  java.lang.Object invokeCustom(java.lang.reflect.Method method, java.lang.Object[] args, java.lang.String[] voNames, boolean enableWarnings)
           
protected  java.lang.Object invokeCustom(java.lang.reflect.Method method, java.lang.Object[] args, java.lang.String[] voNames, java.lang.Class interfaceClass, boolean enableWarnings)
           
protected  commonj.sdo.DataObject merge(java.lang.Object object, java.lang.String voName)
          Standard merge (insert or update) operation
protected  java.lang.Object process(java.lang.String operation, ProcessControl processControl, java.util.List request, java.lang.String voName)
          Standard batch update operation.
protected  ProcessData processChangeSummary(ProcessData request, ProcessControl processControl, java.lang.String voName)
          Standard batch update operation using SDO ChangeSummary.
protected  commonj.sdo.DataObject update(java.lang.Object object, java.lang.String voName)
          Standard update operation.
 
Methods inherited from class oracle.jbo.server.ejb.SessionBeanImpl
connectToDataSource, createApplicationModule, createApplicationModule, createTransactionHandlerFactory, disconnectFromDataSource, doMessage, ejbActivate, ejbPassivate, ejbRemove, getApplicationModuleDefName, getConfigurationName, getSessionContext, getTransactionTimeOut, isJboBean, isTransactionManagedByBean, postApplicationModuleCreate, removeApplicationModule, setApplicationModuleDefName, setClientEnv, setConfigurationName, setCurrentSessionContext, setSessionContext, useDataSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

appModuleStack

protected java.util.Stack appModuleStack
stack to trace the appModule nested structure


SUPPORT_LAZY_LOADING

public static final boolean SUPPORT_LAZY_LOADING
Flag indicating whether the ADF service implementation supports lazy loading. When it is false, the while trees of the returned dataobjects will be materialized.

See Also:
Constant Field Values

FND_FLEX_INTEGRATED_EXTENSION

public static final java.lang.String FND_FLEX_INTEGRATED_EXTENSION
Property Name for Flex DFF extension usage

See Also:
Constant Field Values

exceptionHandlerStack

protected java.util.Stack exceptionHandlerStack
stack to track the JboExceptionHandler

Constructor Detail

ServiceImpl

public ServiceImpl()
default constructor. It will start the service monitor timer task.

Method Detail

getApplicationModule

protected ApplicationModule getApplicationModule()
Gets an application module at the top of the stack without removing it from the stack.

Overrides:
getApplicationModule in class SessionBeanImpl
Returns:
an application module, or null if the stack is empty.

create

protected final commonj.sdo.DataObject create(java.lang.Object object,
                                              java.lang.String voName)
Standard insert operation.

Parameters:
object - the DataObject to create
voName - name of the view instance
Returns:
the created DataObject.

getParentAttributeList

public AttributeList getParentAttributeList(ViewObject viewObject,
                                            ViewRowImpl row,
                                            java.lang.String attributeName)

delete

protected final MethodResult delete(java.lang.Object object,
                                    java.lang.String voName)
Standard delete operation.


get

protected final commonj.sdo.DataObject get(java.lang.Object[] keyValues,
                                           java.lang.String voName,
                                           java.lang.Class interfaceClass)
Standard select-by-PK operation.


merge

protected final commonj.sdo.DataObject merge(java.lang.Object object,
                                             java.lang.String voName)
Standard merge (insert or update) operation


update

protected final commonj.sdo.DataObject update(java.lang.Object object,
                                              java.lang.String voName)
Standard update operation.


process

protected final java.lang.Object process(java.lang.String operation,
                                         ProcessControl processControl,
                                         java.util.List request,
                                         java.lang.String voName)
Standard batch update operation.


processChangeSummary

protected final ProcessData processChangeSummary(ProcessData request,
                                                 ProcessControl processControl,
                                                 java.lang.String voName)
Standard batch update operation using SDO ChangeSummary.


find

protected final java.lang.Object find(FindCriteria findCriteria,
                                      FindControl findControl,
                                      java.lang.String voName,
                                      java.lang.Class interfaceClass)
Standard find operation.


find

protected final java.lang.Object find(FindCriteria findCriteria,
                                      FindControl findControl,
                                      java.lang.String voName,
                                      java.lang.Class interfaceClass,
                                      java.lang.String vcName)
Custom find operation based on View Criteria with literal values.


find

protected final java.lang.Object find(FindCriteria findCriteria,
                                      FindControl findControl,
                                      java.lang.String voName,
                                      java.lang.Class interfaceClass,
                                      java.lang.String vcName,
                                      ServiceImpl.NamedParam[] params)
Custom find operation based on View Criteria with bind variables.


getCtrlHints

protected final java.util.List<AttrCtrlHints> getCtrlHints(java.lang.String voName,
                                                           java.lang.String localeName)
Returns the base UI hints defined on a view object definition for a given locale.

Parameters:
voName - service view instance name
localeName - locale name
Returns:
default control hints.

getCtrlHintsKey

protected final java.util.List<java.lang.String> getCtrlHintsKey(java.lang.String voName)
Returns the list of attributes that is to be considered the context key attributes for looking up row-level UI hints.

Parameters:
voName - service view instance name
Returns:
context key attributes.

getCtrlHints

protected final java.util.List<AttrCtrlHints> getCtrlHints(commonj.sdo.DataObject dataObject,
                                                           java.lang.String voName,
                                                           java.lang.String localeName)
Returns the row-level UI hints defined on a view row for a given locale.

Parameters:
dataObject - the SDO DataObject that represents the view row
voName - service view instance name
localeName - locale name
Returns:
row-level control hints.

invokeCustom

protected final java.lang.Object invokeCustom(java.lang.reflect.Method method,
                                              java.lang.Object[] args,
                                              java.lang.String[] voNames,
                                              boolean enableWarnings)

invokeCustom

protected final java.lang.Object invokeCustom(java.lang.reflect.Method method,
                                              java.lang.Object[] args,
                                              java.lang.String[] voNames,
                                              java.lang.Class interfaceClass,
                                              boolean enableWarnings)

handleError

protected final java.lang.Object handleError(java.lang.Exception e)

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.4.0)

E10653-05

Copyright © 1997, 2011, Oracle. All rights reserved.