test_class.file: model/src/test/java/com/abiquo/server/core/pricing/PricingCostCodeDAOTest.java
test_class.identifier: PricingCostCodeDAOTest
test_class.superclass: extends DefaultDAOTestBase<PricingCostCodeDAO, PricingCostCode>
test_case.body: @Test
      public void existAnyOtherWithCostCode()
      {
          PricingCostCode pc1 = eg().createUniqueInstance();
          PricingCostCode pc2 = eg().createUniqueInstance();
  
          ds().persistAll(pc1.getCostCode(), pc1.getPricingTemplate().getCurrency(),
              pc1.getPricingTemplate(), pc1, pc2.getCostCode(),
              pc2.getPricingTemplate().getCurrency(), pc2.getPricingTemplate(), pc2);
  
          PricingCostCodeDAO dao = createDaoForReadWriteTransaction();
  
          assertFalse(dao.existAnyOtherWithCostCode(pc1, pc1.getCostCode(), pc1.getPricingTemplate()));
  
          assertFalse(dao.existAnyOtherWithCostCode(pc1, pc1.getCostCode(), pc2.getPricingTemplate()));
  
      }
test_case.class_method_signature: PricingCostCodeDAOTest.existAnyOtherWithCostCode()
test_case.full_signature: @Test public void existAnyOtherWithCostCode()
test_case.identifier: existAnyOtherWithCostCode
test_case.invocations: createUniqueInstance eg createUniqueInstance eg persistAll ds getCostCode getCurrency getPricingTemplate getPricingTemplate getCostCode getCurrency getPricingTemplate getPricingTemplate createDaoForReadWriteTransaction assertFalse existAnyOtherWithCostCode getCostCode getPricingTemplate assertFalse existAnyOtherWithCostCode getCostCode getPricingTemplate
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void existAnyOtherWithCostCode()
focal_class.file: model/src/main/java/com/abiquo/server/core/pricing/PricingCostCodeDAO.java
focal_class.identifier: PricingCostCodeDAO
focal_class.class_method_signature: PricingCostCodeDAO.PricingCostCodeDAO()
focal_class.full_signature: public  PricingCostCodeDAO()
focal_class.identifier: PricingCostCodeDAO
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  PricingCostCodeDAO()
focal_class.class_method_signature: PricingCostCodeDAO.PricingCostCodeDAO(final EntityManager entityManager)
focal_class.full_signature: public  PricingCostCodeDAO(final EntityManager entityManager)
focal_class.identifier: PricingCostCodeDAO
focal_class.modifiers: public
focal_class.parameters: (final EntityManager entityManager)
focal_class.signature:  PricingCostCodeDAO(final EntityManager entityManager)
focal_class.class_method_signature: PricingCostCodeDAO.sameCostCode(final CostCode costCode)
focal_class.full_signature: private Criterion sameCostCode(final CostCode costCode)
focal_class.identifier: sameCostCode
focal_class.modifiers: private
focal_class.parameters: (final CostCode costCode)
focal_class.return: Criterion
focal_class.signature: Criterion sameCostCode(final CostCode costCode)
focal_class.class_method_signature: PricingCostCodeDAO.samePricing(final PricingTemplate pricing)
focal_class.full_signature: private Criterion samePricing(final PricingTemplate pricing)
focal_class.identifier: samePricing
focal_class.modifiers: private
focal_class.parameters: (final PricingTemplate pricing)
focal_class.return: Criterion
focal_class.signature: Criterion samePricing(final PricingTemplate pricing)
focal_class.class_method_signature: PricingCostCodeDAO.findPricingCostCode(final CostCode costCode,
          final PricingTemplate pricing)
focal_class.full_signature: public PricingCostCode findPricingCostCode(final CostCode costCode,
          final PricingTemplate pricing)
focal_class.identifier: findPricingCostCode
focal_class.modifiers: public
focal_class.parameters: (final CostCode costCode,
          final PricingTemplate pricing)
focal_class.return: PricingCostCode
focal_class.signature: PricingCostCode findPricingCostCode(final CostCode costCode,
          final PricingTemplate pricing)
focal_class.class_method_signature: PricingCostCodeDAO.findPricingCostCodes(final PricingTemplate pricing)
focal_class.full_signature: public Collection<PricingCostCode> findPricingCostCodes(final PricingTemplate pricing)
focal_class.identifier: findPricingCostCodes
focal_class.modifiers: public
focal_class.parameters: (final PricingTemplate pricing)
focal_class.return: Collection<PricingCostCode>
focal_class.signature: Collection<PricingCostCode> findPricingCostCodes(final PricingTemplate pricing)
focal_class.class_method_signature: PricingCostCodeDAO.existAnyOtherWithCostCode(final PricingCostCode pricingCostCode,
          final CostCode costCode, final PricingTemplate pricing)
focal_class.full_signature: public boolean existAnyOtherWithCostCode(final PricingCostCode pricingCostCode,
          final CostCode costCode, final PricingTemplate pricing)
focal_class.identifier: existAnyOtherWithCostCode
focal_class.modifiers: public
focal_class.parameters: (final PricingCostCode pricingCostCode,
          final CostCode costCode, final PricingTemplate pricing)
focal_class.return: boolean
focal_class.signature: boolean existAnyOtherWithCostCode(final PricingCostCode pricingCostCode,
          final CostCode costCode, final PricingTemplate pricing)
focal_class.superclass: extends DefaultDAOBase<Integer, PricingCostCode>
focal_method.body: public boolean existAnyOtherWithCostCode(final PricingCostCode pricingCostCode,
          final CostCode costCode, final PricingTemplate pricing)
      {
          return existsAnyOtherByCriterions(pricingCostCode, sameCostCode(costCode),
              samePricing(pricing));
      }
focal_method.class_method_signature: PricingCostCodeDAO.existAnyOtherWithCostCode(final PricingCostCode pricingCostCode,
          final CostCode costCode, final PricingTemplate pricing)
focal_method.full_signature: public boolean existAnyOtherWithCostCode(final PricingCostCode pricingCostCode,
          final CostCode costCode, final PricingTemplate pricing)
focal_method.identifier: existAnyOtherWithCostCode
focal_method.invocations: existsAnyOtherByCriterions sameCostCode samePricing
focal_method.modifiers: public
focal_method.parameters: (final PricingCostCode pricingCostCode,
          final CostCode costCode, final PricingTemplate pricing)
focal_method.return: boolean
focal_method.signature: boolean existAnyOtherWithCostCode(final PricingCostCode pricingCostCode,
          final CostCode costCode, final PricingTemplate pricing)