Business Components

oracle.jbo.server
Class EntityCache

java.lang.Object
  |
  +--oracle.jbo.server.EntityCache

public class EntityCache
extends java.lang.Object

The EntityCache caches queried rows for a particular EntityImpl.

Version:
SDK

Constructor Summary
EntityCache()
          Constructor.
 
Method Summary
TypeMethod
protected  void deliverEntityEvent(EntityEvent event)
          Notify EntityListeners of a EntityImpl properties or state has changed.
protected  void init(DBTransactionImpl trans, EntityDefImpl entityDef)
           
protected  void replace(EntityImpl srow, Key okey)
          Remove a row in cache and add it in using the new key values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityCache

public EntityCache()
Constructor.
Method Detail

init

protected void init(DBTransactionImpl trans,
                    EntityDefImpl entityDef)

deliverEntityEvent

protected void deliverEntityEvent(EntityEvent event)
Notify EntityListeners of a EntityImpl properties or state has changed.
Parameters:
sRow - The EntityImpl on which event has occurred.
eventType - The type of event.

replace

protected final void replace(EntityImpl srow,
                             Key okey)
Remove a row in cache and add it in using the new key values. This is used when the key values changed by the user or from RETURNING clause on INSERT or UPDATE.
Parameters:
srow - the row to be replaced.
okey - the original key.

Business Components