wt.epm.upload
Class Cache.Flusher

java.lang.Object
  extended bywt.epm.upload.Cache.Flusher
Enclosing class:
Cache

public static class Cache.Flusher
extends Object


Field Summary
private  Cache cache
           
private  Collection cacheObjectsForAutoUndocheckout
           
private  Collection cacheObjectsForCreating
           
private  Collection cacheObjectsForDeletion
           
private  Collection cacheObjectsForIgnoring
           
private  Collection cacheObjectsForUndocheckout
           
private  Collection cacheObjectsForUpdating
           
private static Class[] classOrder
           
private  Map objectsForCreating
           
private  WTCollection objectsForCreatingList
           
private  WTSet objectsForDeletion
           
private  WTSet objectsForUndocheckout
           
private  WTCollection objectsForUpdating
           
 
Constructor Summary
Cache.Flusher(Cache cache)
           
Cache.Flusher(Cache cache, boolean delete, boolean create, boolean update)
           
 
Method Summary
 void addCacheObject(CacheObject object)
           
 void addCacheObjects(Collection objects)
           
 void addCacheObjects(Map objects)
           
static Collection delete(Collection objects)
           
private  void dumpObjects(String title, Collection c)
           
 void execute()
           
protected  void executeCreating()
           
protected  void executeDeletion()
           
protected  void executeUpdating()
           
 Collection getCacheObjectsForCreating()
           
 Collection getCacheObjectsForCreating(Class filter)
           
 Collection getCacheObjectsForDeletion()
           
 Collection getCacheObjectsForDeletion(Class filter)
           
 Collection getCacheObjectsForUndocheckout()
           
 Collection getCacheObjectsForUndocheckout(Class filter)
           
 Collection getCacheObjectsForUpdating()
           
 Collection getCacheObjectsForUpdating(Class filter)
           
 WTCollection getObjectsForCreating()
           
 WTSet getObjectsForDeletion()
           
 WTSet getObjectsForUndocheckout()
           
 WTCollection getObjectsForUpdating()
           
static Collection modify(Collection objects)
           
 void prepare()
           
protected  void prepareCreating()
           
protected  void prepareDeletion()
           
protected  void prepareUpdating()
           
static Collection store(Collection objects)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cache

private Cache cache

cacheObjectsForDeletion

private Collection cacheObjectsForDeletion

cacheObjectsForUndocheckout

private Collection cacheObjectsForUndocheckout

cacheObjectsForAutoUndocheckout

private Collection cacheObjectsForAutoUndocheckout

cacheObjectsForCreating

private Collection cacheObjectsForCreating

cacheObjectsForUpdating

private Collection cacheObjectsForUpdating

cacheObjectsForIgnoring

private Collection cacheObjectsForIgnoring

objectsForDeletion

private WTSet objectsForDeletion

objectsForUndocheckout

private WTSet objectsForUndocheckout

objectsForCreating

private Map objectsForCreating

objectsForCreatingList

private WTCollection objectsForCreatingList

objectsForUpdating

private WTCollection objectsForUpdating

classOrder

private static final Class[] classOrder
Constructor Detail

Cache.Flusher

public Cache.Flusher(Cache cache)

Cache.Flusher

public Cache.Flusher(Cache cache,
                     boolean delete,
                     boolean create,
                     boolean update)
Method Detail

getCacheObjectsForDeletion

public Collection getCacheObjectsForDeletion()

getCacheObjectsForUndocheckout

public Collection getCacheObjectsForUndocheckout()

getCacheObjectsForDeletion

public Collection getCacheObjectsForDeletion(Class filter)
                                      throws WTException
Throws:
WTException

getCacheObjectsForUndocheckout

public Collection getCacheObjectsForUndocheckout(Class filter)
                                          throws WTException
Throws:
WTException

getCacheObjectsForCreating

public Collection getCacheObjectsForCreating()

getCacheObjectsForCreating

public Collection getCacheObjectsForCreating(Class filter)
                                      throws WTException
Throws:
WTException

getCacheObjectsForUpdating

public Collection getCacheObjectsForUpdating()

getCacheObjectsForUpdating

public Collection getCacheObjectsForUpdating(Class filter)
                                      throws WTException
Throws:
WTException

getObjectsForDeletion

public WTSet getObjectsForDeletion()

getObjectsForUndocheckout

public WTSet getObjectsForUndocheckout()

getObjectsForCreating

public WTCollection getObjectsForCreating()

getObjectsForUpdating

public WTCollection getObjectsForUpdating()

addCacheObjects

public void addCacheObjects(Map objects)
                     throws WTException
Throws:
WTException

addCacheObjects

public void addCacheObjects(Collection objects)
                     throws WTException
Throws:
WTException

addCacheObject

public void addCacheObject(CacheObject object)
                    throws WTException
Throws:
WTException

prepare

public void prepare()
             throws WTException
Throws:
WTException

prepareDeletion

protected void prepareDeletion()
                        throws WTException
Throws:
WTException

prepareCreating

protected void prepareCreating()
                        throws WTException
Throws:
WTException

prepareUpdating

protected void prepareUpdating()
                        throws WTException
Throws:
WTException

execute

public void execute()
             throws WTException
Throws:
WTException

executeDeletion

protected void executeDeletion()
                        throws WTException
Throws:
WTException

executeCreating

protected void executeCreating()
                        throws WTException
Throws:
WTException

executeUpdating

protected void executeUpdating()
                        throws WTException
Throws:
WTException

delete

public static Collection delete(Collection objects)
                         throws WTException
Throws:
WTException

modify

public static Collection modify(Collection objects)
                         throws WTException
Throws:
WTException

store

public static Collection store(Collection objects)
                        throws WTException
Throws:
WTException

dumpObjects

private void dumpObjects(String title,
                         Collection c)
                  throws WTException
Throws:
WTException