test_class.declarator: ID_PROPERTY_NAME = "id"
test_class.modifier: private static final
test_class.original_string: private static final String ID_PROPERTY_NAME = "id";
test_class.type: String
test_class.var_name: ID_PROPERTY_NAME
test_class.declarator: NAME_PROPERTY_NAME = "name"
test_class.modifier: private static final
test_class.original_string: private static final String NAME_PROPERTY_NAME = "name";
test_class.type: String
test_class.var_name: NAME_PROPERTY_NAME
test_class.declarator: entityClass = TestClass.class
test_class.modifier: private final
test_class.original_string: private final Class<TestClass> entityClass = TestClass.class;
test_class.type: Class<TestClass>
test_class.var_name: entityClass
test_class.declarator: db = mock(DB.class)
test_class.modifier: private final
test_class.original_string: private final DB db = mock(DB.class);
test_class.type: DB
test_class.var_name: db
test_class.declarator: collection = mock(DBCollection.class)
test_class.modifier: private final
test_class.original_string: private final DBCollection collection = mock(DBCollection.class);
test_class.type: DBCollection
test_class.var_name: collection
test_class.declarator: dbDecoderFactory = mock(DBDecoderFactory.class)
test_class.modifier: private final
test_class.original_string: private final DBDecoderFactory dbDecoderFactory = mock(DBDecoderFactory.class);
test_class.type: DBDecoderFactory
test_class.var_name: dbDecoderFactory
test_class.declarator: datastore = mock(DatastoreImpl.class)
test_class.modifier: private final
test_class.original_string: private final DatastoreImpl datastore = mock(DatastoreImpl.class);
test_class.type: DatastoreImpl
test_class.var_name: datastore
test_class.declarator: queryTranslator = mock(MongoQueryTranslator.class)
test_class.modifier: private final
test_class.original_string: private final MongoQueryTranslator queryTranslator = mock(MongoQueryTranslator.class);
test_class.type: MongoQueryTranslator
test_class.var_name: queryTranslator
test_class.declarator: entityResolver = mock(EntityResolver.class)
test_class.modifier: private final
test_class.original_string: private final EntityResolver entityResolver = mock(EntityResolver.class);
test_class.type: EntityResolver
test_class.var_name: entityResolver
test_class.declarator: executor = new TestMongoQueryExecutor(
              db, queryTranslator, entityResolver)
test_class.modifier: private final
test_class.original_string: private final TestMongoQueryExecutor executor = new TestMongoQueryExecutor(
              db, queryTranslator, entityResolver);
test_class.type: TestMongoQueryExecutor
test_class.var_name: executor
test_class.declarator: writeResult = mock(WriteResult.class)
test_class.modifier: private final static
test_class.original_string: private final static WriteResult writeResult = mock(WriteResult.class);
test_class.type: WriteResult
test_class.var_name: writeResult
test_class.declarator: lastError = mock(CommandResult.class)
test_class.modifier: private final static
test_class.original_string: private final static CommandResult lastError = mock(CommandResult.class);
test_class.type: CommandResult
test_class.var_name: lastError
test_class.declarator: query = QueryBuilder
              .builderFor(this.entityClass)
              .add(Restrictions.eq(NAME_PROPERTY_NAME, "test"))
              .build()
test_class.modifier: private final
test_class.original_string: private final Query<TestClass, TestClass> query = QueryBuilder
              .builderFor(this.entityClass)
              .add(Restrictions.eq(NAME_PROPERTY_NAME, "test"))
              .build();
test_class.type: Query<TestClass, TestClass>
test_class.var_name: query
test_class.declarator: queryObject = new BasicDBObject()
test_class.modifier: private final
test_class.original_string: private final DBObject queryObject = new BasicDBObject();
test_class.type: DBObject
test_class.var_name: queryObject
test_class.declarator: idQuery = QueryBuilder
              .builderFor(entityClass, Long.class, ID_PROPERTY_NAME)
              .build()
test_class.modifier: private final
test_class.original_string: private final Query<TestClass, Long> idQuery = QueryBuilder
              .builderFor(entityClass, Long.class, ID_PROPERTY_NAME)
              .build();
test_class.type: Query<TestClass, Long>
test_class.var_name: idQuery
test_class.declarator: idQueryObject = new BasicDBObject()
test_class.modifier: private final
test_class.original_string: private final DBObject idQueryObject = new BasicDBObject();
test_class.type: DBObject
test_class.var_name: idQueryObject
test_class.declarator: tupleQuery = QueryBuilder
              .builderFor(entityClass, TestClassTuple.class, ID_PROPERTY_NAME)
              .build()
test_class.modifier: private final
test_class.original_string: private final Query<TestClass, TestClassTuple> tupleQuery = QueryBuilder
              .builderFor(entityClass, TestClassTuple.class, ID_PROPERTY_NAME)
              .build();
test_class.type: Query<TestClass, TestClassTuple>
test_class.var_name: tupleQuery
test_class.declarator: tupleQueryObject = new BasicDBObject()
test_class.modifier: private final
test_class.original_string: private final DBObject tupleQueryObject = new BasicDBObject();
test_class.type: DBObject
test_class.var_name: tupleQueryObject
test_class.declarator: tuple2Query = QueryBuilder
              .builderFor(entityClass, TestClassTuple2.class, ID_PROPERTY_NAME)
              .build()
test_class.modifier: private final
test_class.original_string: private final Query<TestClass, TestClassTuple2> tuple2Query = QueryBuilder
              .builderFor(entityClass, TestClassTuple2.class, ID_PROPERTY_NAME)
              .build();
test_class.type: Query<TestClass, TestClassTuple2>
test_class.var_name: tuple2Query
test_class.declarator: tuple2QueryObject = new BasicDBObject()
test_class.modifier: private final
test_class.original_string: private final DBObject tuple2QueryObject = new BasicDBObject();
test_class.type: DBObject
test_class.var_name: tuple2QueryObject
test_class.declarator: t1 = new TestClass(1L, "test1", 1, 2)
test_class.modifier: private final
test_class.original_string: private final TestClass t1 = new TestClass(1L, "test1", 1, 2);
test_class.type: TestClass
test_class.var_name: t1
test_class.declarator: tests = {
              new TestClass(1L, "test1", 1, 2),
              new TestClass(2L, "test2", 3, 4),
              new TestClass(3L, "test3", 5, 6),
              new TestClass(4L, "test4", 7, 8),
              new TestClass(5L, "test5", 9, 0),
              new TestClass(6L, "test6", 1, 2),
      }
test_class.modifier: private final
test_class.original_string: private final TestClass[] tests = {
              new TestClass(1L, "test1", 1, 2),
              new TestClass(2L, "test2", 3, 4),
              new TestClass(3L, "test3", 5, 6),
              new TestClass(4L, "test4", 7, 8),
              new TestClass(5L, "test5", 9, 0),
              new TestClass(6L, "test6", 1, 2),
      };
test_class.type: TestClass[]
test_class.var_name: tests
test_class.declarator: ids = new Long[tests.length]
test_class.modifier: private final
test_class.original_string: private final Long[] ids = new Long[tests.length];
test_class.type: Long[]
test_class.var_name: ids
test_class.file: seeking-mongo/src/test/java/com/eharmony/matching/seeking/executor/mongodb/MongoQueryExecutorTest.java
test_class.identifier: MongoQueryExecutorTest
test_case.body: @Test
      public void removeAll() {
          final DBCursor cursor = new MockDBCursor(this.collection, toDBObjectArray(this.tests));
          this.executor.cursor = cursor;
  
          Iterable<TestClass> found = this.executor.find(this.query);
          for (int i = 0; i < this.tests.length; i++) {
              assertEquals(this.tests[i], found.iterator().next());
          }
  
          this.executor.removeAll(TestClass.class);
          found = this.executor.find(this.query);
          assertFalse(found.iterator().hasNext());
      }
test_case.class_method_signature: MongoQueryExecutorTest.removeAll()
test_case.full_signature: @Test public void removeAll()
test_case.identifier: removeAll
test_case.invocations: toDBObjectArray find assertEquals next iterator removeAll find assertFalse hasNext iterator
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void removeAll()
focal_class.declarator: log = LogFactoryImpl.getLog(MongoQueryExecutor.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Log log = LogFactoryImpl.getLog(MongoQueryExecutor.class);
focal_class.type: Log
focal_class.var_name: log
focal_class.declarator: DEFAULT_MONGODB_BATCH_SIZE = 0
focal_class.modifier: private static final
focal_class.original_string: private static final int DEFAULT_MONGODB_BATCH_SIZE = 0;
focal_class.type: int
focal_class.var_name: DEFAULT_MONGODB_BATCH_SIZE
focal_class.declarator: queryTranslator
focal_class.modifier: private final
focal_class.original_string: private final MongoQueryTranslator queryTranslator;
focal_class.type: MongoQueryTranslator
focal_class.var_name: queryTranslator
focal_class.declarator: mapper
focal_class.modifier: private final
focal_class.original_string: private final Mapper mapper;
focal_class.type: Mapper
focal_class.var_name: mapper
focal_class.declarator: cache
focal_class.modifier: private final
focal_class.original_string: private final EntityCache cache;
focal_class.type: EntityCache
focal_class.var_name: cache
focal_class.declarator: db
focal_class.modifier: private final
focal_class.original_string: private final DB db;
focal_class.type: DB
focal_class.var_name: db
focal_class.declarator: entityResolver
focal_class.modifier: private final
focal_class.original_string: private final EntityResolver entityResolver;
focal_class.type: EntityResolver
focal_class.var_name: entityResolver
focal_class.declarator: collections
focal_class.modifier: private final
focal_class.original_string: private final Map<Class<?>,DBCollection> collections;
focal_class.type: Map<Class<?>,DBCollection>
focal_class.var_name: collections
focal_class.declarator: writeConcern
focal_class.modifier: private final
focal_class.original_string: private final WriteConcern writeConcern;
focal_class.type: WriteConcern
focal_class.var_name: writeConcern
focal_class.declarator: mappedClasses = Sets.newHashSet()
focal_class.modifier: private final
focal_class.original_string: private final Set<Class<?>> mappedClasses = Sets.newHashSet();
focal_class.type: Set<Class<?>>
focal_class.var_name: mappedClasses
focal_class.declarator: batchSize
focal_class.modifier: private final
focal_class.original_string: private final int batchSize;
focal_class.type: int
focal_class.var_name: batchSize
focal_class.file: seeking-mongo/src/main/java/com/eharmony/matching/seeking/executor/mongodb/MongoQueryExecutor.java
focal_class.identifier: MongoQueryExecutor
focal_class.interfaces: implements QueryExecutor
focal_class.class_method_signature: MongoQueryExecutor.MongoQueryExecutor(
              DB db,
              WriteConcern writeConcern,
              MongoQueryTranslator queryTranslator,
              EntityResolver entityResolver,
              final int batchSize)
focal_class.full_signature: public  MongoQueryExecutor(
              DB db,
              WriteConcern writeConcern,
              MongoQueryTranslator queryTranslator,
              EntityResolver entityResolver,
              final int batchSize)
focal_class.identifier: MongoQueryExecutor
focal_class.modifiers: public
focal_class.parameters: (
              DB db,
              WriteConcern writeConcern,
              MongoQueryTranslator queryTranslator,
              EntityResolver entityResolver,
              final int batchSize)
focal_class.signature:  MongoQueryExecutor(
              DB db,
              WriteConcern writeConcern,
              MongoQueryTranslator queryTranslator,
              EntityResolver entityResolver,
              final int batchSize)
focal_class.class_method_signature: MongoQueryExecutor.MongoQueryExecutor(
              DB db,
              WriteConcern writeConcern,
              MongoQueryTranslator queryTranslator,
              EntityResolver entityResolver)
focal_class.full_signature: public  MongoQueryExecutor(
              DB db,
              WriteConcern writeConcern,
              MongoQueryTranslator queryTranslator,
              EntityResolver entityResolver)
focal_class.identifier: MongoQueryExecutor
focal_class.modifiers: public
focal_class.parameters: (
              DB db,
              WriteConcern writeConcern,
              MongoQueryTranslator queryTranslator,
              EntityResolver entityResolver)
focal_class.signature:  MongoQueryExecutor(
              DB db,
              WriteConcern writeConcern,
              MongoQueryTranslator queryTranslator,
              EntityResolver entityResolver)
focal_class.class_method_signature: MongoQueryExecutor.MongoQueryExecutor(
              Mongo mongo,
              String database,
              WriteConcern writeConcern,
              MongoQueryTranslator queryTranslator,
              EntityResolver entityResolver)
focal_class.full_signature: public  MongoQueryExecutor(
              Mongo mongo,
              String database,
              WriteConcern writeConcern,
              MongoQueryTranslator queryTranslator,
              EntityResolver entityResolver)
focal_class.identifier: MongoQueryExecutor
focal_class.modifiers: public
focal_class.parameters: (
              Mongo mongo,
              String database,
              WriteConcern writeConcern,
              MongoQueryTranslator queryTranslator,
              EntityResolver entityResolver)
focal_class.signature:  MongoQueryExecutor(
              Mongo mongo,
              String database,
              WriteConcern writeConcern,
              MongoQueryTranslator queryTranslator,
              EntityResolver entityResolver)
focal_class.class_method_signature: MongoQueryExecutor.MongoQueryExecutor(
              Mongo mongo,
              String database,
              WriteConcern writeConcern,
              MongoQueryTranslator queryTranslator,
              EntityResolver entityResolver,
              final int batchSize)
focal_class.full_signature: public  MongoQueryExecutor(
              Mongo mongo,
              String database,
              WriteConcern writeConcern,
              MongoQueryTranslator queryTranslator,
              EntityResolver entityResolver,
              final int batchSize)
focal_class.identifier: MongoQueryExecutor
focal_class.modifiers: public
focal_class.parameters: (
              Mongo mongo,
              String database,
              WriteConcern writeConcern,
              MongoQueryTranslator queryTranslator,
              EntityResolver entityResolver,
              final int batchSize)
focal_class.signature:  MongoQueryExecutor(
              Mongo mongo,
              String database,
              WriteConcern writeConcern,
              MongoQueryTranslator queryTranslator,
              EntityResolver entityResolver,
              final int batchSize)
focal_class.class_method_signature: MongoQueryExecutor.getDB()
focal_class.full_signature: public DB getDB()
focal_class.identifier: getDB
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: DB
focal_class.signature: DB getDB()
focal_class.class_method_signature: MongoQueryExecutor.getCollection(Class<?> entityClass)
focal_class.full_signature: public DBCollection getCollection(Class<?> entityClass)
focal_class.identifier: getCollection
focal_class.modifiers: public
focal_class.parameters: (Class<?> entityClass)
focal_class.return: DBCollection
focal_class.signature: DBCollection getCollection(Class<?> entityClass)
focal_class.class_method_signature: MongoQueryExecutor.remove(Query<T, R> query)
focal_class.full_signature: public void remove(Query<T, R> query)
focal_class.identifier: remove
focal_class.modifiers: public
focal_class.parameters: (Query<T, R> query)
focal_class.return: void
focal_class.signature: void remove(Query<T, R> query)
focal_class.class_method_signature: MongoQueryExecutor.removeAll(Class<?> entityClass)
focal_class.full_signature: public void removeAll(Class<?> entityClass)
focal_class.identifier: removeAll
focal_class.modifiers: public
focal_class.parameters: (Class<?> entityClass)
focal_class.return: void
focal_class.signature: void removeAll(Class<?> entityClass)
focal_class.class_method_signature: MongoQueryExecutor.translate(Query<T, R> query)
focal_class.full_signature: private DBCursor translate(Query<T, R> query)
focal_class.identifier: translate
focal_class.modifiers: private
focal_class.parameters: (Query<T, R> query)
focal_class.return: DBCursor
focal_class.signature: DBCursor translate(Query<T, R> query)
focal_class.class_method_signature: MongoQueryExecutor.mapClasses(Class<?>... classes)
focal_class.full_signature: private void mapClasses(Class<?>... classes)
focal_class.identifier: mapClasses
focal_class.modifiers: private
focal_class.parameters: (Class<?>... classes)
focal_class.return: void
focal_class.signature: void mapClasses(Class<?>... classes)
focal_class.class_method_signature: MongoQueryExecutor.fetch(DBCursor cursor, Query<T, R> query)
focal_class.full_signature: private MongoResults<R> fetch(DBCursor cursor, Query<T, R> query)
focal_class.identifier: fetch
focal_class.modifiers: private
focal_class.parameters: (DBCursor cursor, Query<T, R> query)
focal_class.return: MongoResults<R>
focal_class.signature: MongoResults<R> fetch(DBCursor cursor, Query<T, R> query)
focal_class.class_method_signature: MongoQueryExecutor.find(DBCollection collection, DBObject query, DBObject fields)
focal_class.full_signature: @VisibleForTesting protected DBCursor find(DBCollection collection, DBObject query, DBObject fields)
focal_class.identifier: find
focal_class.modifiers: @VisibleForTesting protected
focal_class.parameters: (DBCollection collection, DBObject query, DBObject fields)
focal_class.return: DBCursor
focal_class.signature: DBCursor find(DBCollection collection, DBObject query, DBObject fields)
focal_class.class_method_signature: MongoQueryExecutor.save(DBCollection collection, DBObject entity)
focal_class.full_signature: @VisibleForTesting protected WriteResult save(DBCollection collection, DBObject entity)
focal_class.identifier: save
focal_class.modifiers: @VisibleForTesting protected
focal_class.parameters: (DBCollection collection, DBObject entity)
focal_class.return: WriteResult
focal_class.signature: WriteResult save(DBCollection collection, DBObject entity)
focal_class.class_method_signature: MongoQueryExecutor.find(Query<T, R> query)
focal_class.full_signature: @Override public Iterable<R> find(Query<T, R> query)
focal_class.identifier: find
focal_class.modifiers: @Override public
focal_class.parameters: (Query<T, R> query)
focal_class.return: Iterable<R>
focal_class.signature: Iterable<R> find(Query<T, R> query)
focal_class.class_method_signature: MongoQueryExecutor.findOne(Query<T, R> query)
focal_class.full_signature: @Override public R findOne(Query<T, R> query)
focal_class.identifier: findOne
focal_class.modifiers: @Override public
focal_class.parameters: (Query<T, R> query)
focal_class.return: R
focal_class.signature: R findOne(Query<T, R> query)
focal_class.class_method_signature: MongoQueryExecutor.save(T entity)
focal_class.full_signature: @Override public T save(T entity)
focal_class.identifier: save
focal_class.modifiers: @Override public
focal_class.parameters: (T entity)
focal_class.return: T
focal_class.signature: T save(T entity)
focal_class.class_method_signature: MongoQueryExecutor.save(Iterable<T> entities)
focal_class.full_signature: @Override public Iterable<T> save(Iterable<T> entities)
focal_class.identifier: save
focal_class.modifiers: @Override public
focal_class.parameters: (Iterable<T> entities)
focal_class.return: Iterable<T>
focal_class.signature: Iterable<T> save(Iterable<T> entities)
focal_method.body: public void removeAll(Class<?> entityClass) {
          try {
              getCollection(entityClass).remove(
                      new BasicDBObject(),
                      this.writeConcern);
          } catch (final MongoException mx) {
              throw new DataStoreException(mx.getMessage(), mx);
          }
      }
focal_method.class_method_signature: MongoQueryExecutor.removeAll(Class<?> entityClass)
focal_method.full_signature: public void removeAll(Class<?> entityClass)
focal_method.identifier: removeAll
focal_method.invocations: remove getCollection getMessage
focal_method.modifiers: public
focal_method.parameters: (Class<?> entityClass)
focal_method.return: void
focal_method.signature: void removeAll(Class<?> entityClass)