com.ibm.etools.iseries.edit.verifiers.comm.bridge
Class ISeriesRecordCache
java.lang.Object
   java.util.AbstractCollection<E>
java.util.AbstractCollection<E>
       java.util.AbstractList<E>
java.util.AbstractList<E>
           java.util.ArrayList
java.util.ArrayList
               com.ibm.etools.iseries.edit.verifiers.comm.bridge.ISeriesRecordCache
com.ibm.etools.iseries.edit.verifiers.comm.bridge.ISeriesRecordCache
- All Implemented Interfaces: 
- Serializable, Cloneable, Iterable, Collection, List, RandomAccess
- public class ISeriesRecordCache 
- extends ArrayList
A local cache used by the CODE comm bridge for caching records and record lists.
- See Also:
- Serialized Form
 
 
 
| Constructor Summary | 
| protected  | ISeriesRecordCache(int maxSize)Constructor for LastAccessedCache.
 | 
 
 
| Methods inherited from class java.util.ArrayList | 
| add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize | 
 
 
 
 
 
copyright
public static final String copyright
- See Also:
- Constant Field Values
_instance
protected static com.ibm.etools.iseries.edit.verifiers.comm.bridge.AbstractLastAccessedCache _instance
_key
protected static JavaToCOutputStream _key
ISeriesRecordCache
protected ISeriesRecordCache(int maxSize)
- Constructor for LastAccessedCache.
 
findRecordList
protected IQSYSFileRecordFormat[] findRecordList(String libraryName,
                                                 String fileName)
- Lookup ISeriesObject with specified name
 
- 
 
getInstance
public static ISeriesRecordCache getInstance(JavaToCOutputStream key)
- Return an instance of this cache for the current comm session
 as specified by the JavaToCOutputStream instance
 
- 
 
add
public boolean add(IQSYSFileRecordFormat[] reclist,
                   String library,
                   String file)
- 
- See Also:
- Collection.add(Object)
 
moveToFront
protected void moveToFront(int index)
- Move the element at index to the front of the linked list
 
- 
 
add
public boolean add(Object obj)
- Override of the add method to add the element to the beginning of the
 list and to make sure the max size of the list has not exceeded the 
 max size limit.  If it has then the element at the end of the list 
 is dropped.
 
- 
- Specified by:
- addin interface- Collection
- Specified by:
- addin interface- List
- Overrides:
- addin class- ArrayList
 
- 
- See Also:
- LinkedList.addFirst(Object)
 
Copyright © 2011 IBM Corp. All Rights Reserved. 
 Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.