Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

PointOfViewServer
Class SearchImpl  view SearchImpl download SearchImpl.java

java.lang.Object
  extended byjava.rmi.server.RemoteObject
      extended byjava.rmi.server.RemoteServer
          extended byjava.rmi.server.UnicastRemoteObject
              extended byPointOfViewServer.SearchImpl
All Implemented Interfaces:
java.rmi.Remote, Search, java.io.Serializable

public class SearchImpl
extends java.rmi.server.UnicastRemoteObject
implements Search

This class provides a buildQueries and an execute function to execute search (building queries from dimensions, executing them and building results list).


Field Summary
private  DatabaseConnection cConnection
           
private  long lTimeElapsed
           
private  DimensionSubsetListImpl pDimensions
           
private  ParameterSet pParameters
           
private  QueryList qQueries
           
private  ResultListImpl rResults
           
 
Fields inherited from class java.rmi.server.UnicastRemoteObject
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
SearchImpl(ParameterSet params, DatabaseConnection con)
          Main constructor.
 
Method Summary
 void buildQueries()
          buildQueries function build sql queries from dimensions wich will be used to obtain result list.
 ResultList execute()
          Build of queries if they don't exist execute each of them to build results.
 DimensionSubsetList getDimensions()
          Return currents dimensions.
 DimensionSubsetList getDimensionSubsetList()
           
 ResultList getResults()
          Return search results.
 long getTimeElapsed()
          Return time elapsed while searching.
 void reset()
          Reset current search object.
 void setDimensions(DimensionSubsetListImpl dim)
          Set dimensions list.
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

pParameters

private ParameterSet pParameters

cConnection

private DatabaseConnection cConnection

qQueries

private QueryList qQueries

rResults

private ResultListImpl rResults

pDimensions

private DimensionSubsetListImpl pDimensions

lTimeElapsed

private long lTimeElapsed
Constructor Detail

SearchImpl

public SearchImpl(ParameterSet params,
                  DatabaseConnection con)
           throws java.rmi.RemoteException
Main constructor.

Method Detail

getResults

public ResultList getResults()
                      throws java.rmi.RemoteException
Return search results.

Specified by:
getResults in interface Search

getTimeElapsed

public long getTimeElapsed()
                    throws java.rmi.RemoteException
Return time elapsed while searching.

Specified by:
getTimeElapsed in interface Search

execute

public ResultList execute()
                   throws java.rmi.RemoteException
Build of queries if they don't exist execute each of them to build results. Results are returned as a list.

Specified by:
execute in interface Search

buildQueries

public void buildQueries()
                  throws java.rmi.RemoteException
buildQueries function build sql queries from dimensions wich will be used to obtain result list. Three queries are built : - one to obtain url ids, - two to obtain informations from tables url and urlinfo.


getDimensions

public DimensionSubsetList getDimensions()
                                  throws java.rmi.RemoteException
Return currents dimensions.


setDimensions

public void setDimensions(DimensionSubsetListImpl dim)
                   throws java.rmi.RemoteException
Set dimensions list.


reset

public void reset()
           throws java.rmi.RemoteException
Reset current search object.

Specified by:
reset in interface Search

getDimensionSubsetList

public DimensionSubsetList getDimensionSubsetList()
                                           throws java.rmi.RemoteException
Specified by:
getDimensionSubsetList in interface Search