test_class.file: model/src/test/java/com/abiquo/server/core/config/SystemPropertyDAOTest.java
test_class.identifier: SystemPropertyDAOTest
test_class.superclass: extends DefaultDAOTestBase<SystemPropertyDAO, SystemProperty>
test_case.body: @Test
      public void test_findByName()
      {
          SystemProperty systemProperty = createUniqueEntity();
          systemProperty.setName("Some name");
          ds().persistAll(systemProperty);
  
          SystemPropertyDAO dao = createDaoForRollbackTransaction();
          SystemProperty found = dao.findByName("Some name");
  
          assertEquals(dao.findByName("UNEXISTING_NAME"), null);
          eg().assertAllPropertiesEqual(systemProperty, found);
      }
test_case.class_method_signature: SystemPropertyDAOTest.test_findByName()
test_case.full_signature: @Test public void test_findByName()
test_case.identifier: test_findByName
test_case.invocations: createUniqueEntity setName persistAll ds createDaoForRollbackTransaction findByName assertEquals findByName assertAllPropertiesEqual eg
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void test_findByName()
focal_class.file: model/src/main/java/com/abiquo/server/core/config/SystemPropertyDAO.java
focal_class.identifier: SystemPropertyDAO
focal_class.class_method_signature: SystemPropertyDAO.SystemPropertyDAO()
focal_class.full_signature: public  SystemPropertyDAO()
focal_class.identifier: SystemPropertyDAO
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  SystemPropertyDAO()
focal_class.class_method_signature: SystemPropertyDAO.SystemPropertyDAO(EntityManager entityManager)
focal_class.full_signature: public  SystemPropertyDAO(EntityManager entityManager)
focal_class.identifier: SystemPropertyDAO
focal_class.modifiers: public
focal_class.parameters: (EntityManager entityManager)
focal_class.signature:  SystemPropertyDAO(EntityManager entityManager)
focal_class.class_method_signature: SystemPropertyDAO.existsAnyWithName(String name)
focal_class.full_signature: public boolean existsAnyWithName(String name)
focal_class.identifier: existsAnyWithName
focal_class.modifiers: public
focal_class.parameters: (String name)
focal_class.return: boolean
focal_class.signature: boolean existsAnyWithName(String name)
focal_class.class_method_signature: SystemPropertyDAO.existsAnyOtherWithName(SystemProperty systemProperty, String name)
focal_class.full_signature: public boolean existsAnyOtherWithName(SystemProperty systemProperty, String name)
focal_class.identifier: existsAnyOtherWithName
focal_class.modifiers: public
focal_class.parameters: (SystemProperty systemProperty, String name)
focal_class.return: boolean
focal_class.signature: boolean existsAnyOtherWithName(SystemProperty systemProperty, String name)
focal_class.class_method_signature: SystemPropertyDAO.findByName(String name)
focal_class.full_signature: public SystemProperty findByName(String name)
focal_class.identifier: findByName
focal_class.modifiers: public
focal_class.parameters: (String name)
focal_class.return: SystemProperty
focal_class.signature: SystemProperty findByName(String name)
focal_class.class_method_signature: SystemPropertyDAO.findByComponent(String component)
focal_class.full_signature: public List<SystemProperty> findByComponent(String component)
focal_class.identifier: findByComponent
focal_class.modifiers: public
focal_class.parameters: (String component)
focal_class.return: List<SystemProperty>
focal_class.signature: List<SystemProperty> findByComponent(String component)
focal_class.class_method_signature: SystemPropertyDAO.equalsName(String name)
focal_class.full_signature: private Criterion equalsName(String name)
focal_class.identifier: equalsName
focal_class.modifiers: private
focal_class.parameters: (String name)
focal_class.return: Criterion
focal_class.signature: Criterion equalsName(String name)
focal_class.class_method_signature: SystemPropertyDAO.equalsComponent(String component)
focal_class.full_signature: private Criterion equalsComponent(String component)
focal_class.identifier: equalsComponent
focal_class.modifiers: private
focal_class.parameters: (String component)
focal_class.return: Criterion
focal_class.signature: Criterion equalsComponent(String component)
focal_class.superclass: extends DefaultDAOBase<Integer, SystemProperty>
focal_method.body: public SystemProperty findByName(String name)
      {
          Criteria criteria = createCriteria(equalsName(name));
          criteria.addOrder(Order.asc(SystemProperty.NAME_PROPERTY));
          List<SystemProperty> result = getResultList(criteria);
          return result.isEmpty() ? null : result.get(0);
      }
focal_method.class_method_signature: SystemPropertyDAO.findByName(String name)
focal_method.full_signature: public SystemProperty findByName(String name)
focal_method.identifier: findByName
focal_method.invocations: createCriteria equalsName addOrder asc getResultList isEmpty get
focal_method.modifiers: public
focal_method.parameters: (String name)
focal_method.return: SystemProperty
focal_method.signature: SystemProperty findByName(String name)