is.idega.idegaweb.golf.entity
Interface UnionHome

All Superinterfaces:
javax.ejb.EJBLocalHome, com.idega.data.IDOHome
All Known Implementing Classes:
UnionHomeImpl

public interface UnionHome
extends com.idega.data.IDOHome


Method Summary
 Union create()
           
 Union createLegacy()
           
 java.util.Collection<Union> findAll()
           
 java.util.Collection<Union> findAll(java.lang.String unionType)
           
 java.util.Collection<Union> findAllByArea(UnionArea area)
           
 java.util.Collection<Union> findAllChildUnions(java.util.Collection<java.lang.String> parentUnionsIds)
           
 java.util.Collection<Union> findAllGolfClubs()
           
 java.util.Collection<Union> findAllUnions()
           
 java.util.Map<Union,java.util.Collection<Member>> findBlackListedMembers()
           
 java.util.Map<Union,java.util.Collection<Member>> findBlackListedMembers(java.util.Collection<java.lang.String> unionIds)
           
 java.util.Map<Union,java.util.Collection<Member>> findBlackListedMembersByUnions(java.util.Collection<Union> unionIds)
           
 Union findByAbbreviation(java.lang.String abbr)
           
 Union findByPrimaryKey(int id)
           
 Union findByPrimaryKey(java.lang.Object pk)
           
 Union findByPrimaryKeyLegacy(int id)
           
 java.util.Collection<Union> findByPrimaryKeys(java.util.Collection<?> primaryKeys)
           
 Union findUnionByIWMemberSystemGroup(com.idega.user.data.Group union)
           
 Union getByUId(java.lang.String uid)
           
 java.util.Collection<Union> getUnions(int start, int maxResults)
           
 java.util.Collection<Union> getUnionsByMembershipAndMember(int memberId, java.lang.String membershipType)
           
 java.util.Collection<Union> getUnionsWithoutUId(int start, int maxResults)
           
 boolean isBlacklisted(java.lang.String memberId)
          Checks if Member is in blacklist.
 boolean removeFromBlacklist(java.lang.String unionId, java.lang.String personalId)
          Removes entry from UnionBMPBean.TABLE_NAME_UNION_BLACKLIST
 boolean removeFromBlackList(java.lang.String unionId, java.lang.String memberId)
          Removes entry from UnionBMPBean.TABLE_NAME_UNION_BLACKLIST
 boolean removeFromBlackList(Union union, Member member)
          Removes entry from UnionBMPBean.TABLE_NAME_UNION_BLACKLIST
 boolean updateBlackList(java.lang.String unionId, java.lang.String personalId)
          Adds entry to blacklist of Unions
 boolean updateBlackList(Union union, Member member)
          Adds entry to blacklist of Unions
 
Methods inherited from interface com.idega.data.IDOHome
createIDO, decode, decode, findByPrimaryKeyCollection, findByPrimaryKeyIDO, getDatasource, getEntityCollectionForPrimaryKeys, setDatasource, setDatasource
 
Methods inherited from interface javax.ejb.EJBLocalHome
remove
 

Method Detail

create

Union create()
             throws javax.ejb.CreateException
Throws:
javax.ejb.CreateException

findByPrimaryKey

Union findByPrimaryKey(java.lang.Object pk)
Parameters:
pk - is EJBLocalObject.getPrimaryKey(), not null;
Returns:
entity by id or null on failure;

getUnionsWithoutUId

java.util.Collection<Union> getUnionsWithoutUId(int start,
                                                int maxResults)

getUnions

java.util.Collection<Union> getUnions(int start,
                                      int maxResults)

findByPrimaryKeys

java.util.Collection<Union> findByPrimaryKeys(java.util.Collection<?> primaryKeys)
Parameters:
primaryKeys - is Collection of EJBLocalObject.getPrimaryKey(), not null
Returns:
entities by criteria or Collections.emptyList() on failure;

createLegacy

Union createLegacy()

findByPrimaryKey

Union findByPrimaryKey(int id)
                       throws javax.ejb.FinderException
Throws:
javax.ejb.FinderException

findByPrimaryKeyLegacy

Union findByPrimaryKeyLegacy(int id)
                             throws java.sql.SQLException
Throws:
java.sql.SQLException

findAllByArea

java.util.Collection<Union> findAllByArea(UnionArea area)
                                          throws javax.ejb.FinderException
Throws:
javax.ejb.FinderException

findUnionByIWMemberSystemGroup

Union findUnionByIWMemberSystemGroup(com.idega.user.data.Group union)
                                     throws javax.ejb.FinderException
Throws:
javax.ejb.FinderException

findByAbbreviation

Union findByAbbreviation(java.lang.String abbr)
                         throws javax.ejb.FinderException
Throws:
javax.ejb.FinderException

findAllGolfClubs

java.util.Collection<Union> findAllGolfClubs()
Returns:
all entities in data source where Union.getUnionType() is "golf_club" or Collections.emptyList() on failure;

findAll

java.util.Collection<Union> findAll()
Returns:
all entities in data source or Collections.emptyList() on failure;

findAll

java.util.Collection<Union> findAll(java.lang.String unionType)
Parameters:
unionType - is Union.getUnionType(), skipped if null;
Returns:
all entities in data source by criteria or Collections.emptyList() on failure;

findBlackListedMembers

java.util.Map<Union,java.util.Collection<Member>> findBlackListedMembers()
Returns:
pairs from UnionBMPBean.TABLE_NAME_UNION_BLACKLIST or Collections.emptyMap() on failure;

findBlackListedMembers

java.util.Map<Union,java.util.Collection<Member>> findBlackListedMembers(java.util.Collection<java.lang.String> unionIds)
Parameters:
unionIds - is Collection of EJBLocalObject.getPrimaryKey(), skipped if null;
Returns:
pairs from UnionBMPBean.TABLE_NAME_UNION_BLACKLIST or Collections.emptyMap() on failure;

findBlackListedMembersByUnions

java.util.Map<Union,java.util.Collection<Member>> findBlackListedMembersByUnions(java.util.Collection<Union> unionIds)
Parameters:
unionIds - is Collection of Union, skipped if null;
Returns:
pairs from UnionBMPBean.TABLE_NAME_UNION_BLACKLIST or Collections.emptyMap() on failure;

updateBlackList

boolean updateBlackList(java.lang.String unionId,
                        java.lang.String personalId)

Adds entry to blacklist of Unions

Parameters:
unionId - is EJBLocalObject.getPrimaryKey() to add to, not null;
personalId - is Member.getSocialSecurityNumber(), not null;
Returns:
true on update, false otherwise;

updateBlackList

boolean updateBlackList(Union union,
                        Member member)

Adds entry to blacklist of Unions

Parameters:
union - to add Member to, not null;
member - to add, not null;
Returns:
true on update, false otherwise;

removeFromBlackList

boolean removeFromBlackList(java.lang.String unionId,
                            java.lang.String memberId)

Removes entry from UnionBMPBean.TABLE_NAME_UNION_BLACKLIST

Parameters:
unionId - is EJBLocalObject.getPrimaryKey() to remove from, not null;
memberId - is EJBLocalObject.getPrimaryKey() of Member to remove, not null;
Returns:
true if removed, false otherwise;

removeFromBlacklist

boolean removeFromBlacklist(java.lang.String unionId,
                            java.lang.String personalId)

Removes entry from UnionBMPBean.TABLE_NAME_UNION_BLACKLIST

Parameters:
unionId - is EJBLocalObject.getPrimaryKey() to remove from, not null;
memberId - is Member.getSSN() of Member to remove, not null;
Returns:
true if removed, false otherwise;

removeFromBlackList

boolean removeFromBlackList(Union union,
                            Member member)

Removes entry from UnionBMPBean.TABLE_NAME_UNION_BLACKLIST

Parameters:
union - to remove from, not null;
member - to remove, not null;
Returns:
true if removed, false otherwise;

isBlacklisted

boolean isBlacklisted(java.lang.String memberId)

Checks if Member is in blacklist.

Parameters:
memberId - is EJBLocalObject.getPrimaryKey() to check, not null;
Returns:
true if Member in blacklist, false otherwise;

findAllChildUnions

java.util.Collection<Union> findAllChildUnions(java.util.Collection<java.lang.String> parentUnionsIds)
Parameters:
parentUnionsIds - is Collection of EJBLocalObject.getPrimaryKey() to get child Unions for, not null;
Returns:
child Unions of given Union or Collections.emptyList() on failure;

getUnionsByMembershipAndMember

java.util.Collection<Union> getUnionsByMembershipAndMember(int memberId,
                                                           java.lang.String membershipType)

getByUId

Union getByUId(java.lang.String uid)

findAllUnions

java.util.Collection<Union> findAllUnions()
                                          throws javax.ejb.FinderException
Throws:
javax.ejb.FinderException


Copyright © 2000-2014 idega software. All Rights Reserved.