org.alfresco.repo.avm
Class TransactionalLookupCache

java.lang.Object
  extended by org.alfresco.repo.avm.TransactionalLookupCache
All Implemented Interfaces:
LookupCache, org.springframework.beans.factory.InitializingBean

Deprecated.

public class TransactionalLookupCache
extends java.lang.Object
implements LookupCache, org.springframework.beans.factory.InitializingBean

A Transactional? implementation of AVM path lookup cache


Constructor Summary
TransactionalLookupCache()
          Deprecated. Make one up.
 
Method Summary
 void afterPropertiesSet()
          Deprecated.  
 org.alfresco.repo.avm.Lookup lookup(AVMStore store, int version, SimplePath path, boolean write, boolean includeDeleted)
          Deprecated. Lookup a path.
 void onDelete(java.lang.String storeName)
          Deprecated. Called when a delete has occurred in a store.
 void onSnapshot(java.lang.String storeName)
          Deprecated. Called when a snapshot occurs in a store.
 void onWrite(java.lang.String storeName)
          Deprecated. Called when a simple write operation occurs.
 void reset()
          Deprecated. Full reset of cache.
 void setAvmNodeDAO(AVMNodeDAO dao)
          Deprecated. Set up the node dao.
 void setAvmStoreDAO(AVMStoreDAO dao)
          Deprecated. Set the store dao.
 void setTransactionalCache(org.alfresco.repo.cache.SimpleCache cache)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionalLookupCache

public TransactionalLookupCache()
Deprecated. 
Make one up.

Method Detail

setAvmNodeDAO

public void setAvmNodeDAO(AVMNodeDAO dao)
Deprecated. 
Set up the node dao.

Parameters:
dao - The dao to set.

setAvmStoreDAO

public void setAvmStoreDAO(AVMStoreDAO dao)
Deprecated. 
Set the store dao.

Parameters:
dao - The dao to set.

setTransactionalCache

public void setTransactionalCache(org.alfresco.repo.cache.SimpleCache cache)
Deprecated. 

afterPropertiesSet

public void afterPropertiesSet()
                        throws java.lang.Exception
Deprecated. 
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
java.lang.Exception

lookup

public org.alfresco.repo.avm.Lookup lookup(AVMStore store,
                                           int version,
                                           SimplePath path,
                                           boolean write,
                                           boolean includeDeleted)
Deprecated. 
Lookup a path. Try to fulfill the request from the cache.

Specified by:
lookup in interface LookupCache
Parameters:
store - The AVMStore.
version - The versions.
path - The path we are looking up.
write - Whether this is a write lookup.
includeDeleted -
Returns:

onWrite

public void onWrite(java.lang.String storeName)
Deprecated. 
Called when a simple write operation occurs. This invalidates all read lookups and all layered lookups.

Specified by:
onWrite in interface LookupCache

onDelete

public void onDelete(java.lang.String storeName)
Deprecated. 
Called when a delete has occurred in a store. This invalidates both reads and write lookups in that store.

Specified by:
onDelete in interface LookupCache

onSnapshot

public void onSnapshot(java.lang.String storeName)
Deprecated. 
Called when a snapshot occurs in a store. This invalidates write lookups. Read lookups stay untouched.

Specified by:
onSnapshot in interface LookupCache

reset

public void reset()
Deprecated. 
Description copied from interface: LookupCache
Full reset of cache.

Specified by:
reset in interface LookupCache


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.