Oracle Application Development Framework Model and Business Components Java API Reference 10g Release 3 (10.1.3)
B16005-01


oracle.jbo.mom
Class DefinitionContextAgeable

java.lang.Object
  extended byoracle.jbo.mom.DefinitionContext
      extended byoracle.jbo.mom.DefinitionContextStandard
          extended byoracle.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).


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.

 

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

 

Method Detail

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 Application Development Framework Model and Business Components Java API Reference 10g Release 3 (10.1.3)
B16005-01


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