test_class.file: model/src/test/java/com/abiquo/server/core/pricing/PricingTemplateDAOTest.java
test_class.identifier: PricingTemplateDAOTest
test_class.superclass: extends DefaultDAOTestBase<PricingTemplateDAO, PricingTemplate>
test_case.body: @Test
      public void findAllPricingTemplatesByCurrency()
      {
          PricingTemplate pt1 = eg().createInstance("pt1");
          PricingTemplate pt2 = eg().createInstance("pt2");
  
          ds().persistAll(pt1.getCurrency(), pt2.getCurrency(), pt1, pt2);
  
          PricingTemplateDAO dao = createDaoForRollbackTransaction();
  
          Collection<PricingTemplate> pts =
              dao.findPricingTemplatesByCurrency(pt1.getCurrency().getId());
          AssertEx.assertSize(pts, 1);
          pts = dao.findPricingTemplatesByCurrency(pt2.getCurrency().getId());
          AssertEx.assertSize(pts, 1);
  
      }
test_case.class_method_signature: PricingTemplateDAOTest.findAllPricingTemplatesByCurrency()
test_case.full_signature: @Test public void findAllPricingTemplatesByCurrency()
test_case.identifier: findAllPricingTemplatesByCurrency
test_case.invocations: createInstance eg createInstance eg persistAll ds getCurrency getCurrency createDaoForRollbackTransaction findPricingTemplatesByCurrency getId getCurrency assertSize findPricingTemplatesByCurrency getId getCurrency assertSize
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void findAllPricingTemplatesByCurrency()
focal_class.file: model/src/main/java/com/abiquo/server/core/pricing/PricingTemplateDAO.java
focal_class.identifier: PricingTemplateDAO
focal_class.class_method_signature: PricingTemplateDAO.PricingTemplateDAO()
focal_class.full_signature: public  PricingTemplateDAO()
focal_class.identifier: PricingTemplateDAO
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  PricingTemplateDAO()
focal_class.class_method_signature: PricingTemplateDAO.PricingTemplateDAO(final EntityManager entityManager)
focal_class.full_signature: public  PricingTemplateDAO(final EntityManager entityManager)
focal_class.identifier: PricingTemplateDAO
focal_class.modifiers: public
focal_class.parameters: (final EntityManager entityManager)
focal_class.signature:  PricingTemplateDAO(final EntityManager entityManager)
focal_class.class_method_signature: PricingTemplateDAO.sameName(final String name)
focal_class.full_signature: public static Criterion sameName(final String name)
focal_class.identifier: sameName
focal_class.modifiers: public static
focal_class.parameters: (final String name)
focal_class.return: Criterion
focal_class.signature: Criterion sameName(final String name)
focal_class.class_method_signature: PricingTemplateDAO.existAnyOtherPricingTempWithName(final PricingTemplate pt, final String name)
focal_class.full_signature: public boolean existAnyOtherPricingTempWithName(final PricingTemplate pt, final String name)
focal_class.identifier: existAnyOtherPricingTempWithName
focal_class.modifiers: public
focal_class.parameters: (final PricingTemplate pt, final String name)
focal_class.return: boolean
focal_class.signature: boolean existAnyOtherPricingTempWithName(final PricingTemplate pt, final String name)
focal_class.class_method_signature: PricingTemplateDAO.filterBy(final String filter)
focal_class.full_signature: private Criterion filterBy(final String filter)
focal_class.identifier: filterBy
focal_class.modifiers: private
focal_class.parameters: (final String filter)
focal_class.return: Criterion
focal_class.signature: Criterion filterBy(final String filter)
focal_class.class_method_signature: PricingTemplateDAO.existAnyPricTempWithSameName(final String name)
focal_class.full_signature: public boolean existAnyPricTempWithSameName(final String name)
focal_class.identifier: existAnyPricTempWithSameName
focal_class.modifiers: public
focal_class.parameters: (final String name)
focal_class.return: boolean
focal_class.signature: boolean existAnyPricTempWithSameName(final String name)
focal_class.class_method_signature: PricingTemplateDAO.find(final String filter, final String orderBy,
          final boolean desc, final Integer offset, Integer numResults, final Integer startwith)
focal_class.full_signature: public Collection<PricingTemplate> find(final String filter, final String orderBy,
          final boolean desc, final Integer offset, Integer numResults, final Integer startwith)
focal_class.identifier: find
focal_class.modifiers: public
focal_class.parameters: (final String filter, final String orderBy,
          final boolean desc, final Integer offset, Integer numResults, final Integer startwith)
focal_class.return: Collection<PricingTemplate>
focal_class.signature: Collection<PricingTemplate> find(final String filter, final String orderBy,
          final boolean desc, final Integer offset, Integer numResults, final Integer startwith)
focal_class.class_method_signature: PricingTemplateDAO.createCriteria(final String filter, final String orderBy, final boolean desc)
focal_class.full_signature: private Criteria createCriteria(final String filter, final String orderBy, final boolean desc)
focal_class.identifier: createCriteria
focal_class.modifiers: private
focal_class.parameters: (final String filter, final String orderBy, final boolean desc)
focal_class.return: Criteria
focal_class.signature: Criteria createCriteria(final String filter, final String orderBy, final boolean desc)
focal_class.class_method_signature: PricingTemplateDAO.findAllPricingTemplateByName(final String name)
focal_class.full_signature: public List<PricingTemplate> findAllPricingTemplateByName(final String name)
focal_class.identifier: findAllPricingTemplateByName
focal_class.modifiers: public
focal_class.parameters: (final String name)
focal_class.return: List<PricingTemplate>
focal_class.signature: List<PricingTemplate> findAllPricingTemplateByName(final String name)
focal_class.class_method_signature: PricingTemplateDAO.findPricingTemplatesByCurrency(final Integer idCurrency)
focal_class.full_signature: public List<PricingTemplate> findPricingTemplatesByCurrency(final Integer idCurrency)
focal_class.identifier: findPricingTemplatesByCurrency
focal_class.modifiers: public
focal_class.parameters: (final Integer idCurrency)
focal_class.return: List<PricingTemplate>
focal_class.signature: List<PricingTemplate> findPricingTemplatesByCurrency(final Integer idCurrency)
focal_class.superclass: extends DefaultDAOBase<Integer, PricingTemplate>
focal_method.body: public List<PricingTemplate> findPricingTemplatesByCurrency(final Integer idCurrency)
      {
          Criteria crit = createNestedCriteria(PricingTemplate.CURRENCY_PROPERTY);
          crit.add(Restrictions.eq(PersistentEntity.ID_PROPERTY, idCurrency));
          return getResultList(crit);
      }
focal_method.class_method_signature: PricingTemplateDAO.findPricingTemplatesByCurrency(final Integer idCurrency)
focal_method.full_signature: public List<PricingTemplate> findPricingTemplatesByCurrency(final Integer idCurrency)
focal_method.identifier: findPricingTemplatesByCurrency
focal_method.invocations: createNestedCriteria add eq getResultList
focal_method.modifiers: public
focal_method.parameters: (final Integer idCurrency)
focal_method.return: List<PricingTemplate>
focal_method.signature: List<PricingTemplate> findPricingTemplatesByCurrency(final Integer idCurrency)