|
||||||||||
| 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 parameters| Method Detail |
|---|
public void createDistinctRequest()
throws SitoolsException
DatabaseRequest
createDistinctRequest in interface DatabaseRequestcreateDistinctRequest in class MongoDBDatabaseRequestSitoolsException - when occurspublic int getTotalCount()
DatabaseRequest
getTotalCount in interface DatabaseRequestgetTotalCount in class MongoDBDatabaseRequestpublic int getCount()
DatabaseRequest
getCount in interface DatabaseRequestgetCount in class MongoDBDatabaseRequest
public boolean nextResult()
throws SitoolsException
DatabaseRequest
nextResult in interface DatabaseRequestnextResult in class MongoDBDatabaseRequesttrue 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 set
public Record getRecord()
throws SitoolsException
DatabaseRequestResultSet in a Record object
getRecord in interface DatabaseRequestgetRecord in class MongoDBDatabaseRequestRecord of the current ResultSet
SitoolsException - if a database access error occurs or this method is called on a closed result set
public void close()
throws SitoolsException
close in interface DatabaseRequestclose in class MongoDBDatabaseRequestSitoolsException - 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 | |||||||||