fullRuntime/src/sc/db/DBTypeDescriptor.java
void recacheDBObject(DBObject obj) {
      if (baseType != null) {
         baseType.recacheDBObject(obj);
         return;
      }

      synchronized (this) {
         Object dbId = obj.getDBId();
         IDBObject newInst = typeInstances.get(dbId);
         if (newInst != null) {
            obj.replacedBy = newInst;
         }
         else {
            typeInstances.put(dbId, obj.wrapper);
         }
      }
   }
/**
    * For when an object expired in the cache, but there was still a reference to it - put it back in the cache unless
    * it's already been replaced. If it has been replaced, all methods will be redirected to the replaced version.
    */
For when an object expired in the cache, but there was still a reference to it - put it back in the cache unless
it's already been replaced. If it has been replaced, all methods will be redirected to the replaced version.
For when an object expired in the cache but there was still a reference to it - put it back in the cache unless it ' s already been replaced . If it has been replaced all methods will be redirected to the replaced version .
void recacheDBObject(DBObject obj) {
      if (baseType != null) {
         baseType.recacheDBObject(obj);
         return;
      }
      synchronized (this) {
         Object dbId = obj.getDBId();
         IDBObject newInst = typeInstances.get(dbId);
         if (newInst != null) {
            obj.replacedBy = newInst;
         }
         else {
            typeInstances.put(dbId, obj.wrapper);
         }
      }
   }
void recacheDBObject ( DBObject obj ) { if ( baseType != null ) { baseType . recacheDBObject ( obj ) ; return ; } synchronized ( this ) { Object dbId = obj . getDBId ( ) ; IDBObject newInst = typeInstances . get ( dbId ) ; if ( newInst != null ) { obj . replacedBy = newInst ; } else { typeInstances . put ( dbId , obj . wrapper ) ; } } }
For when an object expired in the cache, but there was still a reference to it - put it back in the cache unless
 it's already been replaced.
For when an object expired in the cache but there was still a reference to it - put it back in the cache unless it ' s already been replaced .