fr.paris.lutece.plugins.dila.business.donneescomplementaires.dao
Interface IComplementaryDataLinkDAO

All Known Implementing Classes:
ComplementaryDataLinkDAO

public interface IComplementaryDataLinkDAO

DAO for ComplementaryDataLinkDTO


Method Summary
 void delete(Long id, ComplementaryLinkTypeEnum type)
          Delete all links of a complementary data
 List<ComplementaryDataLinkDTO> findByDataId(Long dataId, ComplementaryLinkTypeEnum type)
          Find links by data id and link type
 void insert(ComplementaryDataLinkDTO dto)
          Create a ComplementaryDataLinkDTO
 

Method Detail

insert

void insert(ComplementaryDataLinkDTO dto)
Create a ComplementaryDataLinkDTO

Parameters:
dto - the ComplementaryDataLinkDTO to create

delete

void delete(Long id,
            ComplementaryLinkTypeEnum type)
Delete all links of a complementary data

Parameters:
id - the donnee complementaire id to find
type - the type of dto to delete

findByDataId

List<ComplementaryDataLinkDTO> findByDataId(Long dataId,
                                            ComplementaryLinkTypeEnum type)
Find links by data id and link type

Parameters:
dataId - the id of complementary data
type - the type of dto
Returns:
list of corresponding ComplementaryDataLinkDTO


Copyright © 2013 Mairie de Paris. All Rights Reserved.