Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.core.query
Interface QueryResult

All Known Implementing Classes:
SQLQueryResult

public interface QueryResult

Author:
Bogdan Stefanescu, Florent Guillaume

Method Summary
 long count()
           
 boolean getBoolean(int i)
           
 boolean getBoolean(String column)
           
 DocumentModelList getDocumentModels()
           
 Iterator getDocuments(int start)
           
 double getDouble(int i, double defaultValue)
           
 double getDouble(String column, double defaultValue)
           
 long getLong(int i, long defaultValue)
           
 long getLong(String column, long defaultValue)
           
 Object getObject()
           
 Object getObject(String column)
          Currently not implemented.
 String getString(int i)
           
 String getString(String column)
           
 long getTotalSize()
          Returns the total size the query results would have if no limit and offset was passed.
 boolean isEmpty()
           
 boolean next()
           
 long row()
          Retrieves the current row number.
 

Method Detail

count

long count()

getTotalSize

long getTotalSize()
Returns the total size the query results would have if no limit and offset was passed.

Returns:
the total size

isEmpty

boolean isEmpty()

next

boolean next()

row

long row()
Retrieves the current row number. (1 based index)

If there is no current row (no next() was called) returns 0

Returns:
the current row number

getString

String getString(int i)
                 throws QueryException
Throws:
QueryException

getString

String getString(String column)
                 throws QueryException
Throws:
QueryException

getBoolean

boolean getBoolean(int i)
                   throws QueryException
Throws:
QueryException

getBoolean

boolean getBoolean(String column)
                   throws QueryException
Throws:
QueryException

getLong

long getLong(int i,
             long defaultValue)
             throws QueryException
Throws:
QueryException

getLong

long getLong(String column,
             long defaultValue)
             throws QueryException
Throws:
QueryException

getDouble

double getDouble(int i,
                 double defaultValue)
                 throws QueryException
Throws:
QueryException

getDouble

double getDouble(String column,
                 double defaultValue)
                 throws QueryException
Throws:
QueryException

getObject

Object getObject(String column)
                 throws QueryException
Currently not implemented.

Throws:
QueryException

getObject

Object getObject()
                 throws QueryException
Throws:
QueryException

getDocumentModels

DocumentModelList getDocumentModels()
                                    throws QueryException
Throws:
QueryException

getDocuments

Iterator getDocuments(int start)

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.