org.openxava.tab.impl
Interface ISearch

All Known Subinterfaces:
IEntityTab, IEntityTabImpl, ITabProvider
All Known Implementing Classes:
EntityTab, JDBCTabProvider

public interface ISearch

Allows search along some predefined searches and specifying a concrete condition too.

It uses EJB exceptions to facilitate a remote implementation.

Author:
Javier Paniza

Method Summary
 void search(int index, java.lang.Object key)
          Execute the search.
 void search(java.lang.String condition, java.lang.Object key)
          Execute search.
 

Method Detail

search

void search(int index,
            java.lang.Object key)
            throws FinderException,
                   java.rmi.RemoteException
Execute the search.

If there are no object then generate a empty result, but does not throw a exception.

Parameters:
index - Index of serach to execute
key - Key to send to search
Throws:
FinderException - Any logic problem on search
java.rmi.RemoteException - Any system problem on search
java.lang.IndexOutOfBoundsException - If index of consult does not exist

search

void search(java.lang.String condition,
            java.lang.Object key)
            throws FinderException,
                   java.rmi.RemoteException
Execute search.

If there are no object then generate a empty result, but does not throw a exception.

Parameters:
condition - Condition to use in search.
key - Key to send to search
Throws:
FinderException - Any logic problem on search
java.rmi.RemoteException - Any system problem on search