Package org.jboss.cache.pojo

Examples of org.jboss.cache.pojo.PojoCacheException


      return delegate_.removeObject(id, field);
   }

   public String getPojoID(Object pojo)
   {
      throw new PojoCacheException("getPojoID not yet implemented");
   }
View Full Code Here


      {
         return getObject(id);
      }
      catch (CacheException e)
      {
         throw new PojoCacheException("find " + id + " failed ", e);
      }
   }
View Full Code Here

      {
         return delegate_.findObjects(id);
      }
      catch (CacheException e)
      {
         throw new PojoCacheException("findAll " + id + " failed", e);
      }
   }
View Full Code Here

      {
         cache.create();
      }
      catch (Exception e)
      {
         throw new PojoCacheException("PojoCache create exception", e);
      }

      hasCreate_ = true;
   }
View Full Code Here

         log_.info("PojoCache version: " + getVersion());
         cache.start();
      }
      catch (Exception e)
      {
         throw new PojoCacheException("Failed starting " + e, e);
      }
   }
View Full Code Here

      Cache<Object, Object> cache = getCache(invocation);
//      Object owner = cache.getLockOwner();
      Object owner = null;
      if (!lockPojo(owner, id, cache))
      {
         throw new PojoCacheException("PojoCache.removeObject(): Can't obtain the pojo lock under id: " + id);
      }
   }
View Full Code Here

         for (Method method : methods)
            method.invoke(entry.listener, notification);
      }
      catch (Exception e)
      {
         throw new PojoCacheException(e);
      }
   }
View Full Code Here

                                           Object thisObject, Set objSet)
           throws CacheException
   {
      // Currently we don't support recursive Collection
      if (!(originalObject instanceof Advised))
         throw new PojoCacheException("ObjectUtil.isReachable(): originalObject is not Advised.");

      if (log.isTraceEnabled())
      {
         log.trace("isReachable(): current object: " + originalObject + " this object: " + thisObject);
      }
View Full Code Here

               catch (Exception e2)
               {
                  log.error("setRollbackOnly", e2);
               }

               throw new PojoCacheException("PojoCache operation will be rollback. id: " + id
                                            + ". Operation: " + invocation.getMethod().getName(), e);
            }
         }
         else
         {
View Full Code Here

   public void undoDetachInterceptor(InstanceAdvisor advisor, Interceptor interceptor)
   {
      Object pojo = ((CacheFieldInterceptor) interceptor).getAopInstance().get();
      if (pojo == null)
      {
         throw new PojoCacheException("PojoUtil.detachInterceptor(): null pojo");
      }

      _attachInterceptor(pojo, advisor, interceptor);
   }
View Full Code Here

TOP

Related Classes of org.jboss.cache.pojo.PojoCacheException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.