1 package org.apache.ojb.broker.cache; 2 3 17 18 import org.apache.commons.lang.builder.ToStringBuilder; 19 import org.apache.commons.lang.builder.ToStringStyle; 20 import org.apache.ojb.broker.Identity; 21 import org.apache.ojb.broker.PersistenceBroker; 22 23 import java.util.Properties ; 24 25 54 public class ObjectCacheEmptyImpl implements ObjectCache 55 { 56 57 public ObjectCacheEmptyImpl(PersistenceBroker broker, Properties prop) 58 { 59 60 } 61 62 65 public void cache(Identity oid, Object obj) 66 { 67 } 69 70 73 public Object lookup(Identity oid) 74 { 75 return null; 76 } 77 78 81 public void remove(Identity oid) 82 { 83 } 85 86 89 public void clear() 90 { 91 } 93 94 public String toString() 95 { 96 ToStringBuilder buf = new ToStringBuilder(this, ToStringStyle.DEFAULT_STYLE); 97 return buf.toString(); 98 } 99 } 100 101 | Popular Tags |