persistence.cache
Interface Cache

All Known Implementing Classes:
SimpleCache

public interface Cache

Omschrijft gedrag van (simpele) cache.

Author:
bram 4-mrt-2004

Method Summary
 boolean checkForDeepOID(ObjectID OID)
          Is deep object met OID al gecached?
 boolean checkForShallowOID(ObjectID OID)
          Is shallow object met OID al gecached?
 java.lang.Object readDeep(ObjectID OID)
          Read deep object with OID.
 java.lang.Object readShallow(ObjectID OID)
          Read shallow object with OID.
 void remove(ObjectID OID)
          Remove object with OID.
 java.lang.String toString()
          Shows contents cache.
 void writeDeepToCache(ObjectID OID, java.lang.Object ob)
          Write deep object with OID.
 void writeShallowToCache(ObjectID OID, java.lang.Object ob)
          Write shallow object with OID.
 

Method Detail

readDeep

public java.lang.Object readDeep(ObjectID OID)
                          throws NotInCacheException
Read deep object with OID.

Parameters:
OID -
Returns:
Throws:
CacheException
NotInCacheException

readShallow

public java.lang.Object readShallow(ObjectID OID)
                             throws NotInCacheException
Read shallow object with OID.

Parameters:
OID -
Returns:
Throws:
CacheException
NotInCacheException

writeDeepToCache

public void writeDeepToCache(ObjectID OID,
                             java.lang.Object ob)
                      throws AlreadyInCacheException
Write deep object with OID.

Parameters:
ob -
Throws:
CacheException
AlreadyInCacheException

writeShallowToCache

public void writeShallowToCache(ObjectID OID,
                                java.lang.Object ob)
                         throws AlreadyInCacheException
Write shallow object with OID.

Parameters:
ob -
Throws:
CacheException
AlreadyInCacheException

remove

public void remove(ObjectID OID)
Remove object with OID.

Parameters:
OID -

checkForDeepOID

public boolean checkForDeepOID(ObjectID OID)
Is deep object met OID al gecached?

Parameters:
OID -
Returns:

checkForShallowOID

public boolean checkForShallowOID(ObjectID OID)
Is shallow object met OID al gecached?

Parameters:
OID -
Returns:

toString

public java.lang.String toString()
Shows contents cache.

Returns: