|
Oracle Content Management SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.ifs.common.UncachedSelectorCollection
An UncachedSelectorCollection is a Collection whose items are LIBRARYOBJECTs specified by a Selector or S_Selector and not cached by the collection.
By not caching its items, an UncachedSelectorCollection maintains a small memory footprint. However, each use of the collection causes a database roundtrip, making UncachedSelectorCollection less performant than CachedSelectorCollection.
The order of items returned by getItems()
and
getItemsVector()
is determined by the sort specification of the
Selector or S_Selector. The method getItems(int)
is implemented
in terms of getItems()
. For best performance in iterating over
the items of the collection, call getItems()
once instead of
getItems(int)
repeatedly.
The LIBRARYOBJECTs returned by the Selector or S_Selector must have a Name
attribute. Use getItems(String)
to look up an item by name.
This lookup is case-insentive. If more than one item has the same
case-insensitive name, getItems(String)
returns an arbitrary
item with that name.
The performance of getItems(String)
can be improved by enabling
a mini-cache of the "n" items most-recently returned by this method. The
size of this mini-cache is specified by a constructor argument.
Method Summary | |
int |
getItemCount()
Gets the number of items in this Collection. |
java.lang.Object[] |
getItems()
Gets an array containing the items in this Collection. |
java.lang.Object |
getItems(int index)
Gets the specified item in this Collection. |
java.lang.Object |
getItems(java.lang.String name)
Gets the specified item in this Collection. |
java.util.Vector |
getItemsVector()
Gets a vector containing the items in this Collection. |
void |
handleEvent(IfsEvent event)
Handles the specified event. |
Method Detail |
public int getItemCount() throws IfsException
getItemCount
in interface Collection
IfsException
- (IFS-12211) if the operation failspublic java.lang.Object[] getItems() throws IfsException
getItems
in interface Collection
IfsException
- (IFS-12212) if the operation failspublic java.lang.Object getItems(int index) throws IfsException
getItems
in interface Collection
index
- the zero-based index of the itemIfsException
- (IFS-12213) if the operation failspublic java.lang.Object getItems(java.lang.String name) throws IfsException
getItems
in interface Collection
name
- the name of the itemIfsException
- (IFS-12214) if the operation failspublic java.util.Vector getItemsVector() throws IfsException
The order of the items in the vector is identical to the order of the
items in the array returned by getItems()
.
getItemsVector
in interface Collection
IfsException
- (IFS-12215) if the operation failspublic void handleEvent(IfsEvent event) throws IfsException
handleEvent
in interface IfsEventHandler
event
- the eventIfsException
- if the operation fails
|
Oracle Content Management SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |