|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.idega.data.IDOFactory
is.idega.idegaweb.golf.entity.UnionHomeImpl
public class UnionHomeImpl
| Field Summary |
|---|
| Fields inherited from class com.idega.data.IDOFactory |
|---|
dataSource |
| Constructor Summary | |
|---|---|
UnionHomeImpl()
|
|
| Method Summary | |
|---|---|
Union |
create()
|
Union |
createLegacy()
|
java.util.Collection<Union> |
findAll()
|
java.util.Collection<Union> |
findAll(java.lang.String unionType)
|
java.util.Collection |
findAllByArea(UnionArea area)
|
java.util.Collection<Union> |
findAllChildUnions(java.util.Collection<java.lang.String> parentUnionsIds)
|
java.util.Collection<Union> |
findAllGolfClubs()
|
java.util.Collection |
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> unions)
|
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.lang.Class |
getEntityInterfaceClass()
|
protected MemberHome |
getMemberHome()
|
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 class com.idega.data.IDOFactory |
|---|
createEntity, createIDO, decode, decode, findByPrimaryKeyCollection, findByPrimaryKeyIDO, findByPrimaryKeyIDO, findSubTypeByPrimaryKeyIDO, findSubTypesByPrimaryKeysIDO, getDatasource, getEntityBeanClass, getEntityCollectionForPrimaryKeys, getEntitySetForPrimaryKeys, getHomesForSubtypes, getHomesForSubtypes, idoCheckInPooledEntity, idoCheckOutPooledEntity, idoCreate, idoCreate, idoFindByPrimaryKey, idoFindByPrimaryKey, idoFindByPrimaryKey, idoFindByPrimaryKey, idoFindByPrimaryKey, idoFindByPrimaryKey, remove, setDatasource, setDatasource |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 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 |
| Constructor Detail |
|---|
public UnionHomeImpl()
| Method Detail |
|---|
public java.lang.Class getEntityInterfaceClass()
getEntityInterfaceClass in class com.idega.data.IDOFactory
public Union create()
throws javax.ejb.CreateException
create in interface UnionHomejavax.ejb.CreateExceptionpublic Union findByPrimaryKey(java.lang.Object pk)
findByPrimaryKey in interface UnionHomepk - is EJBLocalObject.getPrimaryKey(), not null;
null on failure;public Union createLegacy()
createLegacy in interface UnionHome
public Union findByPrimaryKey(int id)
throws javax.ejb.FinderException
findByPrimaryKey in interface UnionHomejavax.ejb.FinderException
public Union findByPrimaryKeyLegacy(int id)
throws java.sql.SQLException
findByPrimaryKeyLegacy in interface UnionHomejava.sql.SQLExceptionpublic java.util.Collection<Union> findAll()
findAll in interface UnionHomeCollections.emptyList()
on failure;public java.util.Collection<Union> findAllGolfClubs()
findAllGolfClubs in interface UnionHomeUnion.getUnionType()
is "golf_club" or Collections.emptyList()
on failure;public java.util.Collection<Union> findAll(java.lang.String unionType)
findAll in interface UnionHomeunionType - is Union.getUnionType(),
skipped if null;
Collections.emptyList() on failure;public java.util.Map<Union,java.util.Collection<Member>> findBlackListedMembers(java.util.Collection<java.lang.String> unionIds)
findBlackListedMembers in interface UnionHomeunionIds - is Collection of EJBLocalObject.getPrimaryKey(),
skipped if null;
UnionBMPBean.TABLE_NAME_UNION_BLACKLIST
or Collections.emptyMap() on failure;public java.util.Map<Union,java.util.Collection<Member>> findBlackListedMembersByUnions(java.util.Collection<Union> unions)
findBlackListedMembersByUnions in interface UnionHomeunions - is Collection of Union,
skipped if null;
UnionBMPBean.TABLE_NAME_UNION_BLACKLIST
or Collections.emptyMap() on failure;public java.util.Map<Union,java.util.Collection<Member>> findBlackListedMembers()
findBlackListedMembers in interface UnionHomeUnionBMPBean.TABLE_NAME_UNION_BLACKLIST
or Collections.emptyMap() on failure;
public java.util.Collection findAllUnions()
throws javax.ejb.FinderException
findAllUnions in interface UnionHomejavax.ejb.FinderException
public java.util.Collection findAllByArea(UnionArea area)
throws javax.ejb.FinderException
findAllByArea in interface UnionHomejavax.ejb.FinderException
public Union findUnionByIWMemberSystemGroup(com.idega.user.data.Group union)
throws javax.ejb.FinderException
findUnionByIWMemberSystemGroup in interface UnionHomejavax.ejb.FinderException
public Union findByAbbreviation(java.lang.String abbr)
throws javax.ejb.FinderException
findByAbbreviation in interface UnionHomejavax.ejb.FinderExceptionpublic java.util.Collection<Union> findByPrimaryKeys(java.util.Collection<?> primaryKeys)
findByPrimaryKeys in interface UnionHomeprimaryKeys - is Collection of
EJBLocalObject.getPrimaryKey(), not null
Collections.emptyList()
on failure;public java.util.Collection<Union> findAllChildUnions(java.util.Collection<java.lang.String> parentUnionsIds)
findAllChildUnions in interface UnionHomeparentUnionsIds - is Collection of EJBLocalObject.getPrimaryKey()
to get child Unions for, not null;
Unions of given Union or
Collections.emptyList() on failure;
public boolean updateBlackList(java.lang.String unionId,
java.lang.String personalId)
UnionHomeAdds entry to blacklist of Unions
updateBlackList in interface UnionHomeunionId - is EJBLocalObject.getPrimaryKey() to add to,
not null;personalId - is Member.getSocialSecurityNumber(),
not null;
true on update, false otherwise;
public boolean updateBlackList(Union union,
Member member)
UnionHomeAdds entry to blacklist of Unions
updateBlackList in interface UnionHomeunion - to add Member to, not null;member - to add, not null;
true on update, false otherwise;
public boolean removeFromBlackList(java.lang.String unionId,
java.lang.String memberId)
UnionHomeRemoves entry from UnionBMPBean.TABLE_NAME_UNION_BLACKLIST
removeFromBlackList in interface UnionHomeunionId - is EJBLocalObject.getPrimaryKey() to remove from,
not null;memberId - is EJBLocalObject.getPrimaryKey() of Member
to remove, not null;
true if removed, false otherwise;
public boolean removeFromBlacklist(java.lang.String unionId,
java.lang.String personalId)
UnionHomeRemoves entry from UnionBMPBean.TABLE_NAME_UNION_BLACKLIST
removeFromBlacklist in interface UnionHomeunionId - is EJBLocalObject.getPrimaryKey() to remove from,
not null;
true if removed, false otherwise;
public boolean removeFromBlackList(Union union,
Member member)
UnionHomeRemoves entry from UnionBMPBean.TABLE_NAME_UNION_BLACKLIST
removeFromBlackList in interface UnionHomeunion - to remove from, not null;member - to remove, not null;
true if removed, false otherwise;public boolean isBlacklisted(java.lang.String memberId)
UnionHomeChecks if Member is in blacklist.
isBlacklisted in interface UnionHomememberId - is EJBLocalObject.getPrimaryKey() to check,
not null;
true if Member in blacklist,
false otherwise;protected MemberHome getMemberHome()
public java.util.Collection<Union> getUnionsByMembershipAndMember(int memberId,
java.lang.String membershipType)
getUnionsByMembershipAndMember in interface UnionHome
public java.util.Collection<Union> getUnionsWithoutUId(int start,
int maxResults)
getUnionsWithoutUId in interface UnionHome
public java.util.Collection<Union> getUnions(int start,
int maxResults)
getUnions in interface UnionHomepublic Union getByUId(java.lang.String UId)
getByUId in interface UnionHome
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||