org.deegree_impl.services.wcas.protocol
Class CASSearchResponse_Impl

java.lang.Object
  extended byorg.deegree_impl.services.wcas.protocol.CASSearchResponse_Impl
All Implemented Interfaces:
CASSearchResponse

public final class CASSearchResponse_Impl
extends java.lang.Object
implements CASSearchResponse

The interface describes the access to the result of a GetRecord request. Notice, because of GetRecord request may addresses different setNames (Full, Summary or Brief) by different queries each result to a query capsulated by a CASSearchResult.

--------------------------------------------------------------------

Version:
2002-04-16
Author:
Andreas Poth

Field Summary
private  int numberOfRecords
           
private  java.util.ArrayList searchResults
           
private  boolean success
           
private  java.sql.Timestamp timestamp
           
 
Constructor Summary
(package private) CASSearchResponse_Impl(int numberOfRecords, CASSearchResult[] searchResults, java.sql.Timestamp timestamp, boolean success)
          Creates a new CASSearchResponse_Impl object.
 
Method Summary
 void addSearchResult(CASSearchResult searchResult)
           
 int getNumberOfRecords()
          returns the number of records contained within all CASSearchResults.
 CASSearchResult[] getSearchResults()
          returns the element 'searchResults'
 java.sql.Timestamp getTimeStamp()
          returns the timestamp when the performing of the request has been finished.
 boolean isSuccessful()
          returns true if the request that underlays the response has been performed successful.
 void setNumberOfRecords(int numberOfRecords)
           
 void setSearchResults(CASSearchResult[] searchResults)
           
 void setSuccess(boolean success)
           
 void setTimeStamp(java.sql.Timestamp timestamp)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

searchResults

private java.util.ArrayList searchResults

timestamp

private java.sql.Timestamp timestamp

success

private boolean success

numberOfRecords

private int numberOfRecords
Constructor Detail

CASSearchResponse_Impl

CASSearchResponse_Impl(int numberOfRecords,
                       CASSearchResult[] searchResults,
                       java.sql.Timestamp timestamp,
                       boolean success)
Creates a new CASSearchResponse_Impl object.

Parameters:
numberOfRecords -
searchResults -
timestamp -
success -
Method Detail

isSuccessful

public boolean isSuccessful()
returns true if the request that underlays the response has been performed successful.

Specified by:
isSuccessful in interface CASSearchResponse

setSuccess

public void setSuccess(boolean success)
See Also:
isSuccessful()

getNumberOfRecords

public int getNumberOfRecords()
returns the number of records contained within all CASSearchResults.

Specified by:
getNumberOfRecords in interface CASSearchResponse

setNumberOfRecords

public void setNumberOfRecords(int numberOfRecords)
See Also:
getNumberOfRecords()

getTimeStamp

public java.sql.Timestamp getTimeStamp()
returns the timestamp when the performing of the request has been finished.

Specified by:
getTimeStamp in interface CASSearchResponse

setTimeStamp

public void setTimeStamp(java.sql.Timestamp timestamp)
See Also:
getTimeStamp()

getSearchResults

public CASSearchResult[] getSearchResults()
returns the element 'searchResults'

Specified by:
getSearchResults in interface CASSearchResponse

setSearchResults

public void setSearchResults(CASSearchResult[] searchResults)
See Also:
getSearchResults()

addSearchResult

public void addSearchResult(CASSearchResult searchResult)
See Also:
getSearchResults()

toString

public java.lang.String toString()
Returns: