is.idega.idegaweb.golf.entity
Class UnionBMPBean

java.lang.Object
  extended by com.idega.data.GenericEntity
      extended by com.idega.data.TreeableEntityBMPBean
          extended by is.idega.idegaweb.golf.entity.UnionBMPBean
All Implemented Interfaces:
com.idega.core.data.ICTreeNode, com.idega.data.EntityRepresentation, com.idega.data.IDOEntity, com.idega.data.IDOEntityBean, com.idega.data.IDOLegacyEntity, com.idega.data.MetaDataCapable, com.idega.data.TreeableEntity, com.idega.data.UniqueIDCapable, com.idega.util.datastructures.idegaTreeNode, Union, java.io.Serializable, java.lang.Comparable<com.idega.data.IDOEntity>, javax.ejb.EJBLocalObject, javax.ejb.EnterpriseBean, javax.ejb.EntityBean

public class UnionBMPBean
extends com.idega.data.TreeableEntityBMPBean
implements Union, com.idega.util.datastructures.idegaTreeNode, com.idega.core.data.ICTreeNode, com.idega.data.TreeableEntity

Version:
1.2
Author:
Tryggvi Larusson
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.idega.data.GenericEntity
com.idega.data.GenericEntity.ResultHelper
 
Field Summary
static java.lang.String COLUMN_NAME_ABBREVATION
           
static java.lang.String COLUMN_NAME_UNION_TYPE
           
static java.lang.String sClassName
           
static java.lang.String TABLE_NAME_UNION_BLACKLIST
           
 
Fields inherited from class com.idega.data.TreeableEntityBMPBean
_leafsFirst, _sortLeafs
 
Fields inherited from class com.idega.data.GenericEntity
_lobColumnName, COLUMN_VALUE_FALSE, COLUMN_VALUE_TRUE, MANY_TO_MANY, MANY_TO_ONE, ONE_TO_MANY, ONE_TO_ONE, UNIQUE_ID_COLUMN_NAME
 
Fields inherited from interface is.idega.idegaweb.golf.entity.Union
AUTHORIZATION_TYPE
 
Fields inherited from interface com.idega.data.IDOLegacyEntity
STATE_DELETED, STATE_IN_SYNCH_WITH_DATASTORE, STATE_NEW, STATE_NEW_AND_NOT_IN_SYNCH_WITH_DATASTORE, STATE_NOT_IN_SYNCH_WITH_DATASTORE
 
Constructor Summary
UnionBMPBean()
           
 
Method Summary
 void addChild(com.idega.data.TreeableEntity p0)
           
 void addExtraUnion(Union union)
           
 boolean addToBlackList(Member member)
           
 java.util.Enumeration children()
          Returns the children of the reciever as an Enumeration.
 void delete()
           
 java.util.Collection<java.lang.Object> ejbFindAll(java.lang.String unionType)
           
 java.util.List<java.lang.String> ejbFindAllBlackListedMembers()
           
 java.util.Map<java.lang.String,java.util.List<java.lang.String>> ejbFindAllBlackListedMembers(java.util.Collection<java.lang.String> unionIds)
           
 java.util.Collection ejbFindAllByArea(UnionArea area)
           
 java.util.Collection<java.lang.String> ejbFindAllChildUnions(java.util.Collection<java.lang.String> parentUnionsIds)
           
 java.util.Collection ejbFindAllUnions()
           
 java.lang.Object ejbFindByAbbreviation(java.lang.String abbr)
           
 java.lang.Object ejbFindUnionByIWMemberSystemGroup(com.idega.user.data.Group union)
           
 Union[] findAllGolfClubs()
           
 java.lang.String getAbbrevation()
           
 java.util.List<Member> getActiveMembers()
           
 java.lang.Integer getAdId()
           
 java.util.List<Member> getAllActiveMembers()
           
 java.util.List getAllGolfClubs()
          Same as findAllGolfClubs but uses EntityFinder and returns List
 java.util.List<Member> getAllInActiveMembers()
           
 java.util.List<Member> getAllMembersInUnion()
           
 boolean getAllowsChildren()
          Returns true if the receiver allows children.
 java.util.Collection<Member> getBlackListedMembers()
           
 java.util.Collection<java.lang.String> getBlackListedMembersIds()
           
 java.lang.Object getByUId(java.lang.String UId)
           
 com.idega.util.datastructures.idegaTreeNode getChildAt(int childIndex)
          Returns the child TreeNode at index childIndex.
 com.idega.core.data.ICTreeNode getChildAtIndex(int index)
           
 int getChildCount()
          Returns the number of children TreeNodes the receiver contains.
 java.util.Collection getChildren()
          Returns the children of the reciever as a Collection.
 java.util.Collection getChildren(java.lang.String p0)
           
 java.util.Iterator getChildrenIterator()
          Returns the children of the reciever as an Iterator.
 java.util.Iterator getChildrenIterator(java.lang.String arg0)
           
 java.util.Iterator getChildrenIterator(java.lang.String arg0, boolean arg1)
           
 java.util.Collection getChildUnions()
           
 com.idega.block.trade.data.CreditCardInformation getCreditCardInformation()
           
 java.lang.String getEntityName()
           
 java.lang.String getExternalLink()
           
 java.util.List getGroups(java.lang.String group_type)
           
 com.idega.user.data.Group getICGroup()
           
 int getICGroupId()
           
 java.lang.String getId()
           
 java.lang.String getIDColumnName()
           
 java.util.List<Member> getInActiveMembers()
           
 int getIndex(com.idega.core.data.ICTreeNode node)
          Returns the index of node in the receivers children.
 int getIndex(com.idega.util.datastructures.idegaTreeNode node)
          Returns the index of node in the receivers children.
protected  MemberHome getMemberHome()
           
 java.util.List getMembersInUnion()
           
 java.lang.String getName()
           
 int getNodeID()
           
 java.lang.String getNodeName()
           
 java.lang.String getNodeName(java.util.Locale locale)
           
 java.lang.String getNodeName(java.util.Locale locale, com.idega.idegaweb.IWApplicationContext iwac)
           
 int getNumber()
           
 java.util.List getOwningFields()
           
 com.idega.util.datastructures.idegaTreeNode getParent()
          Returns the parent TreeNode of the receiver.
 com.idega.data.TreeableEntity getParentEntity()
           
 com.idega.core.data.ICTreeNode getParentNode()
           
 java.util.Collection getParentUnions()
           
 int getSiblingCount()
           
static Union getStaticInstance()
           
 java.util.List getTournamentGroups()
          Returns a list of tournamentGroups which only this Union owns - returns null if no match
 java.util.List getTournamentGroupsRecursive()
          Returns a list of tournamentGroups recursive up the Union tree - returns null if no match
 java.lang.String getTreeRelationshipChildColumnName(com.idega.data.TreeableEntity p0)
           
 java.lang.String getTreeRelationshipTableName(com.idega.data.TreeableEntity p0)
           
 UnionArea getUnionArea()
           
 com.idega.user.data.Group getUnionFromIWMemberSystem()
           
 java.util.List getUnionGroups()
          Returns a list of UnionGroups which only this Union owns - returns null if no match
 java.util.List getUnionGroupsRecursive()
          Returns a list of UnionGroups recursive up the Union tree - returns null if no match
 UnionInfo getUnionInfo()
           
 java.util.Collection<java.lang.Integer> getUnions(int start, int maxResults)
           
 java.util.List getUnionsBetweenZipcodes(Union entity, int zipcodeFrom, int zipcodeTo)
           
 java.util.List getUnionsBetweenZipcodes(Union entity, int zipcodeFrom1, int zipcodeTo1, int zipcodeFrom2, int zipcodeTo2)
           
 java.util.List getUnionsBetweenZipcodes(Union entity, int zipcodeFrom1, int zipcodeTo1, int zipcodeFrom2, int zipcodeTo2, int zipcodeIsNot)
           
 java.util.List getUnionsBetweenZipcodes(Union entity, int zipcodeFrom1, int zipcodeTo1, int zipcodeFrom2, int zipcodeTo2, int zipcodeIsNot1, int zipcodeIsNot2)
           
 java.util.List getUnionsBetweenZipcodesOrderBy(Union entity, int zipcodeFrom1, int zipcodeTo1, int zipcodeFrom2, int zipcodeTo2, int zipcodeIsNot1, int zipcodeIsNot2, java.lang.String orderBy)
           
 java.util.Collection<java.lang.Integer> getUnionsByMembershipAndMember(int memberId, java.lang.String membershipType)
           
 java.util.Collection<java.lang.Integer> getUnionsWithoutUId(int start, int maxResults)
           
 java.lang.String getUnionType()
           
 void initializeAttributes()
           
 void insertStartData()
           
 boolean isBlackListed(Member member)
           
 boolean isDeleted()
           
 boolean isLeaf()
          Returns true if the receiver is a leaf.
 boolean isUserMemberOfClub(com.idega.user.data.User user)
           
 boolean leafsFirst()
           
 void moveChildrenFrom(com.idega.data.TreeableEntity p0)
           
 void removeChild(com.idega.data.TreeableEntity p0)
           
 void removeExtraUnion(Union union)
           
 boolean removeFromBlackList(Member member)
           
 void setAbbrevation(java.lang.String abbrevation)
           
 void setAdId(java.lang.Integer adId)
           
 void setDeleted(boolean deleted)
           
 void setExternalLink(java.lang.String link)
           
 void setICGroup(com.idega.user.data.Group group)
           
 void setLeafsFirst(boolean b)
           
 void setName(java.lang.String name)
           
 void setNumber(int number)
           
 void setNumber(java.lang.Integer number)
           
 void setToSortLeafs(boolean b)
           
 void setUnionArea(UnionArea area)
           
 void setUnionType(java.lang.String type)
           
 boolean sortLeafs()
           
 
Methods inherited from class com.idega.data.TreeableEntityBMPBean
beforeInitializeAttributes, getChildren, getNodeType
 
Methods inherited from class com.idega.data.GenericEntity
addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addColumnName, addColumnName, addColumnName, addIndex, addIndex, addIndex, addLanguageAttribute, addManyToManyRelationShip, addManyToManyRelationShip, addManyToManyRelationShip, addManyToManyRelationShip, addManyToManyRelationShip, addManyToOneRelationship, addManyToOneRelationship, addMetaData, addMetaData, addMetaDataRelationship, addOneToOneRelationship, addOneToOneRelationship, addRelationship, addTo, addTo, addTo, addTo, addTo, addTo, addTo, addTo, addToTree, addTreeRelationShip, addUniqueIDColumn, afterInitializeAttributes, clear, clearMetaDataVectors, columnsHaveChanged, compareTo, constructArray, debug, decode, decode, delete, deleteMetaData, deleteMultiple, deleteMultiple, doInsertInCreate, ejbActivate, ejbCreate, ejbCreateIDO, ejbFindByPrimaryKey, ejbFindByPrimaryKeyCollection, ejbFindByPrimaryKeyIDO, ejbHomeCreateIDO, ejbLoad, ejbPassivate, ejbPostCreate, ejbPostCreateIDO, ejbRemove, ejbStore, empty, equals, equals, executeUpdate, fillColumn, findAll, findAll, findAll, findAllByColumn, findAllByColumn, findAllByColumn, findAllByColumn, findAllByColumn, findAllByColumn, findAllByColumnDescendingOrdered, findAllByColumnDescendingOrdered, findAllByColumnEquals, findAllByColumnEquals, findAllByColumnEquals, findAllByColumnEquals, findAllByColumnEqualsOrdered, findAllByColumnEqualsOrdered, findAllByColumnEqualsOrdered, findAllByColumnOrdered, findAllByColumnOrdered, findAllByColumnOrdered, findAllByColumnOrdered, findAllDescendingOrdered, findAllOrdered, findAssociated, findAssociatedOrdered, findByPrimaryKey, findRelated, findRelated, findRelated, findRelatedIDs, findRelatedIDs, findRelatedIDs, findReverseRelated, freeConnection, freeConnection, generateAndSetUniqueIDForIDO, getAttribute, getAttributes, getAverage, getBeanCache, getBlobColumnValue, getBooleanColumnValue, getBooleanColumnValue, getCachedEntities, getChanges, getCharColumnValue, getCharColumnValue, getColumn, getColumnNames, getColumnOutputStream, getColumnValue, getConnection, getConnection, getDatasource, getDateColumnValue, getDateTableValue, getDebugLogLevel, getDefaultLogLevel, getDoubleColumnValue, getDoubleColumnValue, getDoubleTableValue, getEditableColumnNames, getEJBLocalHome, getEJBLocalHome, getEmptyBlob, getEntityDefinition, getEntityInstance, getEntityInstance, getEntityState, getErrorLogLevel, getFieldValue, getFindReverseRelatedSQLQuery, getFloatColumnValue, getFloatColumnValue, getGenericEntityDefinition, getHandle, getID, getIDInteger, getIDOContainer, getIDOHome, getIDOUtil, getIfAutoIncrement, getIfEditable, getIfInsertStartData, getIfNullable, getIfUnique, getIfVisible, getInputStreamColumnValue, getIntColumnValue, getIntColumnValue, getIntegerColumnValue, getInterfaceClass, getIntTableValue, getIntTableValue, getIWMainApplication, getKeyValueSQLString, getLanguageIDColumnName, getLoadedEntityBeans, getLobColumnName, getLogger, getLongName, getMaxColumnValue, getMaxColumnValue, getMaxLength, getMetaData, getMetaDataAttributes, getMetaDataDelete, getMetaDataIds, getMetaDataInsert, getMetaDataTypes, getMetaDataUpdate, getNameOfMiddleTable, getNumberOfRecords, getNumberOfRecords, getNumberOfRecords, getNumberOfRecords, getNumberOfRecords, getNumberOfRecords, getNumberOfRecordsForStringColumn, getNumberOfRecordsRelated, getNumberOfRecordsReverseRelated, getPK, getPrimaryKey, getPrimaryKeyClass, getPrimaryKeyValue, getPrimaryKeyValueSQLString, getRealValue, getRealValue, getRelationShipClass, getRelationShipType, getSimpleExplicitlySynchronizedEntityEntity, getStaticInstance, getStaticInstance, getStaticInstanceIDO, getStaticInstanceIDO, getStorageClass, getStorageClassName, getStorageClassType, getStringColumnValue, getTableName, getTimeColumnValue, getTimestampColumnValue, getUniqueId, getUniqueIdColumnName, getValue, getVisibleColumnNames, hasAutoIncrement, hasBeenSetNull, hashCode, hasLobColumn, hasMetaDataRelationship, hasUniqueIDColumn, idoAddTo, idoAddTo, idoAddTo, idoAddTo, idoAddTo, idoExecuteGlobalUpdate, idoExecuteTableUpdate, idoFindAllIDsByColumnBySQL, idoFindAllIDsByColumnOrderedBySQL, idoFindAllIDsByColumnOrderedBySQL, idoFindAllIDsByColumnOrderedBySQL, idoFindAllIDsByColumnOrderedBySQL, idoFindAllIDsByColumnsBySQL, idoFindAllIDsByColumnsBySQL, idoFindAllIDsByColumnsBySQL, idoFindAllIDsBySQL, idoFindAllIDsOrderedBySQL, idoFindByPrimaryKeyCollection, idoFindIDsBySQL, idoFindIDsBySQL, idoFindOnePKByColumnBySQL, idoFindOnePKByQuery, idoFindOnePKByQuery, idoFindOnePKBySQL, idoFindOnePKByUniqueId, idoFindPKsByMetaData, idoFindPKsByQuery, idoFindPKsByQuery, idoFindPKsByQuery, idoFindPKsByQuery, idoFindPKsByQuery, idoFindPKsByQuery, idoFindPKsByQueryIgnoringCacheAndUsingLoadBalance, idoFindPKsByQueryIgnoringCacheAndUsingLoadBalance, idoFindPKsByQueryUsingLoadBalance, idoFindPKsBySQL, idoFindPKsBySQL, idoFindPKsBySQL, idoFindPKsBySQL, idoFindPKsBySQLIgnoringCache, idoFindPKsBySQLIgnoringCache, idoGetAverage, idoGetNumberOfRecords, idoGetNumberOfRecords, idoGetNumberOfRecords, idoGetNumberOfRecords, idoGetRelatedEntities, idoGetRelatedEntities, idoGetRelatedEntities, idoGetRelatedEntities, idoGetRelatedEntitiesBySQL, idoGetRelatedEntitiesOrderedByColumn, idoGetRelatedEntityPKs, idoGetRelatedEntityPKs, idoGetRelatedEntityPKs, idoGetReverseRelatedEntities, idoGetValueFromSingleValueResultSet, idoGetValueFromSingleValueResultSet, idoQuery, idoQuery, idoQueryGetSelect, idoQueryGetSelectCount, idoQueryTable, idoRemoveFrom, idoRemoveFrom, idoRemoveFrom, idoRemoveFrom, idoRemoveRelationsTo, idoRemoveRelationTo, idoSelectPKQuery, idoSelectQuery, initializeColumnValue, insert, insert, insertForCreate, insertMetaData, isColumnValueNotEmpty, isDebugActive, isIdColumnValueNotEmpty, isIdentical, isIdentical, isInSynchWithDatastore, isNull, isPrimaryKey, isPrimaryKeyColumn, isStoredValueNull, log, log, log, logConfig, logDebug, logError, logSevere, logSQL, logWarning, metaDataHasChanged, metaDataHasChanged, moveChildrenToCurrent, preEjbLoad, remove, removeAllMetaData, removeFrom, removeFrom, removeFrom, removeFrom, removeFrom, removeFrom, removeFrom, removeFromColumn, removeMetaData, renameMetaData, renameMetaData, reverseRemoveFrom, setAsPrimaryKey, setColumn, setColumn, setColumn, setColumn, setColumn, setColumn, setColumn, setColumn, setColumn, setColumn, setColumn, setColumn, setColumnAsNull, setDatasource, setDatasource, setDefaultValues, setEditable, setEJBLocalHome, setEntityContext, setEntityState, setGenericEntityDefinition, setID, setID, setLongName, setMaxLength, setMetaData, setMetaData, setMetaDataAttributes, setNullable, setPrimaryKey, setPrimaryKey, setRelationShipClassName, setRelationShipType, setStorageClass, setStorageClassName, setStorageClassType, setStringColumn, setToInsertStartData, setUnique, setUniqueId, setValue, setValue, setVisible, store, toString, unsetEntityContext, update, update, updateMetaData
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.idega.data.IDOLegacyEntity
addMetaData, addMetaData, addTo, addTo, addTo, addTo, addTo, addTo, addTo, addTreeRelationShip, clear, columnsHaveChanged, constructArray, delete, deleteMetaData, deleteMultiple, deleteMultiple, empty, fillColumn, findAll, findAll, findAll, findAllByColumn, findAllByColumn, findAllByColumn, findAllByColumn, findAllByColumn, findAllByColumn, findAllByColumnDescendingOrdered, findAllByColumnDescendingOrdered, findAllByColumnEquals, findAllByColumnEquals, findAllByColumnEquals, findAllByColumnEquals, findAllByColumnEqualsOrdered, findAllByColumnEqualsOrdered, findAllByColumnEqualsOrdered, findAllByColumnOrdered, findAllByColumnOrdered, findAllByColumnOrdered, findAllByColumnOrdered, findAllDescendingOrdered, findAllOrdered, findAssociated, findAssociatedOrdered, findByPrimaryKey, findRelated, findRelated, findRelatedIDs, findRelatedIDs, findReverseRelated, freeConnection, freeConnection, getBlobColumnValue, getBooleanColumnValue, getCharColumnValue, getColumn, getColumnNames, getColumnOutputStream, getColumnValue, getConnection, getConnection, getDatasource, getDoubleColumnValue, getEditableColumnNames, getEmptyBlob, getEntityState, getFloatColumnValue, getID, getIDInteger, getIfEditable, getIfInsertStartData, getIfNullable, getIfUnique, getIfVisible, getInputStreamColumnValue, getIntColumnValue, getIntegerColumnValue, getIntTableValue, getLobColumnName, getLongName, getMaxColumnValue, getMaxColumnValue, getMaxLength, getMetaDataDelete, getMetaDataIds, getMetaDataInsert, getMetaDataUpdate, getNameOfMiddleTable, getNumberOfRecords, getNumberOfRecords, getNumberOfRecords, getNumberOfRecords, getNumberOfRecords, getNumberOfRecordsRelated, getNumberOfRecordsReverseRelated, getPrimaryKeyValue, getRelationShipClass, getRelationShipType, getStorageClassName, getStorageClassType, getStringColumnValue, getTableName, getVisibleColumnNames, hasBeenSetNull, hasLobColumn, hasMetaDataRelationship, insert, insert, insertMetaData, isInSynchWithDatastore, isNull, isPrimaryKey, metaDataHasChanged, metaDataHasChanged, removeFrom, removeFrom, removeFrom, removeFrom, removeFrom, removeFromColumn, removeMetaData, reverseRemoveFrom, setColumn, setColumn, setColumn, setColumn, setColumn, setColumn, setColumn, setColumn, setDatasource, setDefaultValues, setEntityState, setID, setID, setLongName, setMaxLength, setNullable, setRelationShipClassName, setRelationShipType, setStorageClassName, setStorageClassType, setStringColumn, setToInsertStartData, setUnique, setVisible, toString, update, update, updateMetaData
 
Methods inherited from interface com.idega.data.MetaDataCapable
getMetaData, getMetaDataAttributes, getMetaDataTypes, renameMetaData, renameMetaData, setMetaData, setMetaData, setMetaDataAttributes
 
Methods inherited from interface com.idega.data.IDOEntity
decode, decode, getEntityDefinition, store
 
Methods inherited from interface javax.ejb.EJBLocalObject
getEJBLocalHome, getPrimaryKey, isIdentical, remove
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface com.idega.data.UniqueIDCapable
getUniqueId, setUniqueId
 

Field Detail

sClassName

public static java.lang.String sClassName

COLUMN_NAME_ABBREVATION

public static final java.lang.String COLUMN_NAME_ABBREVATION
See Also:
Constant Field Values

COLUMN_NAME_UNION_TYPE

public static final java.lang.String COLUMN_NAME_UNION_TYPE
See Also:
Constant Field Values

TABLE_NAME_UNION_BLACKLIST

public static final java.lang.String TABLE_NAME_UNION_BLACKLIST
See Also:
Constant Field Values
Constructor Detail

UnionBMPBean

public UnionBMPBean()
Method Detail

getId

public java.lang.String getId()
Specified by:
getId in interface com.idega.core.data.ICTreeNode
Specified by:
getId in interface Union
Overrides:
getId in class com.idega.data.TreeableEntityBMPBean
See Also:
getId()

initializeAttributes

public void initializeAttributes()
Specified by:
initializeAttributes in class com.idega.data.GenericEntity

getEntityName

public java.lang.String getEntityName()
Specified by:
getEntityName in interface com.idega.data.IDOLegacyEntity
Specified by:
getEntityName in class com.idega.data.GenericEntity

getIDColumnName

public java.lang.String getIDColumnName()
Specified by:
getIDColumnName in interface com.idega.data.IDOLegacyEntity
Overrides:
getIDColumnName in class com.idega.data.GenericEntity

getName

public java.lang.String getName()
Specified by:
getName in interface com.idega.data.IDOLegacyEntity
Specified by:
getName in interface Union
Overrides:
getName in class com.idega.data.GenericEntity
See Also:
getName()

setName

public void setName(java.lang.String name)
Specified by:
setName in interface com.idega.data.IDOLegacyEntity
Specified by:
setName in interface Union
Overrides:
setName in class com.idega.data.GenericEntity
See Also:
setName(java.lang.String)

setAbbrevation

public void setAbbrevation(java.lang.String abbrevation)
Specified by:
setAbbrevation in interface Union
See Also:
setAbbrevation(java.lang.String)

getAbbrevation

public java.lang.String getAbbrevation()
Specified by:
getAbbrevation in interface Union
See Also:
getAbbrevation()

setNumber

public void setNumber(int number)
Specified by:
setNumber in interface Union
See Also:
setNumber(int)

setNumber

public void setNumber(java.lang.Integer number)
Specified by:
setNumber in interface Union
See Also:
setNumber(int)

getNumber

public int getNumber()
Specified by:
getNumber in interface Union
See Also:
getNumber()

setUnionType

public void setUnionType(java.lang.String type)
Specified by:
setUnionType in interface Union
See Also:
setUnionType(java.lang.String)

getUnionType

public java.lang.String getUnionType()
Specified by:
getUnionType in interface Union
See Also:
getUnionType()

setExternalLink

public void setExternalLink(java.lang.String link)
Specified by:
setExternalLink in interface Union
See Also:
setExternalLink(java.lang.String)

getExternalLink

public java.lang.String getExternalLink()
Specified by:
getExternalLink in interface Union
See Also:
getExternalLink()

setUnionArea

public void setUnionArea(UnionArea area)
Specified by:
setUnionArea in interface Union
See Also:
is.idega.idegaweb.golf.entity.UnionBMPBean#setArea

getUnionArea

public UnionArea getUnionArea()
Specified by:
getUnionArea in interface Union
See Also:
is.idega.idegaweb.golf.entity.UnionBMPBean#getArea

setDeleted

public void setDeleted(boolean deleted)
Specified by:
setDeleted in interface Union
See Also:
setDeleted(boolean)

isDeleted

public boolean isDeleted()
Specified by:
isDeleted in interface Union
See Also:
isDeleted()

getUnionInfo

public UnionInfo getUnionInfo()
Specified by:
getUnionInfo in interface Union
See Also:
getUnionInfo()

findAllGolfClubs

public Union[] findAllGolfClubs()
                         throws java.sql.SQLException
Specified by:
findAllGolfClubs in interface Union
Throws:
java.sql.SQLException
See Also:
findAllGolfClubs()

ejbFindAll

public java.util.Collection<java.lang.Object> ejbFindAll(java.lang.String unionType)
Parameters:
unionType - is Union.getUnionType(), skipped if null;
Returns:
Collection of EJBLocalObject.getPrimaryKey() or Collections.emptyList() on failure;

ejbFindAllBlackListedMembers

public java.util.List<java.lang.String> ejbFindAllBlackListedMembers()
Returns:
List of EJBLocalObject.getPrimaryKey()s, who are in blacklist of any Union or Collections.emptyList() on failure;

ejbFindAllBlackListedMembers

public java.util.Map<java.lang.String,java.util.List<java.lang.String>> ejbFindAllBlackListedMembers(java.util.Collection<java.lang.String> unionIds)
Parameters:
unionIds - is Collection of EJBLocalObject.getPrimaryKey() to filter by, skipped if null;
Returns:
Map of EJBLocalObject.getPrimaryKey() and List of EJBLocalObject.getPrimaryKey() of blacklisted Members, or Collections.emptyList() on failure;

ejbFindAllByArea

public java.util.Collection ejbFindAllByArea(UnionArea area)
                                      throws javax.ejb.FinderException
Throws:
javax.ejb.FinderException

getAllGolfClubs

public java.util.List getAllGolfClubs()
                               throws java.sql.SQLException
Same as findAllGolfClubs but uses EntityFinder and returns List

Specified by:
getAllGolfClubs in interface Union
Throws:
java.sql.SQLException
See Also:
getAllGolfClubs()

getOwningFields

public java.util.List getOwningFields()
                               throws java.sql.SQLException
Specified by:
getOwningFields in interface Union
Throws:
java.sql.SQLException
See Also:
getOwningFields()

delete

public void delete()
            throws java.sql.SQLException
Specified by:
delete in interface com.idega.data.IDOLegacyEntity
Overrides:
delete in class com.idega.data.GenericEntity
Throws:
java.sql.SQLException

getChildrenIterator

public java.util.Iterator getChildrenIterator()
Returns the children of the reciever as an Iterator. Returns null if no children found

Specified by:
getChildrenIterator in interface com.idega.core.data.ICTreeNode
Specified by:
getChildrenIterator in interface Union
Overrides:
getChildrenIterator in class com.idega.data.TreeableEntityBMPBean
See Also:
getChildrenIterator()

getChildren

public java.util.Collection getChildren()
Returns the children of the reciever as a Collection. Returns null if no children found

Specified by:
getChildren in interface com.idega.core.data.ICTreeNode
Specified by:
getChildren in interface Union
Overrides:
getChildren in class com.idega.data.TreeableEntityBMPBean
See Also:
getChildren()

children

public java.util.Enumeration children()
Returns the children of the reciever as an Enumeration. Returns null if no children found

Specified by:
children in interface com.idega.util.datastructures.idegaTreeNode
Specified by:
children in interface Union
See Also:
children()

getAllowsChildren

public boolean getAllowsChildren()
Returns true if the receiver allows children.

Specified by:
getAllowsChildren in interface com.idega.core.data.ICTreeNode
Specified by:
getAllowsChildren in interface com.idega.util.datastructures.idegaTreeNode
Specified by:
getAllowsChildren in interface Union
Overrides:
getAllowsChildren in class com.idega.data.TreeableEntityBMPBean
See Also:
getAllowsChildren()

getChildAt

public com.idega.util.datastructures.idegaTreeNode getChildAt(int childIndex)
Returns the child TreeNode at index childIndex.

Specified by:
getChildAt in interface com.idega.util.datastructures.idegaTreeNode
Specified by:
getChildAt in interface Union
See Also:
getChildAt(int)

getChildCount

public int getChildCount()
Returns the number of children TreeNodes the receiver contains.

Specified by:
getChildCount in interface com.idega.core.data.ICTreeNode
Specified by:
getChildCount in interface com.idega.util.datastructures.idegaTreeNode
Specified by:
getChildCount in interface Union
Overrides:
getChildCount in class com.idega.data.TreeableEntityBMPBean
See Also:
getChildCount()

getIndex

public int getIndex(com.idega.util.datastructures.idegaTreeNode node)
Returns the index of node in the receivers children.

Specified by:
getIndex in interface com.idega.util.datastructures.idegaTreeNode
Specified by:
getIndex in interface Union
See Also:
getIndex(com.idega.util.datastructures.idegaTreeNode)

getParent

public com.idega.util.datastructures.idegaTreeNode getParent()
Returns the parent TreeNode of the receiver. Return null if none

Specified by:
getParent in interface com.idega.util.datastructures.idegaTreeNode
Specified by:
getParent in interface Union
See Also:
getParent()

isLeaf

public boolean isLeaf()
Returns true if the receiver is a leaf.

Specified by:
isLeaf in interface com.idega.core.data.ICTreeNode
Specified by:
isLeaf in interface com.idega.util.datastructures.idegaTreeNode
Specified by:
isLeaf in interface Union
Overrides:
isLeaf in class com.idega.data.TreeableEntityBMPBean
See Also:
isLeaf()

getNodeName

public java.lang.String getNodeName()
Specified by:
getNodeName in interface com.idega.core.data.ICTreeNode
Specified by:
getNodeName in interface com.idega.util.datastructures.idegaTreeNode
Specified by:
getNodeName in interface Union
Overrides:
getNodeName in class com.idega.data.TreeableEntityBMPBean
See Also:
getNodeName()

getMembersInUnion

public java.util.List getMembersInUnion()
Specified by:
getMembersInUnion in interface Union
See Also:
getMembersInUnion()

getAllMembersInUnion

public java.util.List<Member> getAllMembersInUnion()
Specified by:
getAllMembersInUnion in interface Union

getAllActiveMembers

public java.util.List<Member> getAllActiveMembers()
Specified by:
getAllActiveMembers in interface Union

getAllInActiveMembers

public java.util.List<Member> getAllInActiveMembers()
Specified by:
getAllInActiveMembers in interface Union

getActiveMembers

public java.util.List<Member> getActiveMembers()
Specified by:
getActiveMembers in interface Union

getInActiveMembers

public java.util.List<Member> getInActiveMembers()
Specified by:
getInActiveMembers in interface Union

getGroups

public java.util.List getGroups(java.lang.String group_type)
Specified by:
getGroups in interface Union
See Also:
getGroups(java.lang.String)

getUnionGroups

public java.util.List getUnionGroups()
Returns a list of UnionGroups which only this Union owns - returns null if no match

Specified by:
getUnionGroups in interface Union
See Also:
getUnionGroups()

getUnionGroupsRecursive

public java.util.List getUnionGroupsRecursive()
Returns a list of UnionGroups recursive up the Union tree - returns null if no match

Specified by:
getUnionGroupsRecursive in interface Union
See Also:
getUnionGroupsRecursive()

getTournamentGroups

public java.util.List getTournamentGroups()
Returns a list of tournamentGroups which only this Union owns - returns null if no match

Specified by:
getTournamentGroups in interface Union
See Also:
getTournamentGroups()

getTournamentGroupsRecursive

public java.util.List getTournamentGroupsRecursive()
Returns a list of tournamentGroups recursive up the Union tree - returns null if no match

Specified by:
getTournamentGroupsRecursive in interface Union
See Also:
getTournamentGroupsRecursive()

getUnionsBetweenZipcodes

public java.util.List getUnionsBetweenZipcodes(Union entity,
                                               int zipcodeFrom,
                                               int zipcodeTo)
                                        throws java.sql.SQLException
Specified by:
getUnionsBetweenZipcodes in interface Union
Throws:
java.sql.SQLException
See Also:
getUnionsBetweenZipcodes(is.idega.idegaweb.golf.entity.Union, int, int)

getUnionsBetweenZipcodes

public java.util.List getUnionsBetweenZipcodes(Union entity,
                                               int zipcodeFrom1,
                                               int zipcodeTo1,
                                               int zipcodeFrom2,
                                               int zipcodeTo2)
                                        throws java.sql.SQLException
Specified by:
getUnionsBetweenZipcodes in interface Union
Throws:
java.sql.SQLException
See Also:
getUnionsBetweenZipcodes(is.idega.idegaweb.golf.entity.Union, int, int)

getUnionsBetweenZipcodes

public java.util.List getUnionsBetweenZipcodes(Union entity,
                                               int zipcodeFrom1,
                                               int zipcodeTo1,
                                               int zipcodeFrom2,
                                               int zipcodeTo2,
                                               int zipcodeIsNot)
                                        throws java.sql.SQLException
Specified by:
getUnionsBetweenZipcodes in interface Union
Throws:
java.sql.SQLException
See Also:
getUnionsBetweenZipcodes(is.idega.idegaweb.golf.entity.Union, int, int)

getUnionsBetweenZipcodes

public java.util.List getUnionsBetweenZipcodes(Union entity,
                                               int zipcodeFrom1,
                                               int zipcodeTo1,
                                               int zipcodeFrom2,
                                               int zipcodeTo2,
                                               int zipcodeIsNot1,
                                               int zipcodeIsNot2)
                                        throws java.sql.SQLException
Specified by:
getUnionsBetweenZipcodes in interface Union
Throws:
java.sql.SQLException
See Also:
getUnionsBetweenZipcodes(is.idega.idegaweb.golf.entity.Union, int, int)

getUnionsBetweenZipcodesOrderBy

public java.util.List getUnionsBetweenZipcodesOrderBy(Union entity,
                                                      int zipcodeFrom1,
                                                      int zipcodeTo1,
                                                      int zipcodeFrom2,
                                                      int zipcodeTo2,
                                                      int zipcodeIsNot1,
                                                      int zipcodeIsNot2,
                                                      java.lang.String orderBy)
                                               throws java.sql.SQLException
Specified by:
getUnionsBetweenZipcodesOrderBy in interface Union
Throws:
java.sql.SQLException
See Also:
getUnionsBetweenZipcodesOrderBy(is.idega.idegaweb.golf.entity.Union, int, int, int, int, int, int, java.lang.String)

getStaticInstance

public static Union getStaticInstance()

insertStartData

public void insertStartData()
                     throws java.lang.Exception
Overrides:
insertStartData in class com.idega.data.GenericEntity
Throws:
java.lang.Exception

getNodeID

public int getNodeID()
Specified by:
getNodeID in interface com.idega.core.data.ICTreeNode
Specified by:
getNodeID in interface Union
Overrides:
getNodeID in class com.idega.data.TreeableEntityBMPBean
See Also:
getNodeID()

getParentNode

public com.idega.core.data.ICTreeNode getParentNode()
Specified by:
getParentNode in interface com.idega.core.data.ICTreeNode
Specified by:
getParentNode in interface Union
Overrides:
getParentNode in class com.idega.data.TreeableEntityBMPBean
See Also:
getParentNode()

getIndex

public int getIndex(com.idega.core.data.ICTreeNode node)
Returns the index of node in the receivers children.

Specified by:
getIndex in interface com.idega.core.data.ICTreeNode
Specified by:
getIndex in interface com.idega.data.TreeableEntity
Specified by:
getIndex in interface Union
Overrides:
getIndex in class com.idega.data.TreeableEntityBMPBean
See Also:
getIndex(com.idega.util.datastructures.idegaTreeNode)

getChildAtIndex

public com.idega.core.data.ICTreeNode getChildAtIndex(int index)
Specified by:
getChildAtIndex in interface com.idega.core.data.ICTreeNode
Specified by:
getChildAtIndex in interface Union
Overrides:
getChildAtIndex in class com.idega.data.TreeableEntityBMPBean
See Also:
getChildAtIndex(int)

getSiblingCount

public int getSiblingCount()
Specified by:
getSiblingCount in interface com.idega.core.data.ICTreeNode
Specified by:
getSiblingCount in interface Union
Overrides:
getSiblingCount in class com.idega.data.TreeableEntityBMPBean
See Also:
getSiblingCount()

getNodeName

public java.lang.String getNodeName(java.util.Locale locale)
Specified by:
getNodeName in interface com.idega.core.data.ICTreeNode
Specified by:
getNodeName in interface Union
Overrides:
getNodeName in class com.idega.data.TreeableEntityBMPBean
See Also:
getNodeName()

addChild

public void addChild(com.idega.data.TreeableEntity p0)
              throws java.sql.SQLException
Specified by:
addChild in interface com.idega.data.TreeableEntity
Specified by:
addChild in interface Union
Overrides:
addChild in class com.idega.data.TreeableEntityBMPBean
Throws:
java.sql.SQLException
See Also:
addChild(com.idega.data.TreeableEntity)

getParentEntity

public com.idega.data.TreeableEntity getParentEntity()
Specified by:
getParentEntity in interface com.idega.data.TreeableEntity
Specified by:
getParentEntity in interface Union
Overrides:
getParentEntity in class com.idega.data.TreeableEntityBMPBean
See Also:
getParentEntity()

getTreeRelationshipChildColumnName

public java.lang.String getTreeRelationshipChildColumnName(com.idega.data.TreeableEntity p0)
Specified by:
getTreeRelationshipChildColumnName in interface com.idega.data.TreeableEntity
Specified by:
getTreeRelationshipChildColumnName in interface Union
Overrides:
getTreeRelationshipChildColumnName in class com.idega.data.TreeableEntityBMPBean
See Also:
getTreeRelationshipChildColumnName(com.idega.data.TreeableEntity)

getTreeRelationshipTableName

public java.lang.String getTreeRelationshipTableName(com.idega.data.TreeableEntity p0)
Specified by:
getTreeRelationshipTableName in interface com.idega.data.TreeableEntity
Specified by:
getTreeRelationshipTableName in interface Union
Overrides:
getTreeRelationshipTableName in class com.idega.data.TreeableEntityBMPBean
See Also:
getTreeRelationshipTableName(com.idega.data.TreeableEntity)

moveChildrenFrom

public void moveChildrenFrom(com.idega.data.TreeableEntity p0)
                      throws java.sql.SQLException
Specified by:
moveChildrenFrom in interface com.idega.data.TreeableEntity
Specified by:
moveChildrenFrom in interface Union
Overrides:
moveChildrenFrom in class com.idega.data.TreeableEntityBMPBean
Throws:
java.sql.SQLException
See Also:
moveChildrenFrom(com.idega.data.TreeableEntity)

removeChild

public void removeChild(com.idega.data.TreeableEntity p0)
                 throws java.sql.SQLException
Specified by:
removeChild in interface com.idega.data.TreeableEntity
Specified by:
removeChild in interface Union
Overrides:
removeChild in class com.idega.data.TreeableEntityBMPBean
Throws:
java.sql.SQLException
See Also:
removeChild(com.idega.data.TreeableEntity)

getNodeName

public java.lang.String getNodeName(java.util.Locale locale,
                                    com.idega.idegaweb.IWApplicationContext iwac)
Specified by:
getNodeName in interface com.idega.core.data.ICTreeNode
Specified by:
getNodeName in interface Union
Overrides:
getNodeName in class com.idega.data.TreeableEntityBMPBean
See Also:
getNodeName()

leafsFirst

public boolean leafsFirst()
Specified by:
leafsFirst in interface com.idega.data.TreeableEntity
Specified by:
leafsFirst in interface Union
Overrides:
leafsFirst in class com.idega.data.TreeableEntityBMPBean
See Also:
leafsFirst()

setLeafsFirst

public void setLeafsFirst(boolean b)
Specified by:
setLeafsFirst in interface com.idega.data.TreeableEntity
Specified by:
setLeafsFirst in interface Union
Overrides:
setLeafsFirst in class com.idega.data.TreeableEntityBMPBean
See Also:
setLeafsFirst(boolean)

setToSortLeafs

public void setToSortLeafs(boolean b)
Specified by:
setToSortLeafs in interface com.idega.data.TreeableEntity
Specified by:
setToSortLeafs in interface Union
Overrides:
setToSortLeafs in class com.idega.data.TreeableEntityBMPBean
See Also:
setToSortLeafs(boolean)

sortLeafs

public boolean sortLeafs()
Specified by:
sortLeafs in interface com.idega.data.TreeableEntity
Specified by:
sortLeafs in interface Union
Overrides:
sortLeafs in class com.idega.data.TreeableEntityBMPBean
See Also:
sortLeafs()

getCreditCardInformation

public com.idega.block.trade.data.CreditCardInformation getCreditCardInformation()
Specified by:
getCreditCardInformation in interface Union
See Also:
getCreditCardInformation()

setICGroup

public void setICGroup(com.idega.user.data.Group group)
Specified by:
setICGroup in interface Union
See Also:
setICGroup(com.idega.user.data.Group)

getICGroupId

public int getICGroupId()
Specified by:
getICGroupId in interface Union

ejbFindAllUnions

public java.util.Collection ejbFindAllUnions()
                                      throws javax.ejb.FinderException
Throws:
javax.ejb.FinderException

getICGroup

public com.idega.user.data.Group getICGroup()
Specified by:
getICGroup in interface Union
See Also:
getICGroup()

getUnionFromIWMemberSystem

public com.idega.user.data.Group getUnionFromIWMemberSystem()
Specified by:
getUnionFromIWMemberSystem in interface Union
See Also:
getUnionFromIWMemberSystem()

ejbFindUnionByIWMemberSystemGroup

public java.lang.Object ejbFindUnionByIWMemberSystemGroup(com.idega.user.data.Group union)
                                                   throws javax.ejb.FinderException
Throws:
javax.ejb.FinderException

ejbFindByAbbreviation

public java.lang.Object ejbFindByAbbreviation(java.lang.String abbr)
                                       throws javax.ejb.FinderException
Throws:
javax.ejb.FinderException

ejbFindAllChildUnions

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

addToBlackList

public boolean addToBlackList(Member member)
Specified by:
addToBlackList in interface Union
Returns:
TODO
See Also:
addToBlackList(is.idega.idegaweb.golf.entity.Member)

getBlackListedMembers

public java.util.Collection<Member> getBlackListedMembers()
Specified by:
getBlackListedMembers in interface Union
Returns:
Collection of Members, who are in blacklist of this Union or Collections.emptyList() on failure;

getBlackListedMembersIds

public java.util.Collection<java.lang.String> getBlackListedMembersIds()
Specified by:
getBlackListedMembersIds in interface Union
Returns:
Collection of EJBLocalObject.getPrimaryKey() of Members, who are in blacklist of this Union or Collections.emptyList() on failure;

isBlackListed

public boolean isBlackListed(Member member)
                      throws com.idega.data.IDORelationshipException
Specified by:
isBlackListed in interface Union
Throws:
com.idega.data.IDORelationshipException
See Also:
isBlackListed(is.idega.idegaweb.golf.entity.Member)

removeFromBlackList

public boolean removeFromBlackList(Member member)
Specified by:
removeFromBlackList in interface Union
Returns:
TODO
See Also:
removeFromBlackList(is.idega.idegaweb.golf.entity.Member)

addExtraUnion

public void addExtraUnion(Union union)
                   throws com.idega.data.IDOAddRelationshipException
Specified by:
addExtraUnion in interface Union
Throws:
com.idega.data.IDOAddRelationshipException
See Also:
addExtraUnion(is.idega.idegaweb.golf.entity.Union)

removeExtraUnion

public void removeExtraUnion(Union union)
                      throws com.idega.data.IDORemoveRelationshipException
Specified by:
removeExtraUnion in interface Union
Throws:
com.idega.data.IDORemoveRelationshipException
See Also:
removeExtraUnion(is.idega.idegaweb.golf.entity.Union)

getChildUnions

public java.util.Collection getChildUnions()
                                    throws com.idega.data.IDORelationshipException
Specified by:
getChildUnions in interface Union
Throws:
com.idega.data.IDORelationshipException
See Also:
getChildUnions()

getParentUnions

public java.util.Collection getParentUnions()
                                     throws com.idega.data.IDORelationshipException
Specified by:
getParentUnions in interface Union
Throws:
com.idega.data.IDORelationshipException
See Also:
getParentUnions()

getChildrenIterator

public java.util.Iterator getChildrenIterator(java.lang.String arg0)
Specified by:
getChildrenIterator in interface com.idega.data.TreeableEntity
Specified by:
getChildrenIterator in interface Union
Overrides:
getChildrenIterator in class com.idega.data.TreeableEntityBMPBean
See Also:
getChildrenIterator()

getChildrenIterator

public java.util.Iterator getChildrenIterator(java.lang.String arg0,
                                              boolean arg1)
Specified by:
getChildrenIterator in interface com.idega.data.TreeableEntity
Specified by:
getChildrenIterator in interface Union
Overrides:
getChildrenIterator in class com.idega.data.TreeableEntityBMPBean
See Also:
getChildrenIterator()

getChildren

public java.util.Collection getChildren(java.lang.String p0)
Specified by:
getChildren in interface Union
Overrides:
getChildren in class com.idega.data.TreeableEntityBMPBean
See Also:
getChildren()

getUnionsByMembershipAndMember

public java.util.Collection<java.lang.Integer> getUnionsByMembershipAndMember(int memberId,
                                                                              java.lang.String membershipType)
                                                                       throws javax.ejb.FinderException
Throws:
javax.ejb.FinderException

getUnionsWithoutUId

public java.util.Collection<java.lang.Integer> getUnionsWithoutUId(int start,
                                                                   int maxResults)
                                                            throws javax.ejb.FinderException
Throws:
javax.ejb.FinderException

getUnions

public java.util.Collection<java.lang.Integer> getUnions(int start,
                                                         int maxResults)
                                                  throws javax.ejb.FinderException
Throws:
javax.ejb.FinderException

getByUId

public java.lang.Object getByUId(java.lang.String UId)
                          throws javax.ejb.FinderException
Throws:
javax.ejb.FinderException

isUserMemberOfClub

public boolean isUserMemberOfClub(com.idega.user.data.User user)
Specified by:
isUserMemberOfClub in interface Union

getAdId

public java.lang.Integer getAdId()
Specified by:
getAdId in interface Union

setAdId

public void setAdId(java.lang.Integer adId)
Specified by:
setAdId in interface Union

getMemberHome

protected MemberHome getMemberHome()


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