Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 8 (11.1.8)

E22562-08

oracle.apps.fnd.applcore.oaext.osn
Class OsnSendRouter

java.lang.Object
  extended by oracle.apps.fnd.applcore.oaext.osn.OsnSendRouter

public class OsnSendRouter
extends java.lang.Object

The OsnSendRouter contains the logic that will ensure that only one send to OSN will occur in a multi-eo scenario. The primary EO and each secondary EO will be registered with the router and which ever EO is commited first will call the sendToOsn API and will lock out all other EO's from sending even though each of them potentially will try and send as they have been committed.

Since:
11.1.1.7.1
Version:
$Header: atgpf/applcore/applications/Common/Model/src/oracle/apps/fnd/applcore/oaext/osn/OsnSendRouter.java /st_atgpf_11.1.1.7.3/1 2013/10/30 00:02:14 cchokshi Exp $

Constructor Summary
OsnSendRouter(OAEntityImpl primaryEO)
          Default Constructor.
 
Method Summary
 void addSecondaryEO(OAEntityImpl secondaryEO)
          Add a secondary EO to the list of entities that can route a send to OSN via the primary EO.
 void buildOsnDeleteAdapter(OAViewObjectImpl osnVo, OAViewRowImpl osnRow)
          Internal use only: build and store the adapter that can be used to delete the row.
 void sendToOsn(OAEntityImpl triggeringEntity, byte preCommitEntityState, byte preCommitPostState)
          Route a send to OSN via the primary EO.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OsnSendRouter

public OsnSendRouter(OAEntityImpl primaryEO)
Default Constructor.

Parameters:
primaryEO - the EO to be used when making requests to send to OSN. Primary EO must not be null.
Method Detail

addSecondaryEO

public void addSecondaryEO(OAEntityImpl secondaryEO)
Add a secondary EO to the list of entities that can route a send to OSN via the primary EO.

Parameters:
secondaryEO - the secondary EO to regisiter.

sendToOsn

public void sendToOsn(OAEntityImpl triggeringEntity,
                      byte preCommitEntityState,
                      byte preCommitPostState)
Route a send to OSN via the primary EO. If the send has already occurred from another EO then this request will be ignored.

Parameters:
triggeringEntity - the entity that is triggering the send to OSN.
preCommitEntityState - the state the entity was in before the final commit occurred.
preCommitPostState - the post state of the entity before the final commit occurred.

buildOsnDeleteAdapter

public void buildOsnDeleteAdapter(OAViewObjectImpl osnVo,
                                  OAViewRowImpl osnRow)
Internal use only: build and store the adapter that can be used to delete the row. This will determine the primary EO and ensure that it is flagged with the delete adapter. The send router will be used to ensure that there is only one send to OSN made.

Parameters:
osnVo - the VO containing the row to delete.
osnRow - the row to delete.

Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 8 (11.1.8)

E22562-08

Copyright © 2013 Oracle. All Rights Reserved.