Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

oracle.jbo.server
Class EntityReplayItemPublisher

java.lang.Object
  extended by oracle.jbo.server.EntityReplayItemPublisher
All Implemented Interfaces:
NativeMobileServiceBusListener, TransactionListener

public class EntityReplayItemPublisher
extends java.lang.Object
implements NativeMobileServiceBusListener, TransactionListener

Listens to events that are published on the NativeMobileServiceBus and collates their payloads. Then, at commit time, creates a replay item that will later be used to synchronize model changes back up to the server

Author:
PARACHAN

Field Summary
static java.lang.Class CLASS_INSTANCE
           
static java.lang.String DEFAULT_REPLAY_ITEM_SEQUENCE_NAME
           
static java.lang.String DEFAULT_REPLAY_ITEM_TABLE_NAME
           
static int DEFAULT_REPLAY_TYPE_ID
           
static java.lang.String DEFAULT_REPLAY_TYPE_NAME
           
static java.lang.String ENTITY_REPLAY_ITEM_XML_TAG
           
static java.lang.String TRS_DATABASE_ID
           
static java.lang.String TRS_PUBLICATION_NAME
           
static java.lang.String USE_TRS_KEY
           
 
Method Summary
 void afterCommit(TransactionEvent e)
          Called to report that a Commit operation has occurred.
 void afterRemove(TransactionEvent e)
          A cleanup routine to be invoked by transaction manager when this transaction listener is removed from the manager's list.
 void afterRollback(TransactionEvent e)
          Called to report that a Rollback operation has occurred.
 void beforeCommit(TransactionEvent e)
          Called to report that a Commit operation is imminent.
 void beforeRollback(TransactionEvent e)
          Called to report that a Rollback operation is imminent.
static ConnectionDetails getTrsDBConnectionDetails()
          Gets the TRS database connection details and also creates them if necessary.
 boolean isTransientTransactionListener()
          Tests whether this transaction listener is transient or permanent.
static boolean isTrsLoggingEnabledForApp()
           
static boolean isTrsLoggingEnabledForEntity(java.lang.String entityDefName)
           
 void onBusinessEventFired(EventInvocation invocation)
          The NativeMobile Service Bus calls this method on all subscribers when a business event is raised.
 void onJavaEventFired(EventObject event)
          The NativeMobile Service Bus calls this method on all subscribers when a Java event is raised
static void setTrsLoggingEnabledForApp(boolean value)
           
static void setTrsLoggingEnabledForEntity(java.lang.String entityDefName, boolean value)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_INSTANCE

public static final java.lang.Class CLASS_INSTANCE

ENTITY_REPLAY_ITEM_XML_TAG

public static final java.lang.String ENTITY_REPLAY_ITEM_XML_TAG
See Also:
Constant Field Values

DEFAULT_REPLAY_TYPE_ID

public static final int DEFAULT_REPLAY_TYPE_ID
See Also:
Constant Field Values

DEFAULT_REPLAY_TYPE_NAME

public static final java.lang.String DEFAULT_REPLAY_TYPE_NAME
See Also:
Constant Field Values

TRS_DATABASE_ID

public static final java.lang.String TRS_DATABASE_ID
See Also:
Constant Field Values

USE_TRS_KEY

public static final java.lang.String USE_TRS_KEY
See Also:
Constant Field Values

DEFAULT_REPLAY_ITEM_SEQUENCE_NAME

public static final java.lang.String DEFAULT_REPLAY_ITEM_SEQUENCE_NAME
See Also:
Constant Field Values

DEFAULT_REPLAY_ITEM_TABLE_NAME

public static final java.lang.String DEFAULT_REPLAY_ITEM_TABLE_NAME
See Also:
Constant Field Values

TRS_PUBLICATION_NAME

public static final java.lang.String TRS_PUBLICATION_NAME
See Also:
Constant Field Values
Method Detail

isTrsLoggingEnabledForApp

public static boolean isTrsLoggingEnabledForApp()

setTrsLoggingEnabledForApp

public static void setTrsLoggingEnabledForApp(boolean value)

setTrsLoggingEnabledForEntity

public static void setTrsLoggingEnabledForEntity(java.lang.String entityDefName,
                                                 boolean value)

isTrsLoggingEnabledForEntity

public static boolean isTrsLoggingEnabledForEntity(java.lang.String entityDefName)

onBusinessEventFired

public void onBusinessEventFired(EventInvocation invocation)
Description copied from interface: NativeMobileServiceBusListener
The NativeMobile Service Bus calls this method on all subscribers when a business event is raised.

Specified by:
onBusinessEventFired in interface NativeMobileServiceBusListener

afterCommit

public void afterCommit(TransactionEvent e)
Description copied from interface: TransactionListener
Called to report that a Commit operation has occurred.

Specified by:
afterCommit in interface TransactionListener
Parameters:
e - a transaction event.

afterRemove

public void afterRemove(TransactionEvent e)
Description copied from interface: TransactionListener
A cleanup routine to be invoked by transaction manager when this transaction listener is removed from the manager's list.

Specified by:
afterRemove in interface TransactionListener
Parameters:
e - a transaction event.

afterRollback

public void afterRollback(TransactionEvent e)
Description copied from interface: TransactionListener
Called to report that a Rollback operation has occurred.

Specified by:
afterRollback in interface TransactionListener
Parameters:
e - a transaction event.

beforeCommit

public void beforeCommit(TransactionEvent e)
Description copied from interface: TransactionListener
Called to report that a Commit operation is imminent.

Specified by:
beforeCommit in interface TransactionListener
Parameters:
e - a transaction event.

beforeRollback

public void beforeRollback(TransactionEvent e)
Description copied from interface: TransactionListener
Called to report that a Rollback operation is imminent.

Specified by:
beforeRollback in interface TransactionListener
Parameters:
e - a transaction event.

isTransientTransactionListener

public boolean isTransientTransactionListener()
Description copied from interface: TransactionListener
Tests whether this transaction listener is transient or permanent.

Transient listeners are automatically removed at the end of a transaction commit or rollback cycle; permanent listeners remain across these cycles.

Specified by:
isTransientTransactionListener in interface TransactionListener
Returns:
true if the listener is transient.

getTrsDBConnectionDetails

public static ConnectionDetails getTrsDBConnectionDetails()
Gets the TRS database connection details and also creates them if necessary.

Returns:

onJavaEventFired

public void onJavaEventFired(EventObject event)
Description copied from interface: NativeMobileServiceBusListener
The NativeMobile Service Bus calls this method on all subscribers when a Java event is raised

Specified by:
onJavaEventFired in interface NativeMobileServiceBusListener

Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.