public class SQLQueryResult extends Object implements QueryResult
| Modifier and Type | Class and Description |
|---|---|
static class |
SQLQueryResult.PathComparator |
| Constructor and Description |
|---|
SQLQueryResult(SQLSession session,
PartialList<Serializable> pl,
Boolean orderByPath,
long limit,
long offset) |
| Modifier and Type | Method and Description |
|---|---|
long |
count() |
boolean |
getBoolean(int i) |
boolean |
getBoolean(String column) |
DocumentModelList |
getDocumentModels() |
DocumentIterator |
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.
|
public SQLQueryResult(SQLSession session, PartialList<Serializable> pl, Boolean orderByPath, long limit, long offset)
public long count()
count in interface QueryResultpublic long getTotalSize()
QueryResultgetTotalSize in interface QueryResultpublic boolean isEmpty()
isEmpty in interface QueryResultpublic DocumentModelList getDocumentModels() throws QueryException
getDocumentModels in interface QueryResultQueryExceptionpublic DocumentIterator getDocuments(int start)
getDocuments in interface QueryResultpublic boolean next()
next in interface QueryResultpublic Object getObject() throws QueryException
getObject in interface QueryResultQueryExceptionpublic long row()
QueryResultIf there is no current row (no next() was called) returns 0
row in interface QueryResultpublic boolean getBoolean(int i)
throws QueryException
getBoolean in interface QueryResultQueryExceptionpublic boolean getBoolean(String column) throws QueryException
getBoolean in interface QueryResultQueryExceptionpublic double getDouble(int i,
double defaultValue)
throws QueryException
getDouble in interface QueryResultQueryExceptionpublic double getDouble(String column, double defaultValue) throws QueryException
getDouble in interface QueryResultQueryExceptionpublic long getLong(int i,
long defaultValue)
throws QueryException
getLong in interface QueryResultQueryExceptionpublic long getLong(String column, long defaultValue) throws QueryException
getLong in interface QueryResultQueryExceptionpublic Object getObject(String column) throws QueryException
QueryResultgetObject in interface QueryResultQueryExceptionpublic String getString(int i) throws QueryException
getString in interface QueryResultQueryExceptionpublic String getString(String column) throws QueryException
getString in interface QueryResultQueryExceptionCopyright © 2011 Nuxeo SA. All Rights Reserved.