com.hack23.cia.service.impl.commondao.api
Interface ParliamentMemberDAO

Package class diagram package ParliamentMemberDAO
All Superinterfaces:
GenericDAO<ParliamentMemberData,Long>
All Known Implementing Classes:
ParliamentMemberDAOImpl

public interface ParliamentMemberDAO
extends GenericDAO<ParliamentMemberData,Long>

The Interface ParliamentMemberDAO.


Method Summary
Modifier and Type Method and Description
 void deleteAllParliamentMemberVoteCompareResults(ParliamentYearData parliamentYearData)
          Delete all parliament member vote compare results.
 List<VoteData> findLastVotes(Long id)
          Find last votes.
 List<VoteData> findLastVotesByBallotId(Long id)
          Find last votes by ballot id.
 List<ParliamentMemberData> findListByName(String searchString)
          Find list by name.
 List<VoteData> findVotes(Long id)
          Find votes.
 List<ParliamentMemberData> getCurrentList()
          Gets the current list.
 List<ParliamentMemberData> getCurrentList(ParliamentYearData parliamentYearData)
          Gets the current list.
 List<ParliamentMemberData> getCurrentTopListAbsent(int number)
          Gets the current top list absent.
 List<ParliamentMemberData> getCurrentTopListAbsentByParty(int i, String party)
          Gets the current top list absent by party.
 List<ParliamentMemberData> getCurrentTopListLosers(int i)
          Gets the current top list losers.
 List<ParliamentMemberData> getCurrentTopListLosersByParty(int i, String party)
          Gets the current top list losers by party.
 List<ParliamentMemberData> getCurrentTopListLoyal(int i)
          Gets the current top list loyal.
 List<ParliamentMemberData> getCurrentTopListLoyalByParty(int i, String party)
          Gets the current top list loyal by party.
 List<ParliamentMemberData> getCurrentTopListPresent(int i)
          Gets the current top list present.
 List<ParliamentMemberData> getCurrentTopListPresentByParty(int i, String party)
          Gets the current top list present by party.
 List<ParliamentMemberData> getCurrentTopListRebels(int i)
          Gets the current top list rebels.
 List<ParliamentMemberData> getCurrentTopListRebelsByParty(int i, String party)
          Gets the current top list rebels by party.
 List<ParliamentMemberData> getCurrentTopListWinners(int i)
          Gets the current top list winners.
 List<ParliamentMemberData> getCurrentTopListWinnersByParty(int i, String party)
          Gets the current top list winners by party.
 List<VotePosition> getPositions(ParliamentMemberData parliamentMember)
          Gets the positions.
 List<ParliamentMemberVoteCompareResultData> getTopEnemies(ParliamentMemberData parliamentMember)
          Gets the top enemies.
 List<ParliamentMemberVoteCompareResultData> getTopEnemiesSameParty(ParliamentMemberData parliamentMember)
          Gets the top enemies same party.
 List<ParliamentMemberVoteCompareResultData> getTopFriends(ParliamentMemberData parliamentMember)
          Gets the top friends.
 List<ParliamentMemberVoteCompareResultData> getTopFriendsInSameParty(ParliamentMemberData parliamentMember)
          Gets the top friends in same party.
 void saveAll(Collection<ParliamentMemberData> list)
          Save all.
 void saveParliamentMemberVoteCompareResult(Collection<ParliamentMemberVoteCompareResultData> result)
          Save parliament member vote compare result.
 
Methods inherited from interface com.hack23.cia.service.impl.commondao.api.GenericDAO
delete, getAll, loadById, save
 

Method Detail

deleteAllParliamentMemberVoteCompareResults

void deleteAllParliamentMemberVoteCompareResults(ParliamentYearData parliamentYearData)
Delete all parliament member vote compare results.

Parameters:
parliamentYearData - the parliament year data

findLastVotes

@Transactional(readOnly=true)
List<VoteData> findLastVotes(Long id)
Find last votes.

Parameters:
id - the id
Returns:
the list

findLastVotesByBallotId

@Transactional(readOnly=true)
List<VoteData> findLastVotesByBallotId(Long id)
Find last votes by ballot id.

Parameters:
id - the id
Returns:
the list

findListByName

@Transactional(readOnly=true)
List<ParliamentMemberData> findListByName(String searchString)
Find list by name.

Parameters:
searchString - the search string
Returns:
the list

findVotes

@Transactional(readOnly=true)
List<VoteData> findVotes(Long id)
Find votes.

Parameters:
id - the id
Returns:
the list

getCurrentList

@Transactional(readOnly=true)
List<ParliamentMemberData> getCurrentList()
Gets the current list.

Returns:
the current list

getCurrentList

@Transactional(readOnly=true)
List<ParliamentMemberData> getCurrentList(ParliamentYearData parliamentYearData)
Gets the current list.

Parameters:
parliamentYearData - the parliament year data
Returns:
the current list

getCurrentTopListAbsent

@Transactional(readOnly=true)
List<ParliamentMemberData> getCurrentTopListAbsent(int number)
Gets the current top list absent.

Parameters:
number - the number
Returns:
the current top list absent

getCurrentTopListAbsentByParty

@Transactional(readOnly=true)
List<ParliamentMemberData> getCurrentTopListAbsentByParty(int i,
                                                                        String party)
Gets the current top list absent by party.

Parameters:
i - the i
party - the party
Returns:
the current top list absent by party

getCurrentTopListLosers

@Transactional(readOnly=true)
List<ParliamentMemberData> getCurrentTopListLosers(int i)
Gets the current top list losers.

Parameters:
i - the i
Returns:
the current top list losers

getCurrentTopListLosersByParty

@Transactional(readOnly=true)
List<ParliamentMemberData> getCurrentTopListLosersByParty(int i,
                                                                        String party)
Gets the current top list losers by party.

Parameters:
i - the i
party - the party
Returns:
the current top list losers by party

getCurrentTopListLoyal

@Transactional(readOnly=true)
List<ParliamentMemberData> getCurrentTopListLoyal(int i)
Gets the current top list loyal.

Parameters:
i - the i
Returns:
the current top list loyal

getCurrentTopListLoyalByParty

@Transactional(readOnly=true)
List<ParliamentMemberData> getCurrentTopListLoyalByParty(int i,
                                                                       String party)
Gets the current top list loyal by party.

Parameters:
i - the i
party - the party
Returns:
the current top list loyal by party

getCurrentTopListPresent

@Transactional(readOnly=true)
List<ParliamentMemberData> getCurrentTopListPresent(int i)
Gets the current top list present.

Parameters:
i - the i
Returns:
the current top list present

getCurrentTopListPresentByParty

@Transactional(readOnly=true)
List<ParliamentMemberData> getCurrentTopListPresentByParty(int i,
                                                                         String party)
Gets the current top list present by party.

Parameters:
i - the i
party - the party
Returns:
the current top list present by party

getCurrentTopListRebels

@Transactional(readOnly=true)
List<ParliamentMemberData> getCurrentTopListRebels(int i)
Gets the current top list rebels.

Parameters:
i - the i
Returns:
the current top list rebels

getCurrentTopListRebelsByParty

@Transactional(readOnly=true)
List<ParliamentMemberData> getCurrentTopListRebelsByParty(int i,
                                                                        String party)
Gets the current top list rebels by party.

Parameters:
i - the i
party - the party
Returns:
the current top list rebels by party

getCurrentTopListWinners

@Transactional(readOnly=true)
List<ParliamentMemberData> getCurrentTopListWinners(int i)
Gets the current top list winners.

Parameters:
i - the i
Returns:
the current top list winners

getCurrentTopListWinnersByParty

@Transactional(readOnly=true)
List<ParliamentMemberData> getCurrentTopListWinnersByParty(int i,
                                                                         String party)
Gets the current top list winners by party.

Parameters:
i - the i
party - the party
Returns:
the current top list winners by party

getPositions

@Transactional(readOnly=true)
List<VotePosition> getPositions(ParliamentMemberData parliamentMember)
Gets the positions.

Parameters:
parliamentMember - the parliament member
Returns:
the positions

getTopEnemies

@Transactional(readOnly=true)
List<ParliamentMemberVoteCompareResultData> getTopEnemies(ParliamentMemberData parliamentMember)
Gets the top enemies.

Parameters:
parliamentMember - the parliament member
Returns:
the top enemies

getTopEnemiesSameParty

@Transactional(readOnly=true)
List<ParliamentMemberVoteCompareResultData> getTopEnemiesSameParty(ParliamentMemberData parliamentMember)
Gets the top enemies same party.

Parameters:
parliamentMember - the parliament member
Returns:
the top enemies same party

getTopFriends

@Transactional(readOnly=true)
List<ParliamentMemberVoteCompareResultData> getTopFriends(ParliamentMemberData parliamentMember)
Gets the top friends.

Parameters:
parliamentMember - the parliament member
Returns:
the top friends

getTopFriendsInSameParty

@Transactional(readOnly=true)
List<ParliamentMemberVoteCompareResultData> getTopFriendsInSameParty(ParliamentMemberData parliamentMember)
Gets the top friends in same party.

Parameters:
parliamentMember - the parliament member
Returns:
the top friends in same party

saveAll

void saveAll(Collection<ParliamentMemberData> list)
Save all.

Parameters:
list - the list

saveParliamentMemberVoteCompareResult

void saveParliamentMemberVoteCompareResult(Collection<ParliamentMemberVoteCompareResultData> result)
Save parliament member vote compare result.

Parameters:
result - the result


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