Overview | Package | Class | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## es.upm.gib.eutilsrdfwrapper.motor
Class InternalQueryState

    java.lang.Object
      es.upm.gib.eutilsrdfwrapper.motor.InternalQueryState

    public class InternalQueryState

extends java.lang.Object

This class stores the state of a query in the NCBI database system. It actually stores the result tree. For each database, a QueryListElement is maintained: database, queryKey, index and count. The first element is always a fake database with zero results. This element stores the global EUtils webenv in both the database and queryKey elements

Constructor Summary
`InternalQueryState()`
`InternalQueryState(InternalQueryState iqs)`

Method Summary
`void` | `add(int index, QueryListElement element)`
`void` | `add(QueryListElement element)`
`void` | `addNewWebEnv(java.lang.String webEnv)`
`QueryListElement` | `get(int index)`
`int` | `getWebEnvUsage(java.lang.String webEnv)`
`static boolean` | `hasNextElement(QueryListElement element)` Indicates if a specific query list element has more results to be retrieved
`static boolean` | `hasNextElementExtrict(QueryListElement element)`
`void` | `increaseWebEnvUsage(java.lang.String webEnv)`
`boolean` | `isEmpty()`
`static boolean` | `myHasNextElement(QueryListElement element)`
`void` | `set(int index, QueryListElement element)`
`int` | `size()`
`boolean` | `webEnvUsageOverLimit(java.lang.String webEnv)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### InternalQueryState

    public InternalQueryState()

### InternalQueryState

    public InternalQueryState(InternalQueryState iqs)

Method Detail

### get

    public QueryListElement get(int index)

### size

    public int size()

### set

    public void set(int index,
                    QueryListElement element)

### add

    public void add(int index,
                    QueryListElement element)

### add

    public void add(QueryListElement element)

### isEmpty

    public boolean isEmpty()

### addNewWebEnv

    public void addNewWebEnv(java.lang.String webEnv)

### increaseWebEnvUsage

    public void increaseWebEnvUsage(java.lang.String webEnv)

### getWebEnvUsage

    public int getWebEnvUsage(java.lang.String webEnv)

### webEnvUsageOverLimit

    public boolean webEnvUsageOverLimit(java.lang.String webEnv)

### hasNextElementExtrict

    public static boolean hasNextElementExtrict(QueryListElement element)

### hasNextElement

    public static boolean hasNextElement(QueryListElement element)

  Indicates if a specific query list element has more results to be retrieved

  Parameters:
    `element` - the query list element to check
  Returns:
    true if the given element has more results to retrieve

### myHasNextElement

    public static boolean myHasNextElement(QueryListElement element)

Overview | Package | Class | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD