test_class.declarator: enterpriseGenerator
test_class.modifier: private
test_class.original_string: private EnterpriseGenerator enterpriseGenerator;
test_class.type: EnterpriseGenerator
test_class.var_name: enterpriseGenerator
test_class.file: model/src/test/java/com/abiquo/server/core/appslibrary/CategoryDAOTest.java
test_class.identifier: CategoryDAOTest
test_class.superclass: extends DefaultDAOTestBase<CategoryDAO, Category>
test_case.body: @Test
      public void testFindDefault()
      {
          Category category = eg().createDefaultInstance();
          ds().persistAll(category);
  
          CategoryDAO dao = createDaoForRollbackTransaction();
          Category defaultCategory = dao.findDefault();
  
          assertNotNull(defaultCategory);
          assertTrue(defaultCategory.isDefaultCategory());
          assertEquals(defaultCategory.getName(), category.getName());
      }
test_case.class_method_signature: CategoryDAOTest.testFindDefault()
test_case.full_signature: @Test public void testFindDefault()
test_case.identifier: testFindDefault
test_case.invocations: createDefaultInstance eg persistAll ds createDaoForRollbackTransaction findDefault assertNotNull assertTrue isDefaultCategory assertEquals getName getName
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testFindDefault()
focal_class.declarator: BY_NAME_AND_ENTERPRISE =
          " SELECT c from Category c, Enterprise e where c.enterprise.id = :idEnterprise and c.name = :name"
focal_class.modifier: public static final
focal_class.original_string: public static final String BY_NAME_AND_ENTERPRISE =
          " SELECT c from Category c, Enterprise e where c.enterprise.id = :idEnterprise and c.name = :name";
focal_class.type: String
focal_class.var_name: BY_NAME_AND_ENTERPRISE
focal_class.declarator: BY_NAME_AND_NO_ENTERPRISE =
          " select c from Category c  where c.enterprise is NULL and c.name=:name"
focal_class.modifier: public static final
focal_class.original_string: public static final String BY_NAME_AND_NO_ENTERPRISE =
          " select c from Category c  where c.enterprise is NULL and c.name=:name";
focal_class.type: String
focal_class.var_name: BY_NAME_AND_NO_ENTERPRISE
focal_class.declarator: BY_GLOBAL = " select c from Category c  where c.enterprise is NULL"
focal_class.modifier: public static final
focal_class.original_string: public static final String BY_GLOBAL = " select c from Category c  where c.enterprise is NULL";
focal_class.type: String
focal_class.var_name: BY_GLOBAL
focal_class.declarator: BY_LOCAL =
          " select c from Category c  where c.enterprise.id = :idEnterprise"
focal_class.modifier: public static final
focal_class.original_string: public static final String BY_LOCAL =
          " select c from Category c  where c.enterprise.id = :idEnterprise";
focal_class.type: String
focal_class.var_name: BY_LOCAL
focal_class.file: model/src/main/java/com/abiquo/server/core/appslibrary/CategoryDAO.java
focal_class.identifier: CategoryDAO
focal_class.class_method_signature: CategoryDAO.CategoryDAO()
focal_class.full_signature: public  CategoryDAO()
focal_class.identifier: CategoryDAO
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  CategoryDAO()
focal_class.class_method_signature: CategoryDAO.CategoryDAO(final EntityManager entityManager)
focal_class.full_signature: public  CategoryDAO(final EntityManager entityManager)
focal_class.identifier: CategoryDAO
focal_class.modifiers: public
focal_class.parameters: (final EntityManager entityManager)
focal_class.signature:  CategoryDAO(final EntityManager entityManager)
focal_class.class_method_signature: CategoryDAO.findDefault()
focal_class.full_signature: public Category findDefault()
focal_class.identifier: findDefault
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Category
focal_class.signature: Category findDefault()
focal_class.class_method_signature: CategoryDAO.findGlobalCategories()
focal_class.full_signature: public ArrayList<Category> findGlobalCategories()
focal_class.identifier: findGlobalCategories
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: ArrayList<Category>
focal_class.signature: ArrayList<Category> findGlobalCategories()
focal_class.class_method_signature: CategoryDAO.findLocalCategories(final Integer idEnterprise)
focal_class.full_signature: public ArrayList<Category> findLocalCategories(final Integer idEnterprise)
focal_class.identifier: findLocalCategories
focal_class.modifiers: public
focal_class.parameters: (final Integer idEnterprise)
focal_class.return: ArrayList<Category>
focal_class.signature: ArrayList<Category> findLocalCategories(final Integer idEnterprise)
focal_class.class_method_signature: CategoryDAO.findByNameAndEnterprise(final String categoryName, final Enterprise enterprise)
focal_class.full_signature: public Category findByNameAndEnterprise(final String categoryName, final Enterprise enterprise)
focal_class.identifier: findByNameAndEnterprise
focal_class.modifiers: public
focal_class.parameters: (final String categoryName, final Enterprise enterprise)
focal_class.return: Category
focal_class.signature: Category findByNameAndEnterprise(final String categoryName, final Enterprise enterprise)
focal_class.class_method_signature: CategoryDAO.existsAnyWithName(final String name)
focal_class.full_signature: public boolean existsAnyWithName(final String name)
focal_class.identifier: existsAnyWithName
focal_class.modifiers: public
focal_class.parameters: (final String name)
focal_class.return: boolean
focal_class.signature: boolean existsAnyWithName(final String name)
focal_class.class_method_signature: CategoryDAO.existsAnyOtherWithName(final Category category, final String name)
focal_class.full_signature: public boolean existsAnyOtherWithName(final Category category, final String name)
focal_class.identifier: existsAnyOtherWithName
focal_class.modifiers: public
focal_class.parameters: (final Category category, final String name)
focal_class.return: boolean
focal_class.signature: boolean existsAnyOtherWithName(final Category category, final String name)
focal_class.class_method_signature: CategoryDAO.equalsName(final String name)
focal_class.full_signature: private static Criterion equalsName(final String name)
focal_class.identifier: equalsName
focal_class.modifiers: private static
focal_class.parameters: (final String name)
focal_class.return: Criterion
focal_class.signature: Criterion equalsName(final String name)
focal_class.class_method_signature: CategoryDAO.sameEnterprise(final Enterprise enterprise)
focal_class.full_signature: private static Criterion sameEnterprise(final Enterprise enterprise)
focal_class.identifier: sameEnterprise
focal_class.modifiers: private static
focal_class.parameters: (final Enterprise enterprise)
focal_class.return: Criterion
focal_class.signature: Criterion sameEnterprise(final Enterprise enterprise)
focal_class.class_method_signature: CategoryDAO.isDefault()
focal_class.full_signature: private Criterion isDefault()
focal_class.identifier: isDefault
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: Criterion
focal_class.signature: Criterion isDefault()
focal_class.superclass: extends DefaultDAOBase<Integer, Category>
focal_method.body: public Category findDefault()
      {
          return getSingleResult(createCriteria(isDefault()));
      }
focal_method.class_method_signature: CategoryDAO.findDefault()
focal_method.full_signature: public Category findDefault()
focal_method.identifier: findDefault
focal_method.invocations: getSingleResult createCriteria isDefault
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: Category
focal_method.signature: Category findDefault()