net.sf.jso.schema
Class JSOSchemaCache

java.lang.Object
  extended bynet.sf.jso.schema.JSOSchemaCache
All Implemented Interfaces:
SchemaCache
Direct Known Subclasses:
JSOSchemaProxy

public class JSOSchemaCache
extends java.lang.Object
implements SchemaCache

Cache used to keep in memory storable classes from JSO schema.


Constructor Summary
JSOSchemaCache()
           
 
Method Summary
 java.lang.Object get(java.lang.Class aClass)
          Returns a class' corresponding schema cached data.
 void invalidade(java.lang.Class aClass)
          Invalidates cached data of a storable class in cache.
 void put(java.lang.Class aClass, java.lang.Object data)
          Puts a storable class in cache.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSOSchemaCache

public JSOSchemaCache()
Method Detail

put

public void put(java.lang.Class aClass,
                java.lang.Object data)
Puts a storable class in cache.

Specified by:
put in interface SchemaCache
Parameters:
aClass - Storable class to be put in cache.
data - Cached data. May be a StorableClass or ClassDescriptor object.

get

public java.lang.Object get(java.lang.Class aClass)
Returns a class' corresponding schema cached data.

Specified by:
get in interface SchemaCache
Parameters:
aClass - The class to which the corresponding cached data should be returned.
Returns:
The class' corresponding schema cached data or null if there is no data cached.

invalidade

public void invalidade(java.lang.Class aClass)
Invalidates cached data of a storable class in cache.

Specified by:
invalidade in interface SchemaCache
Parameters:
aClass - The class to which the corresponding schema cached data should be invalidated.