|
||||||||||
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 Union s |
boolean |
updateBlackList(Union union,
Member member)
Adds entry to blacklist of Union s |
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 UnionHome
javax.ejb.CreateException
public Union findByPrimaryKey(java.lang.Object pk)
findByPrimaryKey
in interface UnionHome
pk
- 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 UnionHome
javax.ejb.FinderException
public Union findByPrimaryKeyLegacy(int id) throws java.sql.SQLException
findByPrimaryKeyLegacy
in interface UnionHome
java.sql.SQLException
public java.util.Collection<Union> findAll()
findAll
in interface UnionHome
Collections.emptyList()
on failure;public java.util.Collection<Union> findAllGolfClubs()
findAllGolfClubs
in interface UnionHome
Union.getUnionType()
is "golf_club" or Collections.emptyList()
on failure;public java.util.Collection<Union> findAll(java.lang.String unionType)
findAll
in interface UnionHome
unionType
- 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 UnionHome
unionIds
- 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 UnionHome
unions
- 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 UnionHome
UnionBMPBean.TABLE_NAME_UNION_BLACKLIST
or Collections.emptyMap()
on failure;public java.util.Collection findAllUnions() throws javax.ejb.FinderException
findAllUnions
in interface UnionHome
javax.ejb.FinderException
public java.util.Collection findAllByArea(UnionArea area) throws javax.ejb.FinderException
findAllByArea
in interface UnionHome
javax.ejb.FinderException
public Union findUnionByIWMemberSystemGroup(com.idega.user.data.Group union) throws javax.ejb.FinderException
findUnionByIWMemberSystemGroup
in interface UnionHome
javax.ejb.FinderException
public Union findByAbbreviation(java.lang.String abbr) throws javax.ejb.FinderException
findByAbbreviation
in interface UnionHome
javax.ejb.FinderException
public java.util.Collection<Union> findByPrimaryKeys(java.util.Collection<?> primaryKeys)
findByPrimaryKeys
in interface UnionHome
primaryKeys
- 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 UnionHome
parentUnionsIds
- is Collection
of EJBLocalObject.getPrimaryKey()
to get child Union
s for, not null
;
Union
s of given Union
or
Collections.emptyList()
on failure;public boolean updateBlackList(java.lang.String unionId, java.lang.String personalId)
UnionHome
Adds entry to blacklist of Union
s
updateBlackList
in interface UnionHome
unionId
- 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)
UnionHome
Adds entry to blacklist of Union
s
updateBlackList
in interface UnionHome
union
- 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)
UnionHome
Removes entry from UnionBMPBean.TABLE_NAME_UNION_BLACKLIST
removeFromBlackList
in interface UnionHome
unionId
- 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)
UnionHome
Removes entry from UnionBMPBean.TABLE_NAME_UNION_BLACKLIST
removeFromBlacklist
in interface UnionHome
unionId
- is EJBLocalObject.getPrimaryKey()
to remove from,
not null
;
true
if removed, false
otherwise;public boolean removeFromBlackList(Union union, Member member)
UnionHome
Removes entry from UnionBMPBean.TABLE_NAME_UNION_BLACKLIST
removeFromBlackList
in interface UnionHome
union
- to remove from, not null
;member
- to remove, not null
;
true
if removed, false
otherwise;public boolean isBlacklisted(java.lang.String memberId)
UnionHome
Checks if Member
is in blacklist.
isBlacklisted
in interface UnionHome
memberId
- 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 UnionHome
public 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 |