HiRISE

HiRISE.HiWish
Class SuggestionSearchList

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<Map<String,Object>>
              extended by HiRISE.HiWish.SuggestionSearchList
All Implemented Interfaces:
Serializable, Cloneable, Iterable<Map<String,Object>>, Collection<Map<String,Object>>, List<Map<String,Object>>, RandomAccess, org.displaytag.pagination.PaginatedList

public class SuggestionSearchList
extends ArrayList<Map<String,Object>>
implements org.displaytag.pagination.PaginatedList

Performs query for suggestions based on user input

See Also:
Serialized Form

Field Summary
protected  int len
          Length of full list
protected  int opp
          Objects per page
protected  int pos
          Position in list, zero-based
protected  String sort
          Sort column, defaults to null (order returned by query)
protected  org.displaytag.properties.SortOrderEnum sortDirection
          True if ascending (default)
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
SuggestionSearchList(Connection conn)
          Create a new instance
 
Method Summary
 int getFullListSize()
           
 List<Map<String,Object>> getList()
           
 int getObjectsPerPage()
           
 int getPageNumber()
           
 String getSearchId()
           
 String getSortCriterion()
           
 org.displaytag.properties.SortOrderEnum getSortDirection()
           
 void init(SuggestionSearchForm form)
          Fill out list of matching suggestions
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Field Detail

len

protected int len
Length of full list


pos

protected int pos
Position in list, zero-based


opp

protected int opp
Objects per page


sortDirection

protected org.displaytag.properties.SortOrderEnum sortDirection
True if ascending (default)


sort

protected String sort
Sort column, defaults to null (order returned by query)

Constructor Detail

SuggestionSearchList

public SuggestionSearchList(Connection conn)
Create a new instance

Parameters:
conn - database connection to use
Method Detail

init

public void init(SuggestionSearchForm form)
          throws SQLException
Fill out list of matching suggestions

Parameters:
form - Search parameters
Throws:
SQLException - Data could not be retrieved

getFullListSize

public int getFullListSize()
Specified by:
getFullListSize in interface org.displaytag.pagination.PaginatedList

getList

public List<Map<String,Object>> getList()
Specified by:
getList in interface org.displaytag.pagination.PaginatedList

getObjectsPerPage

public int getObjectsPerPage()
Specified by:
getObjectsPerPage in interface org.displaytag.pagination.PaginatedList

getPageNumber

public int getPageNumber()
Specified by:
getPageNumber in interface org.displaytag.pagination.PaginatedList

getSearchId

public String getSearchId()
Specified by:
getSearchId in interface org.displaytag.pagination.PaginatedList

getSortCriterion

public String getSortCriterion()
Specified by:
getSortCriterion in interface org.displaytag.pagination.PaginatedList

getSortDirection

public org.displaytag.properties.SortOrderEnum getSortDirection()
Specified by:
getSortDirection in interface org.displaytag.pagination.PaginatedList

HiRISE

Copyright (C) Arizona Board of Regents on behalf of the Planetary Image Research Laboratory, Lunar and Planetary Laboratory at the University of Arizona