com.hack23.cia.service.impl.commondao.api
Interface GenericDAO<T extends PersistedModelObject,ID extends Serializable>

Package class diagram package GenericDAO
Type Parameters:
T - the generic type
ID - the generic type
All Known Subinterfaces:
ActionEventDAO, AgencyDAO, AgentOperationDAO, BallotDAO, CommitteeDAO, CommitteeReportDAO, ElectionDAO, ErrorActionEventDAO, EventDAO, LanguageContentDAO, LanguageDAO, ParliamentDAO, ParliamentMemberDAO, ParliamentYearDAO, PoliticalPartyDAO, PortalDAO, ResourceDAO, UserDAO, UserSessionDAO, VoteDAO
All Known Implementing Classes:
ActionEventDAOImpl, AgencyDAOImpl, AgentOperationDAOImpl, BallotDAOImpl, CommitteeDAOImpl, CommitteeReportDAOImpl, ElectionDAOImpl, ErrorActionEventDAOImpl, EventDAOImpl, LanguageContentDAOImpl, LanguageDAOImpl, ParliamentDAOImpl, ParliamentMemberDAOImpl, ParliamentYearDAOImpl, PoliticalPartyDAOImpl, PortalDAOImpl, ResourceDAOImpl, UserDAOImpl, UserSessionDAOImpl, VoteDAOImpl

@Transactional(propagation=SUPPORTS)
public interface GenericDAO<T extends PersistedModelObject,ID extends Serializable>

The Interface GenericDAO.


Method Summary
Modifier and Type Method and Description
 void delete(T entity)
          Delete.
 List<T> getAll()
          Gets the all.
 T loadById(ID id)
          Load by id.
 T save(T entity)
          Save.
 

Method Detail

delete

void delete(T entity)
Delete.

Parameters:
entity - the entity

getAll

@Transactional(readOnly=true)
List<T> getAll()
Gets the all.

Returns:
the all

loadById

@Transactional(readOnly=true)
T loadById(ID id)
Load by id.

Parameters:
id - the id
Returns:
the t

save

T save(T entity)
Save.

Parameters:
entity - the entity
Returns:
the t


Copyright © 2008-2010 www.hack23.com. All Rights Reserved.