com.netscape.certsrv.dbs.certdb
Interface ICertRecordList


public interface ICertRecordList

A class represents a list of certificate records.

Version:
$Revision: 1211 $, $Date: 2010-08-18 10:15:37 -0700 (Wed, 18 Aug 2010) $

Method Summary
 java.lang.Object getCertRecord(int index)
          Gets one single record at a time similar to processCertRecords but no extra class needed.
 java.util.Enumeration getCertRecords(int startidx, int endidx)
          Retrieves requests.
 int getCurrentIndex()
          Gets the current index.
 int getSize()
          Retrieves the size of request list.
 int getSizeAfterJumpTo()
          Gets size after jump to index.
 int getSizeBeforeJumpTo()
          Gets size before jump to index.
 void processCertRecords(int startidx, int endidx, IElementProcessor ep)
          Process certificate record as soon as it is returned.
 

Method Detail

getCurrentIndex

int getCurrentIndex()
Gets the current index.

Returns:
current index

getSize

int getSize()
Retrieves the size of request list.

Returns:
size

getSizeBeforeJumpTo

int getSizeBeforeJumpTo()
Gets size before jump to index.

Returns:
size

getSizeAfterJumpTo

int getSizeAfterJumpTo()
Gets size after jump to index.

Returns:
size

processCertRecords

void processCertRecords(int startidx,
                        int endidx,
                        IElementProcessor ep)
                        throws EBaseException
Process certificate record as soon as it is returned.

Parameters:
startidx - starting index
endidx - ending index
ep - element processor
Throws:
EBaseException - failed to process cert records

getCertRecords

java.util.Enumeration getCertRecords(int startidx,
                                     int endidx)
                                     throws EBaseException
Retrieves requests. It's no good to call this if you didnt check if the startidx, endidx are valid.

Parameters:
startidx - starting index
endidx - ending index
Throws:
EBaseException - failed to retrieve

getCertRecord

java.lang.Object getCertRecord(int index)
                               throws EBaseException
Gets one single record at a time similar to processCertRecords but no extra class needed.

Parameters:
index - position of the record to be retrieved
Returns:
object
Throws:
EBaseException - failed to retrieve