com.hack23.cia.service.data.api
Interface AbstractGenericDAO<T extends Serializable,ID extends Serializable>

Package class diagram package AbstractGenericDAO
Type Parameters:
T - the generic type
ID - the generic type
All Known Subinterfaces:
AgencyDAO, CommitteeProposalComponentDataDAO, CountrydetailsDAO, CountryElementDAO, CountryinfoEuElementDAO, DataDAO, DocumentContentDataDAO, DocumentElementDAO, DocumentStatusContainerDAO, IndicatorElementDAO, LanguageContentDataDAO, MepinfoEuElementDAO, PersonDataDAO, UserDAO, VoteDataDAO, VoteinfoEuElementDAO, VotesEuDataDAO
All Known Implementing Classes:
AbstractGenericDAOImpl, AgencyDAOImpl, CommitteeProposalComponentDataDAOImpl, CountrydetailsDAOImpl, CountryElementDAOImpl, CountryinfoEuElementDAOImpl, DataDAOImpl, DocumentContentDataDAOImpl, DocumentElementDAOImpl, DocumentStatusContainerDAOImpl, IndicatorElementDAOImpl, LanguageContentDataDAOImpl, MepinfoEuElementDAOImpl, PersonDataDAOImpl, UserDAOImpl, VoteDataDAOImpl, VoteinfoEuElementDAOImpl, VotesEuDataDAOImpl

public interface AbstractGenericDAO<T extends Serializable,ID extends Serializable>

The Interface AbstractGenericDAO.


Method Summary
 void delete(T entity)
          Delete.
 T findFirstByProperty(javax.persistence.metamodel.SingularAttribute<T,? extends Object> property, Object value)
          Find first by property.
 List<T> findListByProperty(javax.persistence.metamodel.SingularAttribute<T,? extends Object> property, Object value)
          Find list by property.
 List<T> getAll()
          Gets the all.
 Long getSize()
          Gets the size.
 T load(ID id)
          Load.
 T merge(T entity)
          Merge.
 void persist(List<T> list)
          Persist.
 void persist(T entity)
          Persist.
 

Method Detail

delete

void delete(T entity)
Delete.

Parameters:
entity - the entity

findFirstByProperty

T findFirstByProperty(javax.persistence.metamodel.SingularAttribute<T,? extends Object> property,
                      Object value)
Find first by property.

Parameters:
property - the property
value - the value
Returns:
the t

findListByProperty

List<T> findListByProperty(javax.persistence.metamodel.SingularAttribute<T,? extends Object> property,
                           Object value)
Find list by property.

Parameters:
property - the property
value - the value
Returns:
the list

getAll

List<T> getAll()
Gets the all.

Returns:
the all

getSize

Long getSize()
Gets the size.

Returns:
the size

load

T load(ID id)
Load.

Parameters:
id - the id
Returns:
the t

merge

T merge(T entity)
Merge.

Parameters:
entity - the entity
Returns:
the t

persist

void persist(List<T> list)
Persist.

Parameters:
list - the list

persist

void persist(T entity)
Persist.

Parameters:
entity - the entity


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