org.kuali.rice.kns.util
Class KualiObjectCachePerBrokerImpl

java.lang.Object
  extended by org.apache.ojb.broker.cache.ObjectCachePerBrokerImpl
      extended by org.kuali.rice.kns.util.KualiObjectCachePerBrokerImpl
All Implemented Interfaces:
org.apache.ojb.broker.cache.ObjectCache, org.apache.ojb.broker.PBListener, org.apache.ojb.broker.PBStateListener

public class KualiObjectCachePerBrokerImpl
extends org.apache.ojb.broker.cache.ObjectCachePerBrokerImpl


Field Summary
private  String brokerId
           
private static org.apache.log4j.Logger LOG
           
 
Fields inherited from class org.apache.ojb.broker.cache.ObjectCachePerBrokerImpl
objectTable
 
Constructor Summary
KualiObjectCachePerBrokerImpl(org.apache.ojb.broker.PersistenceBroker broker, Properties prop)
           
 
Method Summary
 void cache(org.apache.ojb.broker.Identity oid, Object obj)
           
 boolean cacheIfNew(org.apache.ojb.broker.Identity oid, Object obj)
           
 void clear()
          Clear ObjectCache.
 Object lookup(org.apache.ojb.broker.Identity oid)
           
 
Methods inherited from class org.apache.ojb.broker.cache.ObjectCachePerBrokerImpl
afterBegin, afterCommit, afterOpen, afterRollback, beforeBegin, beforeClose, beforeCommit, beforeRollback, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

private static final org.apache.log4j.Logger LOG

brokerId

private final String brokerId
Constructor Detail

KualiObjectCachePerBrokerImpl

public KualiObjectCachePerBrokerImpl(org.apache.ojb.broker.PersistenceBroker broker,
                                     Properties prop)
Method Detail

clear

public void clear()
Clear ObjectCache. I.e. remove all entries for classes and objects.

Specified by:
clear in interface org.apache.ojb.broker.cache.ObjectCache
Overrides:
clear in class org.apache.ojb.broker.cache.ObjectCachePerBrokerImpl

cache

public void cache(org.apache.ojb.broker.Identity oid,
                  Object obj)
Specified by:
cache in interface org.apache.ojb.broker.cache.ObjectCache
Overrides:
cache in class org.apache.ojb.broker.cache.ObjectCachePerBrokerImpl
See Also:
ObjectCachePerBrokerImpl.cache(org.apache.ojb.broker.Identity, java.lang.Object)

cacheIfNew

public boolean cacheIfNew(org.apache.ojb.broker.Identity oid,
                          Object obj)
Overrides:
cacheIfNew in class org.apache.ojb.broker.cache.ObjectCachePerBrokerImpl
See Also:
ObjectCachePerBrokerImpl.cacheIfNew(org.apache.ojb.broker.Identity, java.lang.Object)

lookup

public Object lookup(org.apache.ojb.broker.Identity oid)
Specified by:
lookup in interface org.apache.ojb.broker.cache.ObjectCache
Overrides:
lookup in class org.apache.ojb.broker.cache.ObjectCachePerBrokerImpl
See Also:
ObjectCachePerBrokerImpl.lookup(org.apache.ojb.broker.Identity)


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.