org.scrashmeow.ojb.console.framework
Class UserObjectCache

java.lang.Object
  |
  +--org.scrashmeow.ojb.console.framework.UserObjectCache
All Implemented Interfaces:
java.io.Serializable

public class UserObjectCache
extends java.lang.Object
implements java.io.Serializable

Author:
Alexander Bibighaus
See Also:
Serialized Form

Constructor Summary
UserObjectCache()
          Constructor for UserObjectCache.
 
Method Summary
 java.lang.String cache(java.lang.Object obj)
          Method cache @add-javadoc!!!
 void cache(java.lang.String oid, java.lang.Object obj)
          makes object obj persistent to the Objectcache under the key oid.
 void clear()
          clear the ObjectCache.
 java.util.Iterator keys()
          Method keys @add-javadoc!!!
 java.lang.Object lookup(java.lang.String oid)
          Lookup object with Identity oid in objectTable.
 void remove(java.lang.String oid)
          removes an Object from the cache.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserObjectCache

public UserObjectCache()
Constructor for UserObjectCache.

Method Detail

keys

public java.util.Iterator keys()
Method keys @add-javadoc!!!

Returns:
@add-javadoc!!!

cache

public java.lang.String cache(java.lang.Object obj)
Method cache @add-javadoc!!!

Parameters:
obj - @add-javadoc!!!
Returns:
@add-javadoc!!!

cache

public void cache(java.lang.String oid,
                  java.lang.Object obj)
makes object obj persistent to the Objectcache under the key oid.

Parameters:
oid - @add-javadoc!!!
obj - @add-javadoc!!!

lookup

public java.lang.Object lookup(java.lang.String oid)
Lookup object with Identity oid in objectTable. returns null if no matching id is found

Parameters:
oid - @add-javadoc!!!
Returns:
@add-javadoc!!!

remove

public void remove(java.lang.String oid)
removes an Object from the cache.

Parameters:
oid - @add-javadoc!!!

clear

public void clear()
clear the ObjectCache.



Copyright © 2003 Alexander Bibighaus et al. All Rights Reserved.