Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.1.0)

E17493-02

oracle.jdeveloper.vcs.changelist
Class ChangeListStatusCache

java.lang.Object
  extended by java.util.Observable
      extended by oracle.jdeveloper.vcs.spi.VCSURLBasedCache
          extended by oracle.jdeveloper.vcs.changelist.ChangeListStatusCache
Direct Known Subclasses:
AsynchronousStatusCache

Deprecated. replaced by the policy status cache classes; derivatives of StatusCache.

@Deprecated
public abstract class ChangeListStatusCache
extends VCSURLBasedCache

Utility class for caching URLs' change list status values. This class takes care of all cache responsibilities. Concrete subclasses are required to provide the implementation for returning uncached statuses. The cache is observable; attached observers are updated with an array of URLs whose statuses have been cleared (and hence may have changed).


Constructor Summary
ChangeListStatusCache()
          Deprecated.  
 
Method Summary
 void clear()
          Deprecated. Clears the cached change list statuses for all URLs.
 void clear(java.net.URL url)
          Deprecated. Clears the cached change list status for the given URL.
 void clear(java.net.URL[] urls)
          Deprecated. Clears the cached change list statuses for the given URLs.
 void clear(URLFilter filter)
          Deprecated. Clears the cached change list statuses for URLs accepted by the given filter.
protected  java.lang.Object[] createValueArray(int length)
          Deprecated.  
 ChangeListStatus get(java.net.URL url)
          Deprecated. Gets the status of a single URL.
 ChangeListStatus[] get(java.net.URL[] urls)
          Deprecated. Gets the change list statuses for the given URLs.
protected abstract  void getImpl(java.net.URL[] urls, ChangeListStatus[] statuses)
          Deprecated. Gets current statuses for the given URLs, populating the status array.
protected  void getValuesImpl(java.net.URL[] urls, java.lang.Object[] values)
          Deprecated.  
 java.net.URL[] search(URLFilter filter)
          Deprecated. Searches the change list status cache for URLs accepted by the given filter.
 
Methods inherited from class oracle.jdeveloper.vcs.spi.VCSURLBasedCache
addCacheListener, callUnderWriteLock, clearValue, clearValues, clearValues, clearValues, clearValues, clearValuesInternal, dispose, getValue, getValueInternal, getValueInternal, getValues, getValuesImpl, isLocalCache, newLocalCache, putValueInternal, putValueInternal, removeCacheListener, runUnderWriteLock, searchValues
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChangeListStatusCache

public ChangeListStatusCache()
Deprecated. 
Method Detail

getValuesImpl

protected final void getValuesImpl(java.net.URL[] urls,
                                   java.lang.Object[] values)
                            throws java.lang.Exception
Deprecated. 
Specified by:
getValuesImpl in class VCSURLBasedCache
Throws:
java.lang.Exception

createValueArray

protected final java.lang.Object[] createValueArray(int length)
Deprecated. 
Overrides:
createValueArray in class VCSURLBasedCache

get

public final ChangeListStatus get(java.net.URL url)
                           throws java.lang.Exception
Deprecated. 
Gets the status of a single URL.

Parameters:
url - the URL for the status query.
Returns:
the current version status describing the URL.
Throws:
java.lang.Exception

get

public ChangeListStatus[] get(java.net.URL[] urls)
                       throws java.lang.Exception
Deprecated. 
Gets the change list statuses for the given URLs.

Parameters:
urls - the array of URLs for the status query.
Returns:
an array of current version statuses describing the URLs.
Throws:
java.lang.Exception - if a critical exception occurred.

clear

public void clear()
Deprecated. 
Clears the cached change list statuses for all URLs.


clear

public void clear(java.net.URL url)
Deprecated. 
Clears the cached change list status for the given URL.

Parameters:
url - the URL for clearing from the cache.

clear

public void clear(java.net.URL[] urls)
Deprecated. 
Clears the cached change list statuses for the given URLs.

Parameters:
urls - the URLs for clearing from the cache.

clear

public void clear(URLFilter filter)
Deprecated. 
Clears the cached change list statuses for URLs accepted by the given filter. This method takes care of firing updates which indicate that statuses may have changed.

Parameters:
filter - a filter that accepts URLs for clearing from the cache.

search

public java.net.URL[] search(URLFilter filter)
Deprecated. 
Searches the change list status cache for URLs accepted by the given filter.

Parameters:
filter - a filter that accepts URLs to return.
Returns:
an array of URLs which were found in the cache.

getImpl

protected abstract void getImpl(java.net.URL[] urls,
                                ChangeListStatus[] statuses)
                         throws java.lang.Exception
Deprecated. 
Gets current statuses for the given URLs, populating the status array.

Parameters:
urls - the array of URLs for the status query.
statuses - the array of current change list statuses to populate.
Throws:
java.lang.Exception - if a critical exception occurred.

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.1.0)

E17493-02

Copyright © 1997, 2011, Oracle. All rights reserved.