org.directdemocracyportal.democracy.service.dao
Interface GenericDAO<T extends BaseEntity,ID extends java.io.Serializable>

Package class diagram package GenericDAO
Type Parameters:
T - the generic type
ID - the generic type
All Known Subinterfaces:
AgentDAO, CountryDAO, DocumentDAO, EventDAO, GovernmentDAO, PersonDAO, PoliticalPartyDAO, PortalDAO, RegionDAO, RoleDAO, UserDAO, UserSessionDAO
All Known Implementing Classes:
GenericHibernateDAO, HibernateAgentDAO, HibernateCountryDAO, HibernateDocumentDAO, HibernateEventDAO, HibernateGovernmentDAO, HibernatePersonDAO, HibernatePoliticalPartyDAO, HibernatePortalDAO, HibernateRegionDAO, HibernateRoleDAO, HibernateUserDAO, HibernateUserSessionDAO

public interface GenericDAO<T extends BaseEntity,ID extends java.io.Serializable>

The Interface GenericDAO.


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

Method Detail

load

T load(ID id)
                          throws org.springframework.dao.DataAccessException
Load.

Parameters:
id - the id
Returns:
the t
Throws:
org.springframework.dao.DataAccessException - the data access exception

save

T save(T entity)
                          throws org.springframework.dao.DataAccessException
Save.

Parameters:
entity - the entity
Returns:
the t
Throws:
org.springframework.dao.DataAccessException - the data access exception

delete

void delete(T entity)
            throws org.springframework.dao.DataAccessException
Delete.

Parameters:
entity - the entity
Throws:
org.springframework.dao.DataAccessException - the data access exception

getAll

java.util.List<T> getAll()
                                            throws org.springframework.dao.DataAccessException
Gets the all.

Returns:
the all
Throws:
org.springframework.dao.DataAccessException - the data access exception


Copyright © 2004-2010 www.DirectDemocracyPortal.org. All Rights Reserved.