test_class.declarator: gqlService
test_class.modifier: @Inject
test_class.original_string: @Inject
      GqlService gqlService;
test_class.type: GqlService
test_class.var_name: gqlService
test_class.file: gae-studio/gae-studio-server/src/test/java/com/arcbees/gaestudio/server/service/visualizer/GqlServiceImplTest.java
test_class.identifier: GqlServiceImplTest
test_class.superclass: extends GaeTestBase
test_case.body: @Test
      public void executeSelectReturnAllEntities() {
          createCars();
  
          Collection<Entity> result = gqlService.executeGqlRequest("SELECT * FROM Car", null, null);
  
          assertEquals(3, result.size());
      }
test_case.class_method_signature: GqlServiceImplTest.executeSelectReturnAllEntities()
test_case.full_signature: @Test public void executeSelectReturnAllEntities()
test_case.identifier: executeSelectReturnAllEntities
test_case.invocations: createCars executeGqlRequest assertEquals size
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void executeSelectReturnAllEntities()
focal_class.declarator: datastoreHelper
focal_class.modifier: private final
focal_class.original_string: private final DatastoreHelper datastoreHelper;
focal_class.type: DatastoreHelper
focal_class.var_name: datastoreHelper
focal_class.file: gae-studio/gae-studio-server/src/main/java/com/arcbees/gaestudio/server/service/visualizer/GqlServiceImpl.java
focal_class.identifier: GqlServiceImpl
focal_class.interfaces: implements GqlService
focal_class.class_method_signature: GqlServiceImpl.GqlServiceImpl(
              DatastoreHelper datastoreHelper)
focal_class.full_signature: @Inject  GqlServiceImpl(
              DatastoreHelper datastoreHelper)
focal_class.identifier: GqlServiceImpl
focal_class.modifiers: @Inject
focal_class.parameters: (
              DatastoreHelper datastoreHelper)
focal_class.signature:  GqlServiceImpl(
              DatastoreHelper datastoreHelper)
focal_class.class_method_signature: GqlServiceImpl.executeGqlRequest(String gqlRequest, Integer offset, Integer limit)
focal_class.full_signature: @Override public Collection<Entity> executeGqlRequest(String gqlRequest, Integer offset, Integer limit)
focal_class.identifier: executeGqlRequest
focal_class.modifiers: @Override public
focal_class.parameters: (String gqlRequest, Integer offset, Integer limit)
focal_class.return: Collection<Entity>
focal_class.signature: Collection<Entity> executeGqlRequest(String gqlRequest, Integer offset, Integer limit)
focal_method.body: @Override
      public Collection<Entity> executeGqlRequest(String gqlRequest, Integer offset, Integer limit) {
          AppEngineHelper.disableApiHooks();
          FetchOptions fetchOptions = FetchOptions.Builder.withDefaults();
          GqlQuery gql;
  
          if (offset != null) {
              fetchOptions.offset(offset);
          }
          if (limit != null) {
              fetchOptions.limit(limit);
          }
  
          try {
              gql = new GqlQuery(gqlRequest);
  
              return datastoreHelper.queryOnAllNamespaces(gql.query(), fetchOptions);
          } catch (IllegalArgumentException | NullPointerException e) {
              throw new InvalidGqlSyntaxException();
          }
      }
focal_method.class_method_signature: GqlServiceImpl.executeGqlRequest(String gqlRequest, Integer offset, Integer limit)
focal_method.full_signature: @Override public Collection<Entity> executeGqlRequest(String gqlRequest, Integer offset, Integer limit)
focal_method.identifier: executeGqlRequest
focal_method.invocations: disableApiHooks withDefaults offset limit queryOnAllNamespaces query
focal_method.modifiers: @Override public
focal_method.parameters: (String gqlRequest, Integer offset, Integer limit)
focal_method.return: Collection<Entity>
focal_method.signature: Collection<Entity> executeGqlRequest(String gqlRequest, Integer offset, Integer limit)