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

E10653-08

oracle.jbo.mom
Class DefinitionContextAgeable

java.lang.Object
  extended by oracle.jbo.mom.DefinitionContext
      extended by oracle.jbo.mom.DefinitionContextStandard
          extended by oracle.jbo.mom.DefinitionContextAgeable
All Implemented Interfaces:
DefinitionMgrListener

public class DefinitionContextAgeable
extends DefinitionContextStandard
implements DefinitionMgrListener

This class provides an implementation of the abstract DefinitionContext class in which the MOM cache supports ageing.

In this class (as in its superclass), no state is shared between the MOM cache and MOM parser functionality, and the latter is delegated to a MOMParser provided to the constructor. (The client can choose MDS vs non-MDS versions of the MOMParser).


Field Summary
static java.lang.String USE_OPER_FIND
           
static java.lang.String USE_OPER_INSERT
           
static java.lang.String USE_OPER_UNRETIRE
           
 
Fields inherited from class oracle.jbo.mom.DefinitionContextStandard
mDefObjCount
 
Method Summary
 void dumpDefObjInfo(DefinitionManager manager, int index, java.lang.Object key, DefinitionObjectInfo defObjInfo, boolean forUseChain, java.io.PrintWriter out)
           
 void objectUseUpdated(DefinitionManager manager, DefinitionContext defCtx, java.lang.String oper, DefinitionObjectInfo defObjInfo)
           
 void retireLeastRecentlyUsed(int numToRetire)
          Retires the specified number of least recently used non-retired ageable metaobjects in the MOM cache.
 boolean setDefCachePolicy(int numStronglyHeldUpperLimit, boolean manageLRU, boolean unretireRecentlyUsed, boolean useSoftRef)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

USE_OPER_INSERT

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

USE_OPER_FIND

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

USE_OPER_UNRETIRE

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

setDefCachePolicy

public boolean setDefCachePolicy(int numStronglyHeldUpperLimit,
                                 boolean manageLRU,
                                 boolean unretireRecentlyUsed,
                                 boolean useSoftRef)

retireLeastRecentlyUsed

public void retireLeastRecentlyUsed(int numToRetire)
Description copied from class: DefinitionContext
Retires the specified number of least recently used non-retired ageable metaobjects in the MOM cache. If the MOM cache contains fewer non-retired ageable metaobjects than the specified number, then all ageable metaobjects will be retired. This method is a no-op in a subclass which does not support ageing.

Overrides:
retireLeastRecentlyUsed in class DefinitionContext

objectUseUpdated

public void objectUseUpdated(DefinitionManager manager,
                             DefinitionContext defCtx,
                             java.lang.String oper,
                             DefinitionObjectInfo defObjInfo)
Specified by:
objectUseUpdated in interface DefinitionMgrListener

dumpDefObjInfo

public void dumpDefObjInfo(DefinitionManager manager,
                           int index,
                           java.lang.Object key,
                           DefinitionObjectInfo defObjInfo,
                           boolean forUseChain,
                           java.io.PrintWriter out)
Specified by:
dumpDefObjInfo in interface DefinitionMgrListener

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

E10653-08

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