EMMA�Coverage�Report�(generated�Fri�Sep�15�10:32:43�EDT�2006)
[all�classes][edu.iu.uis.sit.portal.portlet.admin.dao]

COVERAGE�SUMMARY�FOR�SOURCE�FILE�[AdminDAOOjbImpl.java]

nameclass,�%method,�%block,�%line,�%
AdminDAOOjbImpl.java100%�(1/1)100%�(19/19)100%�(183/183)100%�(40/40)

COVERAGE�BREAKDOWN�BY�CLASS�AND�METHOD

nameclass,�%method,�%block,�%line,�%
class�AdminDAOOjbImpl100%�(1/1)100%�(19/19)100%�(183/183)100%�(40/40)
AdminDAOOjbImpl�():�void100%�(1/1)100%�(3/3)100%�(1/1)
deleteApplicationConstant�(ApplicationConstant):�void100%�(1/1)100%�(5/5)100%�(2/2)
deletePortalSupport�(PortalSupport):�void100%�(1/1)100%�(5/5)100%�(2/2)
deletePortletApplication�(PortletApplication):�void100%�(1/1)100%�(5/5)100%�(2/2)
deletePortletConfig�(PortletConfig):�void100%�(1/1)100%�(5/5)100%�(2/2)
deletePortletMapping�(PortletMapping):�void100%�(1/1)100%�(5/5)100%�(2/2)
findAllApplicationConstants�():�List100%�(1/1)100%�(9/9)100%�(1/1)
findAllPortletMappings�():�List100%�(1/1)100%�(9/9)100%�(1/1)
findApplicationConstantById�(Long):�ApplicationConstant100%�(1/1)100%�(18/18)100%�(3/3)
findApplicationConstantByName�(String):�ApplicationConstant100%�(1/1)100%�(18/18)100%�(3/3)
findPortalSupportById�(Long):�PortalSupport100%�(1/1)100%�(18/18)100%�(3/3)
findPortletApplicationById�(Long):�PortletApplication100%�(1/1)100%�(18/18)100%�(3/3)
findPortletConfigById�(Long):�PortletConfig100%�(1/1)100%�(18/18)100%�(3/3)
findPortletMappingById�(Long):�PortletMapping100%�(1/1)100%�(18/18)100%�(3/3)
getPortalConfigs�():�List100%�(1/1)100%�(9/9)100%�(1/1)
saveApplicationConstant�(ApplicationConstant):�void100%�(1/1)100%�(5/5)100%�(2/2)
savePortalConfig�(PortalConfig):�void100%�(1/1)100%�(5/5)100%�(2/2)
savePortletConfig�(PortletConfig):�void100%�(1/1)100%�(5/5)100%�(2/2)
savePortletMapping�(PortletMapping):�void100%�(1/1)100%�(5/5)100%�(2/2)

1package�edu.iu.uis.sit.portal.portlet.admin.dao;
2
3import�java.util.List;
4
5import�org.apache.ojb.broker.query.Criteria;
6import�org.apache.ojb.broker.query.QueryByCriteria;
7import�org.springframework.orm.ojb.support.PersistenceBrokerDaoSupport;
8
9import�edu.iu.uis.sit.portal.portlet.admin.domain.ApplicationConstant;
10import�edu.iu.uis.sit.portal.portlet.admin.domain.PortalConfig;
11import�edu.iu.uis.sit.portal.portlet.admin.domain.PortalSupport;
12import�edu.iu.uis.sit.portal.portlet.admin.domain.PortletApplication;
13import�edu.iu.uis.sit.portal.portlet.admin.domain.PortletConfig;
14import�edu.iu.uis.sit.portal.portlet.admin.domain.PortletMapping;
15
16public�class�AdminDAOOjbImpl�extends�PersistenceBrokerDaoSupport�implements�AdminDAO�{
17��������public�void�deletePortalSupport(PortalSupport�portalSupport)�{
18����������������getPersistenceBrokerTemplate().delete(portalSupport);
19��������}
20
21��������public�void�savePortletConfig(PortletConfig�portletConfig)�{
22����������������getPersistenceBrokerTemplate().store(portletConfig);
23��������}
24
25��������public�void�deletePortletConfig(PortletConfig�portletConfig)�{
26����������������getPersistenceBrokerTemplate().delete(portletConfig);
27��������}
28
29��������public�PortletConfig�findPortletConfigById(Long�portletConfigId)�{
30����������������Criteria�criteria�=�new�Criteria();
31����������������criteria.addEqualTo("portletConfigId",�portletConfigId);
32����������������return�(PortletConfig)�getPersistenceBrokerTemplate().getObjectByQuery(new�QueryByCriteria(PortletConfig.class,�criteria));
33��������}
34
35��������public�PortalSupport�findPortalSupportById(Long�portalSupportId)�{
36����������������Criteria�criteria�=�new�Criteria();
37����������������criteria.addEqualTo("portalSupportId",�portalSupportId);
38����������������return�(PortalSupport)�getPersistenceBrokerTemplate().getObjectByQuery(new�QueryByCriteria(PortalSupport.class,�criteria));
39��������}
40
41��������public�void�deletePortletApplication(PortletApplication�portletApplication)�{
42����������������getPersistenceBrokerTemplate().delete(portletApplication);
43��������}
44
45��������public�PortletApplication�findPortletApplicationById(Long�portletApplicationId)�{
46����������������Criteria�criteria�=�new�Criteria();
47����������������criteria.addEqualTo("portletApplicationId",�portletApplicationId);
48����������������return�(PortletApplication)�getPersistenceBrokerTemplate().getObjectByQuery(new�QueryByCriteria(PortletApplication.class,�criteria));
49��������}
50
51��������public�void�saveApplicationConstant(ApplicationConstant�applicationConstant)�{
52����������������getPersistenceBrokerTemplate().store(applicationConstant);
53��������}
54
55��������public�void�deleteApplicationConstant(ApplicationConstant�applicationConstant)�{
56����������������getPersistenceBrokerTemplate().delete(applicationConstant);
57��������}
58
59��������public�List�findAllApplicationConstants()�{
60����������������return�(List)�getPersistenceBrokerTemplate().getCollectionByQuery(new�QueryByCriteria(ApplicationConstant.class));
61��������}
62
63��������public�ApplicationConstant�findApplicationConstantByName(String�constantName)�{
64����������������Criteria�criteria�=�new�Criteria();
65����������������criteria.addEqualTo("constantName",�constantName);
66����������������return�(ApplicationConstant)�getPersistenceBrokerTemplate().getObjectByQuery(new�QueryByCriteria(ApplicationConstant.class,�criteria));
67��������}
68
69��������public�ApplicationConstant�findApplicationConstantById(Long�constantId)�{
70����������������Criteria�criteria�=�new�Criteria();
71����������������criteria.addEqualTo("constantId",�constantId);
72����������������return�(ApplicationConstant)�getPersistenceBrokerTemplate().getObjectByQuery(new�QueryByCriteria(ApplicationConstant.class,�criteria));
73��������}
74
75��������public�void�savePortletMapping(PortletMapping�portletMapping)�{
76����������������getPersistenceBrokerTemplate().store(portletMapping);
77��������}
78
79��������public�void�deletePortletMapping(PortletMapping�portletMapping)�{
80����������������getPersistenceBrokerTemplate().delete(portletMapping);
81��������}
82
83��������public�List�findAllPortletMappings()�{
84����������������return�(List)�getPersistenceBrokerTemplate().getCollectionByQuery(new�QueryByCriteria(PortletMapping.class));
85��������}
86
87��������public�PortletMapping�findPortletMappingById(Long�mappingId)�{
88����������������Criteria�criteria�=�new�Criteria();
89����������������criteria.addEqualTo("mappingId",�mappingId);
90����������������return�(PortletMapping)�getPersistenceBrokerTemplate().getObjectByQuery(new�QueryByCriteria(PortletMapping.class,�criteria));
91��������}
92
93��������public�void�savePortalConfig(PortalConfig�portalConfig)�{
94����������������getPersistenceBrokerTemplate().store(portalConfig);
95��������}
96
97��������public�List�getPortalConfigs()�{
98����������������return�(List)�getPersistenceBrokerTemplate().getCollectionByQuery(new�QueryByCriteria(PortalConfig.class));
99��������}
100}

[all�classes][edu.iu.uis.sit.portal.portlet.admin.dao]
EMMA�2.0.5312�(C)�Vladimir�Roubtsov