Package com.massivecraft.mcore.xlib.mongodb

Examples of com.massivecraft.mcore.xlib.mongodb.DBCollection.find()


 
  @Override
  public boolean containsId(Coll<?> coll, String id)
  {
    DBCollection dbcoll = fixColl(coll);
    DBCursor cursor = dbcoll.find(new BasicDBObject(ID_FIELD, id));
    return cursor.count() != 0;
  }
 
  @Override
  public Long getMtime(Coll<?> coll, String id)
View Full Code Here


  {
    List<String> ret = null;
   
    DBCollection dbcoll = fixColl(coll);
   
    DBCursor cursor = dbcoll.find(dboEmpty, dboKeysId);
    try
    {
      ret = new ArrayList<String>(cursor.count());
      while(cursor.hasNext())
      {
View Full Code Here

  {
    Map<String, Long> ret = null;
   
    DBCollection dbcoll = fixColl(coll);
   
    DBCursor cursor = dbcoll.find(dboEmpty, dboKeysIdandMtime);
    try
    {
      ret = new HashMap<String, Long>(cursor.count());
      while(cursor.hasNext())
      {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.