gran.cache
Class UserCacheManager

java.lang.Object
  extended bygran.cache.UserCacheManager
All Implemented Interfaces:
NotificationReceiver

public class UserCacheManager
extends java.lang.Object
implements NotificationReceiver


Field Summary
static java.lang.String invalidateUser
           
static java.lang.String invalidateUserAndParents
           
static java.lang.String invalidateUserUDF
           
static java.lang.String invalidateUserUDFValue
           
static java.lang.String invalidateUserUDFWhenChange
           
static java.lang.String invalidateUserWhenRemoveScript
           
 
Method Summary
 UserCacheItem find(java.lang.String id)
           
static UserCacheManager getInstance()
           
 UserCacheItem getItem(java.lang.String id, boolean fromCache)
           
 void invalidate()
           
 void invalidateUDF()
           
 void invalidateUDF(java.lang.String id)
           
 void invalidateUDFValue(java.lang.String id)
           
 void invalidateUDFValues()
           
 void invalidateUDFWhenChange(java.lang.String user)
           
 void invalidateUser(java.lang.String userId)
           
 void invalidateUserAndParents(java.lang.String userId)
           
 void invalidateWhenRemoveScript()
           
 UserCacheItem loadItem(java.lang.String id)
          Creates a BookVObj based on the id of the BOOK table.
 void receive(CacheNotification nf)
           
 void storeItem(UserCacheItem vObj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

invalidateUserUDF

public static final java.lang.String invalidateUserUDF
See Also:
Constant Field Values

invalidateUser

public static final java.lang.String invalidateUser
See Also:
Constant Field Values

invalidateUserAndParents

public static final java.lang.String invalidateUserAndParents
See Also:
Constant Field Values

invalidateUserUDFValue

public static final java.lang.String invalidateUserUDFValue
See Also:
Constant Field Values

invalidateUserWhenRemoveScript

public static final java.lang.String invalidateUserWhenRemoveScript
See Also:
Constant Field Values

invalidateUserUDFWhenChange

public static final java.lang.String invalidateUserUDFWhenChange
See Also:
Constant Field Values
Method Detail

getInstance

public static UserCacheManager getInstance()
                                    throws GranException
Throws:
GranException

getItem

public UserCacheItem getItem(java.lang.String id,
                             boolean fromCache)
                      throws GranException
Throws:
GranException

loadItem

public UserCacheItem loadItem(java.lang.String id)
                       throws GranException
Creates a BookVObj based on the id of the BOOK table. Data access could be direct JDBC, some or mapping tool, or an EJB.

Throws:
GranException

storeItem

public void storeItem(UserCacheItem vObj)
               throws GranException
Throws:
GranException

find

public UserCacheItem find(java.lang.String id)
                   throws GranException
Throws:
GranException

invalidate

public void invalidate()
                throws GranException
Throws:
GranException

invalidateUser

public void invalidateUser(java.lang.String userId)
                    throws GranException
Throws:
GranException

invalidateUserAndParents

public void invalidateUserAndParents(java.lang.String userId)
                              throws GranException
Throws:
GranException

invalidateUDF

public void invalidateUDF()
                   throws GranException
Throws:
GranException

invalidateUDFValues

public void invalidateUDFValues()
                         throws GranException
Throws:
GranException

invalidateUDF

public void invalidateUDF(java.lang.String id)
                   throws GranException
Throws:
GranException

invalidateUDFValue

public void invalidateUDFValue(java.lang.String id)
                        throws GranException
Throws:
GranException

invalidateWhenRemoveScript

public void invalidateWhenRemoveScript()
                                throws GranException
Throws:
GranException

invalidateUDFWhenChange

public void invalidateUDFWhenChange(java.lang.String user)
                             throws GranException
Throws:
GranException

receive

public void receive(CacheNotification nf)
             throws GranException
Specified by:
receive in interface NotificationReceiver
Throws:
GranException


Copyright © 2002-2004 TrackStudio, Ltd. All Rights Reserved.