Oracle Fusion Middleware Java API Reference for Oracle ADF Share
11g Release 1 (11.1.1.7.0)

E10686-08

oracle.adf.share.mds
Class MDSTransManager

java.lang.Object
  extended by oracle.adf.share.mds.MDSTransManager
All Implemented Interfaces:
MDSLockedSessionOperations
Direct Known Subclasses:
ADFContextMDSConfigHelperImpl

public class MDSTransManager
extends java.lang.Object
implements MDSLockedSessionOperations

Since:
release specific (what release of product did this appear in)

Field Summary
static ADFLogger _EXCELOG
           
static ADFLogger _LOG
           
 
Constructor Summary
MDSTransManager()
           
 
Method Summary
static void addListener(MDSTransResetListener col)
           
 void addListenerInst(MDSTransResetListener col)
           
static void beginFlush(oracle.mds.core.MDSSession mdsSess)
          Deprecated. relaced by beginFlushCurrentMDSSess()
static void beginFlushCurrentMDSSess()
           
 void cancelMDSSessionChanges()
          Cancels the current MDSSession for the current ADFContext.
static void endFlush(oracle.mds.core.MDSSession mdsSess)
          Deprecated. relaced by endFlushCurrentMDSSess()
static void endFlushCurrentMDSSess()
           
static void finalFlushChanges(oracle.mds.core.MDSSession mdsSess)
           
static void flushChanges(oracle.mds.core.MDSSession mdsSess)
           
 void flushMDSSessionChanges()
          Flushes the current MDSSession for the current ADFContext.
static oracle.mds.core.MDSSession getCurrentMDSSession()
           
static MDSTransResetListener getListener(java.lang.String className)
           
 MDSTransResetListener getListenerInst(java.lang.String className)
           
static MDSLockedSessionManager getMDSLockedSessionManager()
           
static MDSTransManager getMDSTransManagerForSession()
          Deprecated. 
protected  java.lang.Object getSessionLock()
           
 boolean getSingleFlushFlag()
          Deprecated. 
static boolean getSingleFlushFlagGlobal()
          Deprecated. 
static boolean isFinalFlush(oracle.mds.core.MDSSession mdsSess)
          Deprecated. relaced by isFinalFlushCurrentMDSSess()
static boolean isFinalFlushCurrentMDSSess()
           
protected  boolean isLockedMDSSession()
           
static boolean isLockedSessionManagerRegistered()
           
static boolean isMDSNoCustEnabled(oracle.mds.core.MDSSession mdsSess)
           
 boolean isMDSRefreshNeeded()
          Tells whether or not there are pending changes on the current MDS Session for the current ADFContext
static boolean isMDSRefreshNeeded(oracle.mds.core.MDSSession mdsSess)
           
 boolean isMDSSessionLocked()
           
static boolean isRightIsolationLevel(oracle.mds.core.MDSSession mdsSess)
           
static boolean isSingleFlush()
           
static void popAndMakeCurrent()
           
static void pushAndResetContext()
           
static MDSLockedSessionManager registerMDSLockedSessionManager()
           
static MDSLockedSessionManager registerMDSLockedSessionManager(MDSLockedSessionManager sessMgrs)
           
 void removeListenerInst(java.lang.String listenerClassName)
           
static void reset()
           
 void resetMDSSession()
          Resets the current MDSSession for the current ADFContext.
static void setException(java.lang.Exception rte)
           
protected  void setSessionLock(java.lang.Object sessLock)
           
 void setSingleFlushFlag(boolean flag)
          Deprecated. 
static void setSingleFlushFlagGlobal(boolean flag)
          Deprecated. 
protected static void storeMDSTransManager(MDSTransManager mdtm)
           
 void useLockedMDSSession()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_LOG

public static final ADFLogger _LOG

_EXCELOG

public static final ADFLogger _EXCELOG
Constructor Detail

MDSTransManager

public MDSTransManager()
Method Detail

registerMDSLockedSessionManager

public static MDSLockedSessionManager registerMDSLockedSessionManager()
                                                               throws java.lang.Exception
Throws:
java.lang.Exception

registerMDSLockedSessionManager

public static MDSLockedSessionManager registerMDSLockedSessionManager(MDSLockedSessionManager sessMgrs)
                                                               throws java.lang.Exception
Throws:
java.lang.Exception

getMDSLockedSessionManager

public static MDSLockedSessionManager getMDSLockedSessionManager()

isLockedSessionManagerRegistered

public static boolean isLockedSessionManagerRegistered()

isMDSRefreshNeeded

public boolean isMDSRefreshNeeded()
Description copied from interface: MDSLockedSessionOperations
Tells whether or not there are pending changes on the current MDS Session for the current ADFContext

Specified by:
isMDSRefreshNeeded in interface MDSLockedSessionOperations
Returns:
true if there are pending changes, false otherwise

flushMDSSessionChanges

public void flushMDSSessionChanges()
                            throws java.lang.Exception
Description copied from interface: MDSLockedSessionOperations
Flushes the current MDSSession for the current ADFContext.

Specified by:
flushMDSSessionChanges in interface MDSLockedSessionOperations
Throws:
java.lang.Exception - if the operation fails
See Also:
MDSSession.flushChanges()

resetMDSSession

public void resetMDSSession()
Description copied from interface: MDSLockedSessionOperations
Resets the current MDSSession for the current ADFContext.

Specified by:
resetMDSSession in interface MDSLockedSessionOperations
See Also:
MDSSession.reset()

cancelMDSSessionChanges

public void cancelMDSSessionChanges()
Description copied from interface: MDSLockedSessionOperations
Cancels the current MDSSession for the current ADFContext.

Specified by:
cancelMDSSessionChanges in interface MDSLockedSessionOperations
See Also:
MDSSession.cancelChanges()

useLockedMDSSession

public void useLockedMDSSession()

isMDSSessionLocked

public boolean isMDSSessionLocked()

isLockedMDSSession

protected boolean isLockedMDSSession()

setSessionLock

protected void setSessionLock(java.lang.Object sessLock)

getSessionLock

protected java.lang.Object getSessionLock()

isFinalFlush

public static boolean isFinalFlush(oracle.mds.core.MDSSession mdsSess)
Deprecated. relaced by isFinalFlushCurrentMDSSess()

Parameters:
mdsSess - it is ignored. Always works in the context of current mds sesssion.
Returns:
true or false depending on whether this is the final flush call

getSingleFlushFlag

@Deprecated
public boolean getSingleFlushFlag()
Deprecated. 

Returns the fingleFlush flag value on the MDSTransManager instance.

Returns:
singleflush flag value from MDSTransManager instance
See Also:
setSingleFlushGlobal(boolean)

getSingleFlushFlagGlobal

@Deprecated
public static boolean getSingleFlushFlagGlobal()
Deprecated. 

Returns the global i.e. jvm wide fingleFlush flag value.

Returns:
global singleflush flag value
See Also:
setSingleFlushGlobal(boolean)

setSingleFlushFlag

@Deprecated
public void setSingleFlushFlag(boolean flag)
Deprecated. 

This method is a No-OP. Keeping the API for backward compatibility. Sets the fingleFlush flag on the MDSTransManager instance. This can be used to enable or disable singleflush functionality for the given request. This flags works in conjunction with the jvm wide singleflush flag which can be set using setSingleFlushGlobal(boolean) method. SingleFlush will be enabled if either or the two flags are set to true, disabled otherwise. Note that this API will have no effect when singleflush is enabled by default.

Parameters:
flag - singleflush flag value
See Also:
setSingleFlushGlobal(boolean)

setSingleFlushFlagGlobal

@Deprecated
public static void setSingleFlushFlagGlobal(boolean flag)
Deprecated. 

This method is a No-OP. Keeping the API for backward compatibility. Sets the global flag i.e. jvm wide singleFlush flag. This can be used to enable or disable singleflush jvm wide functionality. This flags works in conjunction with the MDSTransManager instance level singleflush flag which can be set using setSingleFlush(boolean) method. SingleFlush will be enabled if either or the two flags are set to true, disabled otherwise. Note that this API will have no effect when singleflush is enabled by default.

Parameters:
flag - singleflush flag value
See Also:
setSingleFlushGlobal(boolean)

isFinalFlushCurrentMDSSess

public static boolean isFinalFlushCurrentMDSSess()

beginFlush

public static void beginFlush(oracle.mds.core.MDSSession mdsSess)
Deprecated. relaced by beginFlushCurrentMDSSess()

Parameters:
mdsSess - it is ignored. Always works in the context of current mds sesssion.

beginFlushCurrentMDSSess

public static void beginFlushCurrentMDSSess()

getCurrentMDSSession

public static oracle.mds.core.MDSSession getCurrentMDSSession()

isRightIsolationLevel

public static boolean isRightIsolationLevel(oracle.mds.core.MDSSession mdsSess)

isMDSNoCustEnabled

public static boolean isMDSNoCustEnabled(oracle.mds.core.MDSSession mdsSess)

endFlush

public static void endFlush(oracle.mds.core.MDSSession mdsSess)
                     throws java.lang.Exception
Deprecated. relaced by endFlushCurrentMDSSess()

Parameters:
mdsSess - it is ignored. Always works in the context of current mds sesssion.
Throws:
java.lang.Exception

endFlushCurrentMDSSess

public static void endFlushCurrentMDSSess()
                                   throws java.lang.Exception
Throws:
java.lang.Exception

reset

public static void reset()

flushChanges

public static void flushChanges(oracle.mds.core.MDSSession mdsSess)
                         throws java.lang.Exception
Throws:
java.lang.Exception

finalFlushChanges

public static void finalFlushChanges(oracle.mds.core.MDSSession mdsSess)
                              throws java.lang.Exception
Throws:
java.lang.Exception

isMDSRefreshNeeded

public static boolean isMDSRefreshNeeded(oracle.mds.core.MDSSession mdsSess)

getMDSTransManagerForSession

@Deprecated
public static MDSTransManager getMDSTransManagerForSession()
Deprecated. 

Returns:
MDSTransManager instance
For internal use only. Application developers should not use this
For internal use only

pushAndResetContext

public static void pushAndResetContext()
                                throws java.lang.Exception
Throws:
java.lang.Exception

popAndMakeCurrent

public static void popAndMakeCurrent()
                              throws java.lang.Exception
Throws:
java.lang.Exception

storeMDSTransManager

protected static void storeMDSTransManager(MDSTransManager mdtm)
                                    throws java.lang.Exception
Throws:
java.lang.Exception

removeListenerInst

public void removeListenerInst(java.lang.String listenerClassName)

addListenerInst

public void addListenerInst(MDSTransResetListener col)

addListener

public static void addListener(MDSTransResetListener col)

getListener

public static MDSTransResetListener getListener(java.lang.String className)

getListenerInst

public MDSTransResetListener getListenerInst(java.lang.String className)

isSingleFlush

public static boolean isSingleFlush()

setException

public static void setException(java.lang.Exception rte)

Oracle Fusion Middleware Java API Reference for Oracle ADF Share
11g Release 1 (11.1.1.7.0)

E10686-08

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