|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ca.jcs.enumeration.RawNamingEnumeration<T>
com.ca.jcs.enumeration.AppendingNamingEnumeration<T>
public class AppendingNamingEnumeration<T>
An enumeration that can step through the elements of a collection or sequentially through a list of child enumerations (ie logically appending them).
| Field Summary |
|---|
| Fields inherited from class com.ca.jcs.enumeration.RawNamingEnumeration |
|---|
countLimit, scope, startTime, timeLimit, visitedCount |
| Constructor Summary | |
|---|---|
AppendingNamingEnumeration()
|
|
AppendingNamingEnumeration(Collection<T> queryResults,
long sizeLimit)
Deprecated. Use AppendingNamingEnumeration(SearchControls, Collection) instead. |
|
AppendingNamingEnumeration(SearchControls searchControls)
Create an enumeration which will respect any time or size limitation specified in searchControls. |
|
AppendingNamingEnumeration(SearchControls searchControls,
Collection<T> queryResults)
Create an enumeration around the provided queryResults, which were determined in a single bulk query. |
|
AppendingNamingEnumeration(SearchControls searchControls,
NamingEnumeration<T> child)
Create an "non-immediate" mode (ie normal) enumeration around the provided child enumeration, where other child enumerations can be appended up to the point where RawNamingEnumeration.next() is first called. |
|
AppendingNamingEnumeration(SearchControls searchControls,
Object result)
Create an enumeration around a single search result / name class pair. |
|
| Method Summary | |
|---|---|
void |
appendEnumeration(NamingEnumeration<T> child)
Append a child enumeration to this one, where if it is in "immediate" mode then the child's entries are appended to an internal cache list and otherwise the child enumeration is remembered and elements will be read from it after the previous contained child enumeration becomes exhausted. |
void |
close()
Close any child enumerations which have not yet been exhausted. |
boolean |
rawHasMore()
Returns true if at one object remains to be retrieved from this enumeration, or one of the child enumerations. |
T |
rawNext()
Returns next child from current child enumeration. |
| Methods inherited from class com.ca.jcs.enumeration.RawNamingEnumeration |
|---|
getCountLimit, getNonFatalException, getTimeLimit, getVisitedCount, hasMore, hasMoreElements, next, nextElement, setCountLimit, setNonFatalException, setTimeLimit |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AppendingNamingEnumeration()
public AppendingNamingEnumeration(SearchControls searchControls)
searchControls.
public AppendingNamingEnumeration(SearchControls searchControls,
Collection<T> queryResults)
public AppendingNamingEnumeration(Collection<T> queryResults,
long sizeLimit)
AppendingNamingEnumeration(SearchControls, Collection) instead.
public AppendingNamingEnumeration(SearchControls searchControls,
NamingEnumeration<T> child)
throws NamingException
RawNamingEnumeration.next() is first called.
NamingException
public AppendingNamingEnumeration(SearchControls searchControls,
Object result)
| Method Detail |
|---|
public void appendEnumeration(NamingEnumeration<T> child)
throws NamingException
child - Enumeration to be appended, or if null then this method simply
returns without doing anything.
NamingException
public boolean rawHasMore()
throws NamingException
rawHasMore in class RawNamingEnumeration<T>NamingException
public T rawNext()
throws NamingException
rawNext in class RawNamingEnumeration<T>NamingException
public void close()
throws NamingException
NamingException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||