org.apache.chemistry.opencmis.client.bindings.impl
Class TypeDefinitionCache

java.lang.Object
  extended by org.apache.chemistry.opencmis.client.bindings.impl.TypeDefinitionCache
All Implemented Interfaces:
Serializable

public class TypeDefinitionCache
extends Object
implements Serializable

A cache for type definition objects.

See Also:
Serialized Form

Constructor Summary
TypeDefinitionCache(BindingSession session)
          Constructor.
 
Method Summary
 TypeDefinition get(String repositoryId, String typeId)
          Retrieves a type definition object from the cache.
 void put(String repositoryId, TypeDefinition typeDefinition)
          Adds a type definition object to the cache.
 void remove(String repositoryId)
          Removes all type definition objects of a repository from the cache.
 void remove(String repositoryId, String typeId)
          Removes a type definition object from the cache.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TypeDefinitionCache

public TypeDefinitionCache(BindingSession session)
Constructor.

Parameters:
session - the session object
Method Detail

put

public void put(String repositoryId,
                TypeDefinition typeDefinition)
Adds a type definition object to the cache.

Parameters:
repositoryId - the repository id
typeDefinition - the type definition object

get

public TypeDefinition get(String repositoryId,
                          String typeId)
Retrieves a type definition object from the cache.

Parameters:
repositoryId - the repository id
typeId - the type id
Returns:
the type definition object or null if the object is not in the cache

remove

public void remove(String repositoryId,
                   String typeId)
Removes a type definition object from the cache.

Parameters:
repositoryId - the repository id
typeId - the type id

remove

public void remove(String repositoryId)
Removes all type definition objects of a repository from the cache.

Parameters:
repositoryId - the repository id

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.