| |
|
| java.lang.Object org.objectweb.speedo.usercache.lib.UserCacheImpl
UserCacheImpl | public class UserCacheImpl implements UserCache(Code) | | Is a basic UserCacheView implementation using WeakReference in order to
not disturb the real cache of persistent object.
author: S.Chassande-Barrioz |
Constructor Summary | |
public | UserCacheImpl() Allocates an user cache with the default size. | public | UserCacheImpl(int size) Allocates an user cache with a particular size. |
DEFAULT_SIZE | final public static int DEFAULT_SIZE(Code) | | |
active | protected boolean active(Code) | | Indicates if the user cache is active
|
fields | protected String[] fields(Code) | | is the list of field name used for the cache index
|
id | protected int id(Code) | | The identifier of the user cache (light weight pattern)
|
key2oid | protected Map key2oid(Code) | | Contains the association user key TO object identifier
|
oid2key | protected Map oid2key(Code) | | Contains the association object identifier TO user key
|
UserCacheImpl | public UserCacheImpl(int size)(Code) | | Allocates an user cache with a particular size. The size is not a maximal
size, but serves only for the underlying underlying hash structure.
Parameters: size - is the size of the cache. |
getIndexFieldNames | public String[] getIndexFieldNames()(Code) | | |
isActive | public boolean isActive()(Code) | | |
setActive | public void setActive(boolean a)(Code) | | |
setId | public void setId(int _id)(Code) | | |
setIndexFieldNames | public void setIndexFieldNames(String[] fns)(Code) | | |
|
|
|