org.deegree.metadata.persistence
Interface MetadataResultSet<T extends MetadataRecord>

All Known Implementing Classes:
XMLMetadataResultSet

public interface MetadataResultSet<T extends MetadataRecord>

Has a corresponding MetadataResultType as content.

Version:
$Revision: 30829 $, $Date: 2011-05-16 18:47:27 +0200 (Mo, 16. Mai 2011) $
Author:
Steffen Thomas, last edited by: $Author: mschneider $

Method Summary
 void close()
          Must be invoked after using to close underlying resources, e.g.
 T getRecord()
          Returns the MetadataRecord at the current cursor position.
 int getRemaining()
           
 boolean next()
          Moves the cursor down one row from its current position.
 void skip(int rows)
           
 

Method Detail

close

void close()
           throws MetadataStoreException
Must be invoked after using to close underlying resources, e.g. SQL ResultSets.

Throws:
MetadataStoreException

next

boolean next()
             throws MetadataStoreException
Moves the cursor down one row from its current position. A ResultSet cursor is initially positioned before the first row; the first call to the method next makes the first row the current row; the second call makes the second row the current row, and so on.

Returns:
true, if the cursor was moved down one row, false otherwise (no rows left)
Throws:
MetadataStoreException

skip

void skip(int rows)
          throws MetadataStoreException
Throws:
MetadataStoreException

getRemaining

int getRemaining()
                 throws MetadataStoreException
Returns:
Throws:
MetadataStoreException

getRecord

T getRecord()
                                   throws MetadataStoreException
Returns the MetadataRecord at the current cursor position.

Returns:
record at the current position, never null
Throws:
MetadataStoreException


Copyright © 2011. All Rights Reserved.