org.jboss.cache.pojo.impl
Class PojoCacheDelegate

java.lang.Object
  extended by org.jboss.cache.pojo.impl.PojoCacheDelegate

public class PojoCacheDelegate
extends java.lang.Object

Delegate class for PojoCache, the real implementation code happens here.

Author:
Ben Wang

Constructor Summary
PojoCacheDelegate(PojoCacheImpl cache)
           
 
Method Summary
 boolean exists(org.jboss.cache.Fqn<?> id)
           
 java.util.Map findObjects(org.jboss.cache.Fqn fqn)
           
 org.jboss.cache.Fqn<?> getInternalFqn(java.lang.Object object)
           
 java.lang.Object getObject(org.jboss.cache.Fqn fqn, java.lang.String field, java.lang.Object source)
           
 java.util.Collection<Reference> getReferences(java.lang.Object object)
           
 java.lang.Object putObject(org.jboss.cache.Fqn fqn, java.lang.Object obj, java.lang.String field, java.lang.Object source)
          Note that caller of this method will take care of synchronization within the fqn sub-tree.
 java.lang.Object removeObject(org.jboss.cache.Fqn fqn, java.lang.String field, java.lang.Object source)
          Note that caller of this method will take care of synchronization within the fqn sub-tree.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PojoCacheDelegate

public PojoCacheDelegate(PojoCacheImpl cache)
Method Detail

getObject

public java.lang.Object getObject(org.jboss.cache.Fqn fqn,
                                  java.lang.String field,
                                  java.lang.Object source)
                           throws org.jboss.cache.CacheException
Throws:
org.jboss.cache.CacheException

putObject

public java.lang.Object putObject(org.jboss.cache.Fqn fqn,
                                  java.lang.Object obj,
                                  java.lang.String field,
                                  java.lang.Object source)
                           throws org.jboss.cache.CacheException
Note that caller of this method will take care of synchronization within the fqn sub-tree.

Throws:
org.jboss.cache.CacheException

removeObject

public java.lang.Object removeObject(org.jboss.cache.Fqn fqn,
                                     java.lang.String field,
                                     java.lang.Object source)
                              throws org.jboss.cache.CacheException
Note that caller of this method will take care of synchronization within the fqn sub-tree.

Parameters:
fqn -
Returns:
detached object
Throws:
org.jboss.cache.CacheException

findObjects

public java.util.Map findObjects(org.jboss.cache.Fqn fqn)
                          throws org.jboss.cache.CacheException
Throws:
org.jboss.cache.CacheException

exists

public boolean exists(org.jboss.cache.Fqn<?> id)

getInternalFqn

public org.jboss.cache.Fqn<?> getInternalFqn(java.lang.Object object)

getReferences

public java.util.Collection<Reference> getReferences(java.lang.Object object)


Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.