JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.util.formulae
Class QueryExpressionList

java.lang.Object
  |
  +--com.klg.jclass.util.formulae.ExpressionList
        |
        +--com.klg.jclass.util.formulae.QueryExpressionList
All Implemented Interfaces:
Cloneable, Collection, Expression, List, Result

public class QueryExpressionList
extends ExpressionList

A QueryExpressionList is a List view of a set of Expressions stored in a ResultSet (result of a database/datasource query)


Constructor Summary
QueryExpressionList()
          Create a query expression from a query result set and ???
 
Method Summary
 Object clone()
          Return an Expression which is a clone of this List (NOTE: any parametrized values in indices should be substituted with their current values)
 boolean contains(Object obj)
          Determine if the List contain the specified element
 boolean equals(Object obj)
          Compare the given object and this List, given that equality implies the Lists contain the same entries in the same order.
 Object get(int index)
          Retrieve the element at a given position in this List
 int hashCode()
          Return a hash code derived from this List
 int indexOf(Object obj)
          Find the position (first occurence) of a given object in the List.
 Iterator iterator()
          Get an iterator over the elements in this List
 int lastIndexOf(Object o)
          Find the position of the last occurence of a given object in the List.
 ListIterator listIterator(int index)
          Get a ListIterator over the elements of the List beginning at the the given position in the list
 int size()
          Return the number of elements in this List
 List subList(int startIndex, int endIndex)
          Get a List which is a subsequence of this List (the ordering is the same)
 Object[] toArray(Object[] inArray)
          Fill a given array with a view of all the elements in this List NOTE: The Iterator's ordering is used
 
Methods inherited from class com.klg.jclass.util.formulae.ExpressionList
add, add, addAll, addAll, clear, containsAll, evaluate, isEmpty, listIterator, remove, remove, removeAll, retainAll, set, toArray
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryExpressionList

public QueryExpressionList()
Create a query expression from a query result set and ???

Method Detail

clone

public Object clone()
Return an Expression which is a clone of this List (NOTE: any parametrized values in indices should be substituted with their current values)

Specified by:
clone in interface Expression
Overrides:
clone in class ExpressionList

contains

public boolean contains(Object obj)
Determine if the List contain the specified element

Specified by:
contains in interface List
Specified by:
contains in class ExpressionList
Parameters:
obj - The element to be searched for in this List
Returns:
True if the List contains the given object

equals

public boolean equals(Object obj)
Compare the given object and this List, given that equality implies the Lists contain the same entries in the same order.

Specified by:
equals in interface List
Specified by:
equals in class ExpressionList
Parameters:
obj - the object whose equality with this List is tested
Returns:
True if the given object satisfies "equality" with this List

get

public Object get(int index)
Retrieve the element at a given position in this List

Specified by:
get in interface List
Specified by:
get in class ExpressionList
Parameters:
index - The desired element's position
Returns:
The element found at the given position

hashCode

public int hashCode()
Return a hash code derived from this List

Specified by:
hashCode in interface List
Overrides:
hashCode in class Object
Returns:
the hash code of this List

indexOf

public int indexOf(Object obj)
Find the position (first occurence) of a given object in the List. -1 is returned if the element is not found in the List.

Specified by:
indexOf in interface List
Specified by:
indexOf in class ExpressionList
Parameters:
obj - The object to be found in the List
Returns:
The location of the object in the List (or -1)

iterator

public Iterator iterator()
Get an iterator over the elements in this List

Specified by:
iterator in interface List
Specified by:
iterator in class ExpressionList
Returns:
an iterator object which enumerates the elements in this List

lastIndexOf

public int lastIndexOf(Object o)
Find the position of the last occurence of a given object in the List. -1 is returned if the element is not found in the List.

Specified by:
lastIndexOf in interface List
Specified by:
lastIndexOf in class ExpressionList
Returns:
The last location the object is found in the List (or -1)

listIterator

public ListIterator listIterator(int index)
Get a ListIterator over the elements of the List beginning at the the given position in the list

Specified by:
listIterator in interface List
Specified by:
listIterator in class ExpressionList
Parameters:
index - The position at which to initialise the ListIterator
Returns:
A ListIterator over this List

size

public int size()
Return the number of elements in this List

Specified by:
size in interface List
Specified by:
size in class ExpressionList
Returns:
the cardinality of this List

subList

public List subList(int startIndex,
                    int endIndex)
Get a List which is a subsequence of this List (the ordering is the same)

Specified by:
subList in interface List
Specified by:
subList in class ExpressionList
Parameters:
startIndex - The first element of the sublist
endIndex - The element after the last element of the sublist
Returns:
A List which contains the elements of the specified subset

toArray

public Object[] toArray(Object[] inArray)
Fill a given array with a view of all the elements in this List NOTE: The Iterator's ordering is used

Specified by:
toArray in interface List
Specified by:
toArray in class ExpressionList
Parameters:
inArray - The array in which to store the elements
Returns:
an Array of all the elements in this List

Copyright © 2004 Quest Software Inc..
All rights reserved.