|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.cnes.sitools.dataset.database.mongodb.MongoDBDatabaseRequest
fr.cnes.sitools.dataset.database.mongodb.MongoDBDistinctDatabaseRequest
public class MongoDBDistinctDatabaseRequest
Create a request NOSQL
Constructor Summary | |
---|---|
MongoDBDistinctDatabaseRequest(DatabaseRequestParameters params)
Create a SQLDatabaseRequest |
Method Summary | |
---|---|
void |
close()
Close the current request |
void |
createDistinctRequest()
Create a SQL Distinct request |
int |
getCount()
Get the number of results in the current request for pagination purpose |
Record |
getRecord()
Return the current ResultSet in a Record object |
int |
getTotalCount()
get the number of records in the current request |
boolean |
nextResult()
Move the cursor on the next result. |
Methods inherited from class fr.cnes.sitools.dataset.database.mongodb.MongoDBDatabaseRequest |
---|
buildURI, calculateTotalCountFromBase, checkRequest, createMongoDBRequestModel, createRequest, getDistinctRequestAsString, getKeysAsString, getMaxResultsToSend, getPageSize, getPrimaryKeys, getRequestAsString, getSelectedPrimaryKey, getStartIndex, isCountDone, isLastResult, setAttributeValues |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MongoDBDistinctDatabaseRequest(DatabaseRequestParameters params)
SQLDatabaseRequest
params
- the request parametersMethod Detail |
---|
public void createDistinctRequest() throws SitoolsException
DatabaseRequest
createDistinctRequest
in interface DatabaseRequest
createDistinctRequest
in class MongoDBDatabaseRequest
SitoolsException
- when occurspublic int getTotalCount()
DatabaseRequest
getTotalCount
in interface DatabaseRequest
getTotalCount
in class MongoDBDatabaseRequest
public int getCount()
DatabaseRequest
getCount
in interface DatabaseRequest
getCount
in class MongoDBDatabaseRequest
public boolean nextResult() throws SitoolsException
DatabaseRequest
nextResult
in interface DatabaseRequest
nextResult
in class MongoDBDatabaseRequest
true
if the new current row is valid; false
if there are no more rows
SitoolsException
- if a database access error occurs or this method is called on a closed result setpublic Record getRecord() throws SitoolsException
DatabaseRequest
ResultSet
in a Record
object
getRecord
in interface DatabaseRequest
getRecord
in class MongoDBDatabaseRequest
Record
of the current ResultSet
SitoolsException
- if a database access error occurs or this method is called on a closed result setpublic void close() throws SitoolsException
close
in interface DatabaseRequest
close
in class MongoDBDatabaseRequest
SitoolsException
- if there is an error while closing the JDBC request
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |