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 QueryResult
public long getTotalSize()
QueryResult
getTotalSize
in interface QueryResult
public boolean isEmpty()
isEmpty
in interface QueryResult
public DocumentModelList getDocumentModels() throws QueryException
getDocumentModels
in interface QueryResult
QueryException
public DocumentIterator getDocuments(int start)
getDocuments
in interface QueryResult
public boolean next()
next
in interface QueryResult
public Object getObject() throws QueryException
getObject
in interface QueryResult
QueryException
public long row()
QueryResult
If there is no current row (no next() was called) returns 0
row
in interface QueryResult
public boolean getBoolean(int i) throws QueryException
getBoolean
in interface QueryResult
QueryException
public boolean getBoolean(String column) throws QueryException
getBoolean
in interface QueryResult
QueryException
public double getDouble(int i, double defaultValue) throws QueryException
getDouble
in interface QueryResult
QueryException
public double getDouble(String column, double defaultValue) throws QueryException
getDouble
in interface QueryResult
QueryException
public long getLong(int i, long defaultValue) throws QueryException
getLong
in interface QueryResult
QueryException
public long getLong(String column, long defaultValue) throws QueryException
getLong
in interface QueryResult
QueryException
public Object getObject(String column) throws QueryException
QueryResult
getObject
in interface QueryResult
QueryException
public String getString(int i) throws QueryException
getString
in interface QueryResult
QueryException
public String getString(String column) throws QueryException
getString
in interface QueryResult
QueryException
Copyright © 2013 Nuxeo SA. All Rights Reserved.