org.nuxeo.ecm.core.storage.sql.coremodel
Class SQLQueryResult
java.lang.Object
org.nuxeo.ecm.core.storage.sql.coremodel.SQLQueryResult
- All Implemented Interfaces:
- QueryResult
public class SQLQueryResult
- extends Object
- implements QueryResult
- Author:
- Florent Guillaume
SQLQueryResult
public SQLQueryResult(SQLSession session,
PartialList<Serializable> pl,
Boolean orderByPath,
long limit,
long offset)
count
public long count()
- Specified by:
count
in interface QueryResult
getTotalSize
public long getTotalSize()
- Description copied from interface:
QueryResult
- Returns the total size the query results would have if no limit and
offset was passed.
- Specified by:
getTotalSize
in interface QueryResult
- Returns:
- the total size
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interface QueryResult
getDocumentModels
public DocumentModelList getDocumentModels()
throws QueryException
- Specified by:
getDocumentModels
in interface QueryResult
- Throws:
QueryException
getDocuments
public DocumentIterator getDocuments(int start)
- Specified by:
getDocuments
in interface QueryResult
next
public boolean next()
- Specified by:
next
in interface QueryResult
getObject
public Object getObject()
throws QueryException
- Specified by:
getObject
in interface QueryResult
- Throws:
QueryException
row
public long row()
- Description copied from interface:
QueryResult
- Retrieves the current row number. (1 based index)
If there is no current row (no next() was called) returns 0
- Specified by:
row
in interface QueryResult
- Returns:
- the current row number
getBoolean
public boolean getBoolean(int i)
throws QueryException
- Specified by:
getBoolean
in interface QueryResult
- Throws:
QueryException
getBoolean
public boolean getBoolean(String column)
throws QueryException
- Specified by:
getBoolean
in interface QueryResult
- Throws:
QueryException
getDouble
public double getDouble(int i,
double defaultValue)
throws QueryException
- Specified by:
getDouble
in interface QueryResult
- Throws:
QueryException
getDouble
public double getDouble(String column,
double defaultValue)
throws QueryException
- Specified by:
getDouble
in interface QueryResult
- Throws:
QueryException
getLong
public long getLong(int i,
long defaultValue)
throws QueryException
- Specified by:
getLong
in interface QueryResult
- Throws:
QueryException
getLong
public long getLong(String column,
long defaultValue)
throws QueryException
- Specified by:
getLong
in interface QueryResult
- Throws:
QueryException
getObject
public Object getObject(String column)
throws QueryException
- Description copied from interface:
QueryResult
- Currently not implemented.
- Specified by:
getObject
in interface QueryResult
- Throws:
QueryException
getString
public String getString(int i)
throws QueryException
- Specified by:
getString
in interface QueryResult
- Throws:
QueryException
getString
public String getString(String column)
throws QueryException
- Specified by:
getString
in interface QueryResult
- Throws:
QueryException
Copyright © 2011 Nuxeo SAS. All Rights Reserved.