Oracle ADF Model and Business Components API Reference 10.1.2 B14022-02


oracle.jbo.server.remote
Class AbstractRemoteApplicationModuleImpl

java.lang.Object
  extended byoracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl

All Implemented Interfaces:
ApplicationModuleRemoteAdapter, java.util.EventListener, JboExceptionHandler, TransactionStateListener, ViewClearCacheListener, WSApplicationModuleMarshaller
Direct Known Subclasses:
NestedApplicationModuleImpl, RemoteApplicationModuleImpl, ServerApplicationModuleImpl, ServerApplicationModuleImpl

public abstract class AbstractRemoteApplicationModuleImpl
extends java.lang.Object
implements JboExceptionHandler, TransactionStateListener, WSApplicationModuleMarshaller, ViewClearCacheListener, ApplicationModuleRemoteAdapter

Remote Adapter that adapts the 2-tier implementation of application module to remote application module.

Version:
INTERNAL

Field Summary
static int PROCESS_STATUS_ERROR_FOUND
static int PROCESS_STATUS_OK

Fields inherited from interface oracle.jbo.common.ws.WSApplicationModuleMarshaller
ACTIVATION_AFTER_LOSS_OF_AFFINITY, ACTIVATION_AFTER_RESTART, ACTIVATION_NONE, SYNC_INT_BATCH, SYNC_INT_BATCH_DO_WORK

Constructor Summary
AbstractRemoteApplicationModuleImpl()
AbstractRemoteApplicationModuleImpl(ApplicationModuleImpl appModule)

Method Summary
void addException(java.lang.Exception ex)
protected void addMethodReturnValueToMessage(java.lang.String methodName, java.lang.Object retVal)
void addResponse(java.io.Serializable resp)
void afterActivation(int activationMode)
void bindToWorkingSet(WSApplicationModuleImpl wsAM)
void cacheCleared(ViewClearCacheEvent event)
This event is fired when View Object caches are cleared.
void clearServiceMessage()
ApplicationModuleImpl createApplicationModule(java.lang.String name, java.lang.String defName)
ResponseValues createLocalApplicationModule(ApplicationModuleImpl parentAM, java.lang.String amName, java.lang.String defName)
protected ObjectMarshallerImpl createObjectMarshaller()
protected PiggybackManager createPiggybackManager(ObjectMarshaller om)
ApplicationModuleImpl createRootApplicationModule(java.util.Hashtable ctxEnv)
protected SessionImpl createSession(java.util.Hashtable env)
ApplicationModule createWorkerApplicationModule(java.lang.Object sessionCookie)
void detach()
protected void disconnectWithRetainState(boolean retainState)
java.lang.Object dispatchMethod(java.lang.Object obj, java.lang.String methodName, java.lang.String[] argTypes, java.lang.Object[] args)
void doneCommit(TransactionStateEvent event)
void doneRollback(TransactionStateEvent event)
ResponseValues findApplicationModule(ApplicationModuleImpl parentAM, java.lang.String amName)
java.lang.Object findObject(java.lang.String objName)
void finishedProcessingPiggyback(java.lang.Exception[] exArray)
void finishServiceMessage()
void finishSyncWorkingSet(WSApplicationModuleImpl wsAM, boolean isEndOfSvcMsg)
ApplicationModuleImpl getAdaptee()
java.lang.String getApplicationModuleDefName()
ResponseValues getApplicationModuleInfo()
protected java.lang.String[] getAppModuleNamesFromResponse(ResponseValues resp)
AppModuleRequestHandler getAppModuleRequestHandler()
java.lang.String getClientProxyInterfaceName()
WSApplicationModuleImpl getCurrentWorkingSet()
ObjectMarshallerImpl getMarshaller()
ObjectMarshaller getObjectMarshaller()
protected ServiceMessage getOutboundServiceMessage()
byte[] getPiggyback()
int getRemoteObjectId(java.lang.Object obj)
java.lang.String getRequestName()
java.lang.String getResponseName()
PiggybackManager getSvcMsgManager()
void handleException(java.lang.Exception ex, boolean lastEntryInPiggyback)
Catches an exception thrown by the middle tier.
void handleWarning(JboWarning warn)
Catches a warning thrown by the middle tier.
boolean hasPendingDataPosts()
java.lang.Object invokeMethod(java.lang.Object target, java.lang.String methodName, java.lang.String[] argTypeNames, java.lang.Object[] args)
java.lang.Object marshal(java.lang.Object obj)
java.lang.Object marshalForActivate(java.lang.Object obj)
ServiceMessage processMessage(ServiceMessage msg)
boolean processPiggyback(byte[] inBytes)
boolean processServiceMessage(ServiceMessage svcMsg)
protected int processSvcMsgRequest(Request svcMsgReq, int processStatus)
protected void reconnectWithoutForce()
void remove()
ServiceMessage sendWorkingSetRequests(java.lang.String reqName, WSApplicationModuleImpl wsAM, ServiceMessage msg)
void setAdaptee(ApplicationModuleImpl appModImpl)
void setApplicationModuleDefName(java.lang.String appModuleDefName)
void setBoundToWorkingSet(boolean b)
void setDataModelRefresh(boolean b)
void setMarshaller(ObjectMarshallerImpl marshaller)
void setSvcMsgManager(PiggybackManager piggyman)
ServiceMessage sync(ServiceMessage msg)
void syncMarshaller(ServiceMessage msg)
void syncWorkingSet(WSApplicationModuleImpl wsAM)
void txnCreated(DBTransactionImpl txn)
void txnRemoved(DBTransactionImpl txn)

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

PROCESS_STATUS_OK

public static final int PROCESS_STATUS_OK
See Also:
Constant Field Values

PROCESS_STATUS_ERROR_FOUND

public static final int PROCESS_STATUS_ERROR_FOUND
See Also:
Constant Field Values

Constructor Detail

AbstractRemoteApplicationModuleImpl

public AbstractRemoteApplicationModuleImpl()

AbstractRemoteApplicationModuleImpl

public AbstractRemoteApplicationModuleImpl(ApplicationModuleImpl appModule)

Method Detail

setMarshaller

public void setMarshaller(ObjectMarshallerImpl marshaller)

setSvcMsgManager

public void setSvcMsgManager(PiggybackManager piggyman)

getSvcMsgManager

public PiggybackManager getSvcMsgManager()

getRequestName

public java.lang.String getRequestName()

getMarshaller

public ObjectMarshallerImpl getMarshaller()

createRootApplicationModule

public ApplicationModuleImpl createRootApplicationModule(java.util.Hashtable ctxEnv)

getResponseName

public java.lang.String getResponseName()
Specified by:
getResponseName in interface WSApplicationModuleMarshaller

getRemoteObjectId

public int getRemoteObjectId(java.lang.Object obj)
Specified by:
getRemoteObjectId in interface WSApplicationModuleMarshaller

marshal

public java.lang.Object marshal(java.lang.Object obj)
Specified by:
marshal in interface WSApplicationModuleMarshaller

marshalForActivate

public java.lang.Object marshalForActivate(java.lang.Object obj)
Specified by:
marshalForActivate in interface WSApplicationModuleMarshaller

getObjectMarshaller

public ObjectMarshaller getObjectMarshaller()
Specified by:
getObjectMarshaller in interface WSApplicationModuleMarshaller

addResponse

public void addResponse(java.io.Serializable resp)
Specified by:
addResponse in interface WSApplicationModuleMarshaller

addException

public void addException(java.lang.Exception ex)

setDataModelRefresh

public void setDataModelRefresh(boolean b)
Specified by:
setDataModelRefresh in interface WSApplicationModuleMarshaller

createSession

protected SessionImpl createSession(java.util.Hashtable env)

setApplicationModuleDefName

public final void setApplicationModuleDefName(java.lang.String appModuleDefName)

getApplicationModuleDefName

public final java.lang.String getApplicationModuleDefName()

getApplicationModuleInfo

public ResponseValues getApplicationModuleInfo()

createApplicationModule

public ApplicationModuleImpl createApplicationModule(java.lang.String name,
                                                     java.lang.String defName)

detach

public void detach()
Specified by:
detach in interface WSApplicationModuleMarshaller

afterActivation

public void afterActivation(int activationMode)
Specified by:
afterActivation in interface WSApplicationModuleMarshaller

setBoundToWorkingSet

public void setBoundToWorkingSet(boolean b)
Specified by:
setBoundToWorkingSet in interface WSApplicationModuleMarshaller

bindToWorkingSet

public void bindToWorkingSet(WSApplicationModuleImpl wsAM)
Specified by:
bindToWorkingSet in interface WSApplicationModuleMarshaller

getClientProxyInterfaceName

public java.lang.String getClientProxyInterfaceName()
Specified by:
getClientProxyInterfaceName in interface WSApplicationModuleMarshaller

createWorkerApplicationModule

public ApplicationModule createWorkerApplicationModule(java.lang.Object sessionCookie)
Specified by:
createWorkerApplicationModule in interface WSApplicationModuleMarshaller

getAppModuleRequestHandler

public AppModuleRequestHandler getAppModuleRequestHandler()
Specified by:
getAppModuleRequestHandler in interface WSApplicationModuleMarshaller

syncWorkingSet

public void syncWorkingSet(WSApplicationModuleImpl wsAM)
Specified by:
syncWorkingSet in interface WSApplicationModuleMarshaller

finishSyncWorkingSet

public void finishSyncWorkingSet(WSApplicationModuleImpl wsAM,
                                 boolean isEndOfSvcMsg)
Specified by:
finishSyncWorkingSet in interface WSApplicationModuleMarshaller

sendWorkingSetRequests

public ServiceMessage sendWorkingSetRequests(java.lang.String reqName,
                                             WSApplicationModuleImpl wsAM,
                                             ServiceMessage msg)
Specified by:
sendWorkingSetRequests in interface WSApplicationModuleMarshaller

getCurrentWorkingSet

public WSApplicationModuleImpl getCurrentWorkingSet()
Specified by:
getCurrentWorkingSet in interface WSApplicationModuleMarshaller

hasPendingDataPosts

public boolean hasPendingDataPosts()
Specified by:
hasPendingDataPosts in interface WSApplicationModuleMarshaller

sync

public ServiceMessage sync(ServiceMessage msg)

processMessage

public ServiceMessage processMessage(ServiceMessage msg)
Specified by:
processMessage in interface ApplicationModuleRemoteAdapter

finishServiceMessage

public void finishServiceMessage()
Specified by:
finishServiceMessage in interface ApplicationModuleRemoteAdapter

clearServiceMessage

public void clearServiceMessage()
Specified by:
clearServiceMessage in interface ApplicationModuleRemoteAdapter

txnCreated

public void txnCreated(DBTransactionImpl txn)
Specified by:
txnCreated in interface ApplicationModuleRemoteAdapter

txnRemoved

public void txnRemoved(DBTransactionImpl txn)
Specified by:
txnRemoved in interface ApplicationModuleRemoteAdapter

disconnectWithRetainState

protected void disconnectWithRetainState(boolean retainState)

reconnectWithoutForce

protected void reconnectWithoutForce()

remove

public void remove()

processSvcMsgRequest

protected int processSvcMsgRequest(Request svcMsgReq,
                                   int processStatus)

createObjectMarshaller

protected ObjectMarshallerImpl createObjectMarshaller()

createPiggybackManager

protected PiggybackManager createPiggybackManager(ObjectMarshaller om)

setAdaptee

public void setAdaptee(ApplicationModuleImpl appModImpl)

getAdaptee

public ApplicationModuleImpl getAdaptee()

processPiggyback

public boolean processPiggyback(byte[] inBytes)

processServiceMessage

public boolean processServiceMessage(ServiceMessage svcMsg)

getOutboundServiceMessage

protected ServiceMessage getOutboundServiceMessage()

getPiggyback

public byte[] getPiggyback()

handleException

public void handleException(java.lang.Exception ex,
                            boolean lastEntryInPiggyback)
Description copied from interface: JboExceptionHandler
Catches an exception thrown by the middle tier.
Specified by:
handleException in interface JboExceptionHandler
Parameters:
ex - an exception.
lastEntryInPiggyback - true if ex is the last of a batch of exceptions and warnings generated by a transaction.

handleWarning

public void handleWarning(JboWarning warn)
Description copied from interface: JboExceptionHandler
Catches a warning thrown by the middle tier.
Specified by:
handleWarning in interface JboExceptionHandler
Parameters:
warn - a warning message.

finishedProcessingPiggyback

public void finishedProcessingPiggyback(java.lang.Exception[] exArray)
Specified by:
finishedProcessingPiggyback in interface JboExceptionHandler

findObject

public java.lang.Object findObject(java.lang.String objName)

findApplicationModule

public ResponseValues findApplicationModule(ApplicationModuleImpl parentAM,
                                            java.lang.String amName)

createLocalApplicationModule

public ResponseValues createLocalApplicationModule(ApplicationModuleImpl parentAM,
                                                   java.lang.String amName,
                                                   java.lang.String defName)

dispatchMethod

public java.lang.Object dispatchMethod(java.lang.Object obj,
                                       java.lang.String methodName,
                                       java.lang.String[] argTypes,
                                       java.lang.Object[] args)
                                throws JboException
Throws:
JboException

doneCommit

public void doneCommit(TransactionStateEvent event)
Specified by:
doneCommit in interface TransactionStateListener
Parameters:
event - a description of the event.

doneRollback

public void doneRollback(TransactionStateEvent event)
Specified by:
doneRollback in interface TransactionStateListener
Parameters:
event - a description of the event.

cacheCleared

public void cacheCleared(ViewClearCacheEvent event)
Description copied from interface: ViewClearCacheListener
This event is fired when View Object caches are cleared. A View Object cache can be cleared thourgh a call to ViewObject.clearCache(), or Transaction.clearEntityCache(String), or ApplicationModule.clearVOCaches(String, boolean).
Specified by:
cacheCleared in interface ViewClearCacheListener
Parameters:
event - describes the event.

addMethodReturnValueToMessage

protected void addMethodReturnValueToMessage(java.lang.String methodName,
                                             java.lang.Object retVal)

getAppModuleNamesFromResponse

protected java.lang.String[] getAppModuleNamesFromResponse(ResponseValues resp)

invokeMethod

public java.lang.Object invokeMethod(java.lang.Object target,
                                     java.lang.String methodName,
                                     java.lang.String[] argTypeNames,
                                     java.lang.Object[] args)
Specified by:
invokeMethod in interface WSApplicationModuleMarshaller

syncMarshaller

public void syncMarshaller(ServiceMessage msg)
Specified by:
syncMarshaller in interface WSApplicationModuleMarshaller

Oracle ADF Model and Business Components API Reference 10.1.2 B14022-02


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