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.declarator: privilegeGenerator
test_class.modifier: private
test_class.original_string: private PrivilegeGenerator privilegeGenerator;
test_class.type: PrivilegeGenerator
test_class.var_name: privilegeGenerator
test_class.file: model/src/test/java/com/abiquo/server/core/enterprise/RoleDAOTest.java
test_class.identifier: RoleDAOTest
test_class.superclass: extends DefaultDAOTestBase<RoleDAO, Role>
test_case.body: @Test
      public void findRoles()
      {
          Role role1 = eg().createInstance();
          Enterprise enterprise = this.enterpriseGenerator.createUniqueInstance();
          Role role2 = eg().createInstance(enterprise);
  
          ds().persistAll(role1, enterprise, role2);
  
          RoleDAO dao = createDaoForRollbackTransaction();
  
          Collection<Role> roles = dao.find(enterprise, null, null, false, 0, 25);
          AssertEx.assertSize(roles, 2);
  
          roles = dao.find(null, null, null, false, 0, 25);
          AssertEx.assertSize(roles, 1);
  
      }
test_case.class_method_signature: RoleDAOTest.findRoles()
test_case.full_signature: @Test public void findRoles()
test_case.identifier: findRoles
test_case.invocations: createInstance eg createUniqueInstance createInstance eg persistAll ds createDaoForRollbackTransaction find assertSize find assertSize
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void findRoles()
focal_class.declarator: QUERY_PRIVILEGES_FROM_ROLE = //
          "  SELECT r.privileges FROM " + //
              "com.abiquo.server.core.enterprise.Role r " + //
              "WHERE r.id = :idRole"
focal_class.modifier: private final static
focal_class.original_string: private final static String QUERY_PRIVILEGES_FROM_ROLE = //
          "  SELECT r.privileges FROM " + //
              "com.abiquo.server.core.enterprise.Role r " + //
              "WHERE r.id = :idRole";
focal_class.type: String
focal_class.var_name: QUERY_PRIVILEGES_FROM_ROLE
focal_class.file: model/src/main/java/com/abiquo/server/core/enterprise/RoleDAO.java
focal_class.identifier: RoleDAO
focal_class.class_method_signature: RoleDAO.RoleDAO()
focal_class.full_signature: public  RoleDAO()
focal_class.identifier: RoleDAO
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  RoleDAO()
focal_class.class_method_signature: RoleDAO.RoleDAO(final EntityManager entityManager)
focal_class.full_signature: public  RoleDAO(final EntityManager entityManager)
focal_class.identifier: RoleDAO
focal_class.modifiers: public
focal_class.parameters: (final EntityManager entityManager)
focal_class.signature:  RoleDAO(final EntityManager entityManager)
focal_class.class_method_signature: RoleDAO.sameEnterpriseOrNull(final Enterprise enterprise)
focal_class.full_signature: public static Criterion sameEnterpriseOrNull(final Enterprise enterprise)
focal_class.identifier: sameEnterpriseOrNull
focal_class.modifiers: public static
focal_class.parameters: (final Enterprise enterprise)
focal_class.return: Criterion
focal_class.signature: Criterion sameEnterpriseOrNull(final Enterprise enterprise)
focal_class.class_method_signature: RoleDAO.sameEnterprise(final Enterprise enterprise)
focal_class.full_signature: public static Criterion sameEnterprise(final Enterprise enterprise)
focal_class.identifier: sameEnterprise
focal_class.modifiers: public static
focal_class.parameters: (final Enterprise enterprise)
focal_class.return: Criterion
focal_class.signature: Criterion sameEnterprise(final Enterprise enterprise)
focal_class.class_method_signature: RoleDAO.genericRole()
focal_class.full_signature: public static Criterion genericRole()
focal_class.identifier: genericRole
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: Criterion
focal_class.signature: Criterion genericRole()
focal_class.class_method_signature: RoleDAO.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: RoleDAO.filterExactlyBy(final String filter)
focal_class.full_signature: private Criterion filterExactlyBy(final String filter)
focal_class.identifier: filterExactlyBy
focal_class.modifiers: private
focal_class.parameters: (final String filter)
focal_class.return: Criterion
focal_class.signature: Criterion filterExactlyBy(final String filter)
focal_class.class_method_signature: RoleDAO.find(final Enterprise enterprise, final String filter,
          final String orderBy, final boolean desc)
focal_class.full_signature: public Collection<Role> find(final Enterprise enterprise, final String filter,
          final String orderBy, final boolean desc)
focal_class.identifier: find
focal_class.modifiers: public
focal_class.parameters: (final Enterprise enterprise, final String filter,
          final String orderBy, final boolean desc)
focal_class.return: Collection<Role>
focal_class.signature: Collection<Role> find(final Enterprise enterprise, final String filter,
          final String orderBy, final boolean desc)
focal_class.class_method_signature: RoleDAO.find(final Enterprise enterprise, final String filter,
          final String orderBy, final boolean desc, final Integer offset, final Integer numResults)
focal_class.full_signature: public Collection<Role> find(final Enterprise enterprise, final String filter,
          final String orderBy, final boolean desc, final Integer offset, final Integer numResults)
focal_class.identifier: find
focal_class.modifiers: public
focal_class.parameters: (final Enterprise enterprise, final String filter,
          final String orderBy, final boolean desc, final Integer offset, final Integer numResults)
focal_class.return: Collection<Role>
focal_class.signature: Collection<Role> find(final Enterprise enterprise, final String filter,
          final String orderBy, final boolean desc, final Integer offset, final Integer numResults)
focal_class.class_method_signature: RoleDAO.find(final Enterprise enterprise, final String filter,
          final String orderBy, final boolean desc, final Integer offset, final Integer numResults,
          final boolean discardNullEnterprises)
focal_class.full_signature: public Collection<Role> find(final Enterprise enterprise, final String filter,
          final String orderBy, final boolean desc, final Integer offset, final Integer numResults,
          final boolean discardNullEnterprises)
focal_class.identifier: find
focal_class.modifiers: public
focal_class.parameters: (final Enterprise enterprise, final String filter,
          final String orderBy, final boolean desc, final Integer offset, final Integer numResults,
          final boolean discardNullEnterprises)
focal_class.return: Collection<Role>
focal_class.signature: Collection<Role> find(final Enterprise enterprise, final String filter,
          final String orderBy, final boolean desc, final Integer offset, final Integer numResults,
          final boolean discardNullEnterprises)
focal_class.class_method_signature: RoleDAO.findExactly(final Enterprise enterprise, final String filter,
          final String orderBy, final boolean desc, final Integer offset, final Integer numResults,
          final boolean discardNullEnterprises)
focal_class.full_signature: public Collection<Role> findExactly(final Enterprise enterprise, final String filter,
          final String orderBy, final boolean desc, final Integer offset, final Integer numResults,
          final boolean discardNullEnterprises)
focal_class.identifier: findExactly
focal_class.modifiers: public
focal_class.parameters: (final Enterprise enterprise, final String filter,
          final String orderBy, final boolean desc, final Integer offset, final Integer numResults,
          final boolean discardNullEnterprises)
focal_class.return: Collection<Role>
focal_class.signature: Collection<Role> findExactly(final Enterprise enterprise, final String filter,
          final String orderBy, final boolean desc, final Integer offset, final Integer numResults,
          final boolean discardNullEnterprises)
focal_class.class_method_signature: RoleDAO.createCriteria(final Enterprise enterprise, final String filter,
          final String orderBy, final boolean desc, final boolean discardNullEnterprises)
focal_class.full_signature: private Criteria createCriteria(final Enterprise enterprise, final String filter,
          final String orderBy, final boolean desc, final boolean discardNullEnterprises)
focal_class.identifier: createCriteria
focal_class.modifiers: private
focal_class.parameters: (final Enterprise enterprise, final String filter,
          final String orderBy, final boolean desc, final boolean discardNullEnterprises)
focal_class.return: Criteria
focal_class.signature: Criteria createCriteria(final Enterprise enterprise, final String filter,
          final String orderBy, final boolean desc, final boolean discardNullEnterprises)
focal_class.class_method_signature: RoleDAO.findPrivilegesByIdRole(final Integer idRole)
focal_class.full_signature: public List<Privilege> findPrivilegesByIdRole(final Integer idRole)
focal_class.identifier: findPrivilegesByIdRole
focal_class.modifiers: public
focal_class.parameters: (final Integer idRole)
focal_class.return: List<Privilege>
focal_class.signature: List<Privilege> findPrivilegesByIdRole(final Integer idRole)
focal_class.class_method_signature: RoleDAO.createCriteriaExactly(final Enterprise enterprise, final String filter,
          final String orderBy, final boolean desc, final boolean discardNullEnterprises)
focal_class.full_signature: private Criteria createCriteriaExactly(final Enterprise enterprise, final String filter,
          final String orderBy, final boolean desc, final boolean discardNullEnterprises)
focal_class.identifier: createCriteriaExactly
focal_class.modifiers: private
focal_class.parameters: (final Enterprise enterprise, final String filter,
          final String orderBy, final boolean desc, final boolean discardNullEnterprises)
focal_class.return: Criteria
focal_class.signature: Criteria createCriteriaExactly(final Enterprise enterprise, final String filter,
          final String orderBy, final boolean desc, final boolean discardNullEnterprises)
focal_class.superclass: extends DefaultDAOBase<Integer, Role>
focal_method.body: public Collection<Role> find(final Enterprise enterprise, final String filter,
          final String orderBy, final boolean desc)
      {
          return find(enterprise, filter, orderBy, desc, 0, 25);
      }
focal_method.class_method_signature: RoleDAO.find(final Enterprise enterprise, final String filter,
          final String orderBy, final boolean desc)
focal_method.full_signature: public Collection<Role> find(final Enterprise enterprise, final String filter,
          final String orderBy, final boolean desc)
focal_method.identifier: find
focal_method.invocations: find
focal_method.modifiers: public
focal_method.parameters: (final Enterprise enterprise, final String filter,
          final String orderBy, final boolean desc)
focal_method.return: Collection<Role>
focal_method.signature: Collection<Role> find(final Enterprise enterprise, final String filter,
          final String orderBy, final boolean desc)