test_class.declarator: virtualMachineGenerator
test_class.modifier: private
test_class.original_string: private VirtualMachineGenerator virtualMachineGenerator;
test_class.type: VirtualMachineGenerator
test_class.var_name: virtualMachineGenerator
test_class.declarator: virtualApplianceGenerator
test_class.modifier: private
test_class.original_string: private VirtualApplianceGenerator virtualApplianceGenerator;
test_class.type: VirtualApplianceGenerator
test_class.var_name: virtualApplianceGenerator
test_class.declarator: vapp
test_class.modifier: private
test_class.original_string: private VirtualAppliance vapp;
test_class.type: VirtualAppliance
test_class.var_name: vapp
test_class.declarator: vmachine
test_class.modifier: private
test_class.original_string: private VirtualMachine vmachine;
test_class.type: VirtualMachine
test_class.var_name: vmachine
test_class.declarator: virtualImageGenerator
test_class.modifier: private
test_class.original_string: private VirtualMachineTemplateGenerator virtualImageGenerator;
test_class.type: VirtualMachineTemplateGenerator
test_class.var_name: virtualImageGenerator
test_class.declarator: vimage
test_class.modifier: private
test_class.original_string: private VirtualMachineTemplate vimage;
test_class.type: VirtualMachineTemplate
test_class.var_name: vimage
test_class.declarator: categoryGenerator
test_class.modifier: private
test_class.original_string: private CategoryGenerator categoryGenerator;
test_class.type: CategoryGenerator
test_class.var_name: categoryGenerator
test_class.file: model/src/test/java/com/abiquo/server/core/cloud/NodeVirtualImageDAOTest.java
test_class.identifier: NodeVirtualImageDAOTest
test_class.superclass: extends
      DefaultDAOTestBase<NodeVirtualImageDAO, NodeVirtualImage>
test_case.body: @Test
      public void testFindByVirtualImage()
      {
          NodeVirtualImage nvi1 = eg().createInstance(vapp, vmachine);
          NodeVirtualImage nvi2 = eg().createInstance(vapp, vmachine);
          NodeVirtualImage nvi3 = eg().createInstance(vapp, vmachine);
  
          ds().persistAll(nvi1, nvi2, nvi3);
  
          NodeVirtualImageDAO nodeVirtualImageDAO = createDaoForRollbackTransaction();
  
          List<NodeVirtualImage> result =
              nodeVirtualImageDAO.findByVirtualImage(vmachine.getVirtualMachineTemplate());
  
          assertNotNull(result);
          assertEquals(result.size(), 3);
      }
test_case.class_method_signature: NodeVirtualImageDAOTest.testFindByVirtualImage()
test_case.full_signature: @Test public void testFindByVirtualImage()
test_case.identifier: testFindByVirtualImage
test_case.invocations: createInstance eg createInstance eg createInstance eg persistAll ds createDaoForRollbackTransaction findByVirtualImage getVirtualMachineTemplate assertNotNull assertEquals size
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testFindByVirtualImage()
focal_class.declarator: MY_QUERY =
          "select nvi.virtualMachine.id from VirtualAppliance v inner join v.nodesVirtualImage nvi where v.id =:vappid"
focal_class.modifier: static final
focal_class.original_string: static final String MY_QUERY =
          "select nvi.virtualMachine.id from VirtualAppliance v inner join v.nodesVirtualImage nvi where v.id =:vappid";
focal_class.type: String
focal_class.var_name: MY_QUERY
focal_class.file: model/src/main/java/com/abiquo/server/core/cloud/NodeVirtualImageDAO.java
focal_class.identifier: NodeVirtualImageDAO
focal_class.class_method_signature: NodeVirtualImageDAO.NodeVirtualImageDAO()
focal_class.full_signature: public  NodeVirtualImageDAO()
focal_class.identifier: NodeVirtualImageDAO
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  NodeVirtualImageDAO()
focal_class.class_method_signature: NodeVirtualImageDAO.NodeVirtualImageDAO(final EntityManager entityManager)
focal_class.full_signature: public  NodeVirtualImageDAO(final EntityManager entityManager)
focal_class.identifier: NodeVirtualImageDAO
focal_class.modifiers: public
focal_class.parameters: (final EntityManager entityManager)
focal_class.signature:  NodeVirtualImageDAO(final EntityManager entityManager)
focal_class.class_method_signature: NodeVirtualImageDAO.sameVirtualMachine(final VirtualMachine vmachine)
focal_class.full_signature: private Criterion sameVirtualMachine(final VirtualMachine vmachine)
focal_class.identifier: sameVirtualMachine
focal_class.modifiers: private
focal_class.parameters: (final VirtualMachine vmachine)
focal_class.return: Criterion
focal_class.signature: Criterion sameVirtualMachine(final VirtualMachine vmachine)
focal_class.class_method_signature: NodeVirtualImageDAO.findVirtualAppliance(final VirtualMachine vmachine)
focal_class.full_signature: public VirtualAppliance findVirtualAppliance(final VirtualMachine vmachine)
focal_class.identifier: findVirtualAppliance
focal_class.modifiers: public
focal_class.parameters: (final VirtualMachine vmachine)
focal_class.return: VirtualAppliance
focal_class.signature: VirtualAppliance findVirtualAppliance(final VirtualMachine vmachine)
focal_class.class_method_signature: NodeVirtualImageDAO.findByVirtualMachine(final VirtualMachine vmachine)
focal_class.full_signature: public NodeVirtualImage findByVirtualMachine(final VirtualMachine vmachine)
focal_class.identifier: findByVirtualMachine
focal_class.modifiers: public
focal_class.parameters: (final VirtualMachine vmachine)
focal_class.return: NodeVirtualImage
focal_class.signature: NodeVirtualImage findByVirtualMachine(final VirtualMachine vmachine)
focal_class.class_method_signature: NodeVirtualImageDAO.sameEnterprise(final Enterprise enterprise)
focal_class.full_signature: private Criteria sameEnterprise(final Enterprise enterprise)
focal_class.identifier: sameEnterprise
focal_class.modifiers: private
focal_class.parameters: (final Enterprise enterprise)
focal_class.return: Criteria
focal_class.signature: Criteria sameEnterprise(final Enterprise enterprise)
focal_class.class_method_signature: NodeVirtualImageDAO.findByEnterprise(final Enterprise enterprise)
focal_class.full_signature: public List<NodeVirtualImage> findByEnterprise(final Enterprise enterprise)
focal_class.identifier: findByEnterprise
focal_class.modifiers: public
focal_class.parameters: (final Enterprise enterprise)
focal_class.return: List<NodeVirtualImage>
focal_class.signature: List<NodeVirtualImage> findByEnterprise(final Enterprise enterprise)
focal_class.class_method_signature: NodeVirtualImageDAO.findByVirtualImage(final VirtualMachineTemplate virtualImage)
focal_class.full_signature: public List<NodeVirtualImage> findByVirtualImage(final VirtualMachineTemplate virtualImage)
focal_class.identifier: findByVirtualImage
focal_class.modifiers: public
focal_class.parameters: (final VirtualMachineTemplate virtualImage)
focal_class.return: List<NodeVirtualImage>
focal_class.signature: List<NodeVirtualImage> findByVirtualImage(final VirtualMachineTemplate virtualImage)
focal_class.class_method_signature: NodeVirtualImageDAO.sameVirtualImage(final VirtualMachineTemplate virtualImage)
focal_class.full_signature: private Criteria sameVirtualImage(final VirtualMachineTemplate virtualImage)
focal_class.identifier: sameVirtualImage
focal_class.modifiers: private
focal_class.parameters: (final VirtualMachineTemplate virtualImage)
focal_class.return: Criteria
focal_class.signature: Criteria sameVirtualImage(final VirtualMachineTemplate virtualImage)
focal_class.class_method_signature: NodeVirtualImageDAO.findByVirtualAppliance(final VirtualAppliance virtualAppliance)
focal_class.full_signature: public List<NodeVirtualImage> findByVirtualAppliance(final VirtualAppliance virtualAppliance)
focal_class.identifier: findByVirtualAppliance
focal_class.modifiers: public
focal_class.parameters: (final VirtualAppliance virtualAppliance)
focal_class.return: List<NodeVirtualImage>
focal_class.signature: List<NodeVirtualImage> findByVirtualAppliance(final VirtualAppliance virtualAppliance)
focal_class.class_method_signature: NodeVirtualImageDAO.sameVirtualAppliance(final VirtualAppliance virtualAppliance)
focal_class.full_signature: private Criteria sameVirtualAppliance(final VirtualAppliance virtualAppliance)
focal_class.identifier: sameVirtualAppliance
focal_class.modifiers: private
focal_class.parameters: (final VirtualAppliance virtualAppliance)
focal_class.return: Criteria
focal_class.signature: Criteria sameVirtualAppliance(final VirtualAppliance virtualAppliance)
focal_class.class_method_signature: NodeVirtualImageDAO.findVirtualMachineIdsByVirtualAppliance(
          final VirtualAppliance virtualAppliance)
focal_class.full_signature: public List<Integer> findVirtualMachineIdsByVirtualAppliance(
          final VirtualAppliance virtualAppliance)
focal_class.identifier: findVirtualMachineIdsByVirtualAppliance
focal_class.modifiers: public
focal_class.parameters: (
          final VirtualAppliance virtualAppliance)
focal_class.return: List<Integer>
focal_class.signature: List<Integer> findVirtualMachineIdsByVirtualAppliance(
          final VirtualAppliance virtualAppliance)
focal_class.superclass: extends DefaultDAOBase<Integer, NodeVirtualImage>
focal_method.body: public List<NodeVirtualImage> findByVirtualImage(final VirtualMachineTemplate virtualImage)
      {
          Criteria criteria = sameVirtualImage(virtualImage);
          return getResultList(criteria);
      }
focal_method.class_method_signature: NodeVirtualImageDAO.findByVirtualImage(final VirtualMachineTemplate virtualImage)
focal_method.full_signature: public List<NodeVirtualImage> findByVirtualImage(final VirtualMachineTemplate virtualImage)
focal_method.identifier: findByVirtualImage
focal_method.invocations: sameVirtualImage getResultList
focal_method.modifiers: public
focal_method.parameters: (final VirtualMachineTemplate virtualImage)
focal_method.return: List<NodeVirtualImage>
focal_method.signature: List<NodeVirtualImage> findByVirtualImage(final VirtualMachineTemplate virtualImage)