Package net.jumperz.mongo

Examples of net.jumperz.mongo.MFindQuery


String labelString = "";
MFindAction findAction = dataManager.getLastFindAction();
int itemCount = dataManager.getDocumentDataList().size();
if( itemCount > 0 && findAction != null )
  {
  MFindQuery findQuery = findAction.getFindQuery();
  int start = 1;
  int end = 0;
  int skip = findQuery.getSkipArg();
  if( skip == -1 )
    {
    skip = 0;
    }
  start = skip + 1;
  int limit = findQuery.getLimitArg();
  if( itemCount < limit )
    {
    limit = itemCount;
    }
  if( limit >= 0 )
View Full Code Here


document = null;
sortOrder = sort_order_default;
lastFindAction = action;
findHistory.add( action.getActionStr() );

MFindQuery findQuery = MMongoUtil.parseFindQuery( db, action.getActionStr() );
int limit = findQuery.getLimitArg();

DBCursor cursor = action.getCursor();
maybeHasMoreResults = true;
for( int i = 0; i < maxFindResults; ++i )
  {
View Full Code Here

  {
  return false;
  }
else
  {
  MFindQuery fq = lastFindAction.getFindQuery();
  MFindQuery prevQuery = MMongoUtil.getPrevItemsQuery( db, fq, maxFindResults );
  if( prevQuery == null )
    {
    return false;
    }
  else
View Full Code Here

  return;
  }
else
  {
    //hasMoreResults is true here
  MFindQuery fq = lastFindAction.getFindQuery();
  MFindQuery nextQuery = MMongoUtil.getNextItemsQuery( db, fq, maxFindResults );
  debug( nextQuery );
  MActionManager.getInstance().executeAction( MMongoUtil.findQueryToString( db, nextQuery ) );
  }
}
View Full Code Here

  {
  return;
  }
else
  {
  MFindQuery fq = lastFindAction.getFindQuery();
  MFindQuery prevQuery = MMongoUtil.getPrevItemsQuery( db, fq, maxFindResults );
  if( prevQuery != null )
    {
    MActionManager.getInstance().executeAction( MMongoUtil.findQueryToString( db, prevQuery ) );
    }
  }
View Full Code Here

TOP

Related Classes of net.jumperz.mongo.MFindQuery

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.